/* Veille — direction artistique sombre « nuit bleue » : fond profond, halo bleu, cartes vitrees,
   typographie appuyee, barre d'onglets flottante (inspiree des apps iOS). */
:root {
  --bg: #04060c; --bg-2: #070b15;
  --card: rgba(18, 24, 38, .72); --card-solid: #0f1522; --card-hi: rgba(28, 36, 56, .8);
  --stroke: rgba(148, 170, 220, .12); --stroke-hi: rgba(148, 170, 220, .22);
  --label: #f4f6fb; --label-2: #9aa3b8; --label-3: #7d879c;
  --blue: #3b7bff; --blue-2: #1f5af0; --blue-glow: rgba(59, 123, 255, .35);
  --green: #2fd67b; --red: #ff5a6e; --amber: #ffb547; --violet: #8b7bff; --teal: #3dd6d0; --pink: #ff6fae; --sand: #d6b27a;
  --radius: 18px; --radius-s: 12px;
  --sidebar-w: 256px;
  color-scheme: dark;
  font: 100%/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--label); min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(40, 96, 255, .30), transparent 70%),
    radial-gradient(700px 400px at 100% 0, rgba(110, 80, 255, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-glow); }

/* ---------- Barre du haut ---------- */
.navbar {
  position: sticky; top: 0; z-index: 20; height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0; display: flex; align-items: center; justify-content: center;
  transition: background .25s, box-shadow .25s;
}
.navbar.scrolled {
  background: rgba(6, 9, 18, .72); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 1px 0 var(--stroke);
}
.nav-title { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; opacity: 0; transform: translateY(4px);
             transition: opacity .2s, transform .2s; max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar.show-title .nav-title { opacity: 1; transform: none; }
.brand-mini { position: absolute; left: 16px; bottom: 12px; display: flex; align-items: center; gap: 8px;
              font-weight: 800; font-size: .8125rem; letter-spacing: .18em; }
.brand-mini[hidden] { display: none; }
.logo { width: 28px; height: 28px; border-radius: 9px; flex: none;
        background: linear-gradient(145deg, #4f8bff, #1f4fe0); box-shadow: 0 6px 18px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.35);
        display: grid; place-items: center; }
.logo svg { width: 17px; height: 17px; }
.back { position: absolute; left: 8px; bottom: 6px; height: 40px; display: flex; align-items: center; gap: 6px;
        color: var(--label); font-size: .9375rem; font-weight: 600; padding: 0 14px 0 10px; border-radius: 20px;
        background: var(--card); box-shadow: inset 0 0 0 1px var(--stroke); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
        transition: transform .12s ease-out; }
.back svg { width: 10px; height: 16px; }
.back:active { transform: scale(.95); }
.back[hidden] { display: none; }

/* ---------- Barre d'onglets flottante (iPhone) ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; gap: 2px; padding: 6px; border-radius: 30px; width: min(460px, calc(100% - 24px));
  background: rgba(14, 19, 32, .72); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--stroke-hi), 0 18px 40px rgba(0,0,0,.55);
}
.tab { flex: 1; min-width: 0; height: 48px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
       color: var(--label-2); font-size: .625rem; font-weight: 600; white-space: nowrap; letter-spacing: .01em; transition: background .25s, color .25s, transform .12s ease-out; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: #fff; background: linear-gradient(180deg, rgba(59,123,255,.95), rgba(31,90,240,.95)); box-shadow: 0 6px 18px var(--blue-glow); }
.tab:active { transform: scale(.94); }

.sidebar { display: none; }

/* ---------- Contenu ---------- */
.view { max-width: 880px; margin: 0 auto; padding: 4px 16px calc(120px + env(safe-area-inset-bottom)); }
.view.enter { animation: enter .38s cubic-bezier(.2,.9,.25,1); }
.view.enter-back { animation: enter-back .38s cubic-bezier(.2,.9,.25,1); }
@keyframes enter { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--label-2); }
.large-title { font-size: clamp(2.125rem, 6vw, 2.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 6px 0 6px; }
.large-title .accent { background: linear-gradient(90deg, #7fb0ff, #3b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--label-2); font-size: .9375rem; margin: 0 0 18px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 2px 12px; }
.section-h h2 { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); }
.section-h small { color: var(--label-3); font-size: .75rem; }
.day-h { margin: 22px 4px 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--label-2); }
.note { color: var(--label-3); font-size: .8125rem; margin: 10px 4px 0; line-height: 1.4; }

/* Surfaces */
.card, .group, .tile, .stat-card, .top-card, .empty, .text-block, .more {
  background: var(--card); box-shadow: inset 0 0 0 1px var(--stroke);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.card { border-radius: var(--radius); padding: 18px; }
.group { border-radius: var(--radius); overflow: hidden; }

/* Recherche */
.search { display: block; position: relative; margin: 0 0 12px; }
.search input { width: 100%; height: 44px; border: 0; border-radius: 22px; background: var(--card-hi); color: var(--label);
                box-shadow: inset 0 0 0 1px var(--stroke); font: inherit; font-size: 1rem; padding: 0 16px 0 42px; outline: none;
                transition: box-shadow .2s; }
.search input:focus { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--blue-glow); }
.search input::placeholder { color: var(--label-3); }
.search svg { position: absolute; left: 15px; top: 13px; width: 18px; height: 18px; color: var(--label-2); }

/* Segmente */
.segmented { display: flex; background: var(--card-hi); border-radius: 22px; padding: 4px; margin: 0 0 12px; box-shadow: inset 0 0 0 1px var(--stroke); }
.segmented button { flex: 1; height: 34px; border-radius: 18px; font-size: .8438rem; font-weight: 600; color: var(--label-2); white-space: nowrap;
                    transition: background .25s, color .25s, box-shadow .25s; }
.segmented button.on { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px var(--stroke-hi), 0 4px 12px rgba(0,0,0,.35); }

/* Pastilles */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; margin: 0; padding: 0; }
.chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 17px; font-size: .8438rem; font-weight: 600;
        color: var(--label); background: var(--card); box-shadow: inset 0 0 0 1px var(--stroke-hi); transition: transform .12s ease-out, background .2s; }
.chip.on { background: linear-gradient(180deg, #4a86ff, #2361f5); color: #fff; box-shadow: 0 6px 16px var(--blue-glow); }
.chip:active { transform: scale(.96); }

/* Tableau de bord */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 4px; }
.stat-card { border-radius: var(--radius-s); padding: 14px 14px 12px; }
.stat-card b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-card span { font-size: .75rem; color: var(--label-2); font-weight: 500; }
.stat-card.pos b { color: var(--green); } .stat-card.neg b { color: var(--red); }
.chart-card { margin-top: 10px; padding: 16px 16px 10px; }
.chart-card .legend { display: flex; gap: 14px; font-size: .75rem; color: var(--label-2); margin-bottom: 8px; }
.chart-card .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: 0; }
.bars { width: 100%; height: 110px; display: block; }
.axis { display: flex; justify-content: space-between; color: var(--label-3); font-size: .6875rem; margin-top: 6px; }

/* Carrousel des plus gros mouvements */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.top-card { flex: none; width: 236px; scroll-snap-align: start; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px;
            transition: transform .14s ease-out; }
.top-card:active { transform: scale(.97); }
.top-card .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-card .who div { min-width: 0; }
.top-card .name { font-weight: 700; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-card .meta { color: var(--label-2); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-card .big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.top-card .company { font-size: .8125rem; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Listes */
.cell { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 66px; position: relative; width: 100%;
        text-align: left; color: var(--label); transition: background .15s; }
.cell + .cell::before { content: ""; position: absolute; top: 0; right: 0; left: 68px; height: 1px; background: var(--stroke); }
.cell.plain + .cell.plain::before { left: 16px; }
a.cell:active { background: rgba(255,255,255,.05); transition: none; }
.cell .body { flex: 1; min-width: 0; }
.cell .t { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .t.light { font-weight: 500; }
.cell .s { font-size: .875rem; color: var(--label-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 1px; }
.cell .s2 { font-size: .75rem; color: var(--label-3); margin-top: 2px; }
.cell .trail { text-align: right; flex: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9375rem; }
.cell .trail small { display: block; color: var(--label-3); font-size: .6875rem; font-weight: 500; margin-top: 2px; }
.chev { width: 7px; height: 12px; color: var(--label-3); flex: none; }
.amt.achat { color: var(--green); } .amt.vente { color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 10px; }
.pill.achat { color: var(--green); background: rgba(47,214,123,.12); }
.pill.vente { color: var(--red); background: rgba(255,90,110,.12); }
.pill.autre { color: var(--label-2); background: rgba(255,255,255,.06); }
.badge { display: inline-block; font-size: .625rem; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; vertical-align: 2px;
         margin-left: 6px; color: var(--label-2); background: rgba(255,255,255,.07); }
.badge.cac { color: #9cc0ff; background: rgba(59,123,255,.16); }

/* Avatars : anneau couleur selon le type de personne */
.avatar { --c: var(--blue); width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
          font-size: .875rem; font-weight: 700; letter-spacing: .02em;
          background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff 0%), color-mix(in srgb, var(--c) 45%, #000));
          box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px color-mix(in srgb, var(--c) 70%, transparent); }
.avatar.lg { width: 92px; height: 92px; font-size: 1.875rem; box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px color-mix(in srgb, var(--c) 80%, transparent), 0 18px 50px color-mix(in srgb, var(--c) 40%, transparent); }
.avatar.sm { width: 34px; height: 34px; font-size: .75rem; }
.stack { display: flex; }
.stack .avatar { width: 28px; height: 28px; font-size: .625rem; box-shadow: 0 0 0 2px var(--card-solid); }
.stack .avatar + .avatar { margin-left: -9px; }

/* Fiche */
.hero { text-align: center; padding: 8px 0 4px; }
.hero .avatar { margin: 6px auto 0; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 18px 0 6px; }
.hero p { color: var(--label-2); margin: 0; font-size: .9375rem; }
.hero .kind { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
              padding: 5px 12px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--stroke-hi); }
.hero .kind i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 22px 0 4px; }
.tile { border-radius: var(--radius-s); padding: 14px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile b { display: block; white-space: nowrap; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { color: var(--label-2); font-size: .75rem; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { width: 132px; height: 132px; flex: none; }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: .8438rem; min-width: 0; }
.donut-legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.donut-legend span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-legend em { font-style: normal; color: var(--label-2); font-variant-numeric: tabular-nums; }
.official { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 19px; font-weight: 700; font-size: .875rem;
            color: #fff; background: linear-gradient(180deg, #4a86ff, #2361f5); box-shadow: 0 8px 22px var(--blue-glow); transition: transform .12s ease-out; }
.official:active { transform: scale(.96); }
.text-block { white-space: pre-wrap; font-size: .8438rem; line-height: 1.55; border-radius: var(--radius); padding: 16px; max-height: 60vh; overflow: auto; color: var(--label-2); }
details summary { cursor: pointer; color: #9cc0ff; font-weight: 600; margin: 22px 4px 10px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
mark { background: rgba(255,181,71,.25); color: var(--label); border-radius: 3px; padding: 0 2px; }
.empty { padding: 34px 22px; text-align: center; color: var(--label-2); border-radius: var(--radius); line-height: 1.5; }
.loading { padding: 120px 0; text-align: center; color: var(--label-2); }
.loading::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 14px; border-radius: 50%;
                   border: 3px solid var(--stroke-hi); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.more { display: block; width: 100%; padding: 15px; margin-top: 12px; border-radius: var(--radius); color: #9cc0ff; font-weight: 600; transition: transform .12s ease-out; }
.more:active { transform: scale(.98); }
.disclaimer { color: var(--label-3); font-size: .75rem; text-align: center; margin: 34px 12px 0; line-height: 1.45; }

/* Fiche societe */
.tv-card { padding: 8px; overflow: hidden; }
.tv-chart { height: 340px; }
.tv-tech { height: 380px; }
.tech .note { padding: 0 10px; }
.logo-co { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: .6875rem; font-weight: 800;
           letter-spacing: .04em; color: #cfe0ff; background: linear-gradient(145deg, rgba(59,123,255,.35), rgba(59,123,255,.08));
           box-shadow: inset 0 0 0 1px var(--stroke-hi); text-transform: uppercase; }
.wrap2 { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.consensus .cons-head { display: flex; align-items: center; gap: 20px; }
.cons-score { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cons-score small { font-size: 1.125rem; color: var(--label-3); font-weight: 700; margin-left: 2px; }
.consensus .cons-head > div:last-child { flex: 1; min-width: 0; }
.cons-label { font-weight: 800; font-size: 1.125rem; margin-bottom: 10px; }
.cons-scale { position: relative; height: 8px; border-radius: 4px;
              background: linear-gradient(90deg, var(--red), #ff8f9c 25%, var(--amber) 50%, #7be3a6 75%, var(--green)); }
.cons-scale i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
                box-shadow: 0 0 0 3px var(--card-solid), 0 2px 10px rgba(0,0,0,.5); }
.cons-ends { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--label-3); margin-top: 8px; }
.cons-rows { display: grid; gap: 8px; margin-top: 18px; }
.cons-rows > div { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 10px; font-size: .8125rem; color: var(--label-2); }
.cons-rows .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.cons-rows .bar i { display: block; height: 100%; border-radius: 4px; }
.cons-rows em { font-style: normal; text-align: right; color: var(--label); font-variant-numeric: tabular-nums; }

/* Cours, activite, patrimoine */
.quote-sm { font-size: .8438rem; font-weight: 600; white-space: nowrap; }
.up { color: var(--green); } .down { color: var(--red); }
.quote-sm .up, .quote-sm .down { display: block; font-size: .75rem; font-weight: 600; }
.quote-big { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 12px; }
.quote-big b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.quote-big span { font-weight: 700; font-size: 1rem; padding: 3px 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.activity { display: flex; gap: 3px; height: 6px; margin: 6px 0 4px; max-width: 260px; }
.activity i { display: block; height: 100%; border-radius: 3px; }
.activity .b { background: var(--green); } .activity .s { background: var(--red); }
.wealth { margin-top: 20px; text-align: left; }
.wealth-big { font-size: clamp(2rem, 7vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; margin: 6px 0 2px; font-variant-numeric: tabular-nums;
              background: linear-gradient(90deg, #fff, #9cc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wealth-sub { color: var(--label-2); font-size: .875rem; }
.wealth-rows { display: grid; gap: 8px; margin-top: 16px; }
.wealth-rows > div { display: grid; grid-template-columns: minmax(0, 150px) 1fr auto; align-items: center; gap: 10px; font-size: .8125rem; color: var(--label-2); }
.wealth-rows .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.wealth-rows .bar i { display: block; height: 100%; border-radius: 4px; }
.wealth-rows em { font-style: normal; color: var(--label); font-variant-numeric: tabular-nums; }

/* Secteurs d'activite */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.sector-card { display: block; padding: 14px; border-radius: 18px; background: var(--card, rgba(255,255,255,.04));
               border: 1px solid rgba(255,255,255,.07); color: inherit; text-decoration: none; transition: transform .1s ease-out; }
.sector-card:active { transform: scale(.97); }
.sector-top { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.sector-top b { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sector-top em { font-style: normal; font-weight: 750; font-variant-numeric: tabular-nums; }
.sector-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.sector-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); margin: 10px 0 8px; overflow: hidden; }
.sector-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.sector-split { display: flex; justify-content: space-between; font-size: .75rem; color: var(--label-2); }
.sector-net { font-size: .75rem; font-weight: 600; margin-top: 4px; }

/* Parcours (frise verticale) */
.sub-h { margin: 16px 4px 8px; font-size: .8125rem; font-weight: 600; color: var(--label-2); }
.timeline { padding: 6px 18px; }
.tl-item { position: relative; display: flex; gap: 14px; padding: 14px 0; }
.tl-item + .tl-item { border-top: 1px solid var(--stroke); }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--stroke-hi); }
.tl-item:first-child::before { top: 20px; } .tl-item:last-child::before { bottom: calc(100% - 20px); }
.tl-dot { position: relative; z-index: 1; flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%;
          background: var(--c); box-shadow: 0 0 0 3px var(--card-solid), 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.tl-body { min-width: 0; }
.tl-cat { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.tl-cat .now { color: var(--green); }
.tl-title { font-weight: 650; font-size: .9688rem; margin-top: 3px; line-height: 1.3; }
.tl-org { color: var(--label-2); font-size: .875rem; margin-top: 2px; }
.tl-date { color: var(--label-3); font-size: .75rem; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Grand ecran ---------- */
@media (min-width: 900px) {
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 25; padding: 22px 14px;
    background: rgba(6, 9, 18, .62); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
    box-shadow: 1px 0 0 var(--stroke);
  }
  .side-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: .875rem; letter-spacing: .2em; padding: 4px 10px 26px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 21px; color: var(--label-2);
                font-size: .9375rem; font-weight: 600; transition: background .2s, color .2s; }
  .side-nav a svg { width: 20px; height: 20px; }
  .side-nav a:hover { background: rgba(255,255,255,.05); color: var(--label); }
  .side-nav a.on { color: #fff; background: linear-gradient(180deg, rgba(59,123,255,.95), rgba(31,90,240,.95)); box-shadow: 0 8px 20px var(--blue-glow); }
  .side-foot { margin-top: auto; color: var(--label-3); font-size: .75rem; padding: 0 12px; line-height: 1.5; }
  .brand-mini { display: none; }
  .navbar, .view { margin-left: var(--sidebar-w); }
  .view { padding: 12px 40px 64px; max-width: calc(880px + var(--sidebar-w) + 80px); }
  .view > * { max-width: 880px; margin-left: auto; margin-right: auto; }
  .carousel, .chips:not(.wrap) { margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  .chips:not(.wrap) { flex-wrap: wrap; }
  a.cell:hover { background: rgba(255,255,255,.035); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .large-title { margin-top: 14px; }
}

/* ---------- Accessibilite ---------- */
@media (prefers-reduced-motion: reduce) {
  .view.enter, .view.enter-back { animation: fade .2s ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  *, *::before { transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .navbar.scrolled, .tabbar, .sidebar, .card, .group, .tile, .stat-card, .top-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar, .sidebar, .navbar.scrolled { background: var(--card-solid); }
}
@media (prefers-contrast: more) {
  :root { --stroke: rgba(200, 215, 255, .35); --label-2: #c3c9d6; --label-3: #9aa2b4; }
}
@media (max-width: 430px) { .sector-grid { grid-template-columns: 1fr 1fr; } .sector-card { padding: 12px; } .sector-split { flex-direction: column; gap: 2px; } }

/* Lignes de transaction : zones cliquables distinctes */
.cell.tx, .top-card.tx { cursor: pointer; }
.av-link { display: inline-flex; border-radius: 50%; transition: transform .1s ease-out; }
.av-link:active { transform: scale(.94); }
.lnk { color: inherit; text-decoration: none; }
.lnk:hover { text-decoration: underline; text-underline-offset: 2px; }
.chev.ext { width: 12px; height: 12px; opacity: .55; }
.cell.tx:focus-visible, .top-card.tx:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* Carte des liens */
.graph-card { position: relative; padding: 0; overflow: hidden; }
svg.graph { display: block; width: 100%; height: min(78vw, 520px); touch-action: none; cursor: grab; user-select: none; }
svg.graph:active { cursor: grabbing; }
svg.graph line { stroke: rgba(150,175,230,.22); stroke-width: 1.2; }
svg.graph line.l2 { stroke: rgba(150,175,230,.11); stroke-dasharray: 3 4; }
svg.graph .node circle { fill: color-mix(in srgb, var(--c) 26%, #0c1220); stroke: var(--c); stroke-width: 2; transition: r .15s ease-out, filter .15s; }
svg.graph .node.n0 circle { stroke-width: 3; filter: drop-shadow(0 0 14px var(--c)); }
svg.graph .node.n2 circle { stroke-width: 1.4; opacity: .85; }
svg.graph .node:hover circle, svg.graph .node:focus circle { filter: drop-shadow(0 0 10px var(--c)); }
svg.graph text { pointer-events: none; text-anchor: middle; font-family: inherit; }
svg.graph .ini { fill: #fff; font-weight: 750; letter-spacing: .02em; }
svg.graph .lab { fill: #c7cfdf; font-size: 11px; font-weight: 550; paint-order: stroke; stroke: #070b14; stroke-width: 3px; }
svg.graph .n0 .lab { font-size: 13px; font-weight: 700; fill: #fff; }
.graph-tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.graph-tools button { width: 34px; height: 34px; border-radius: 11px; border: 1px solid rgba(255,255,255,.1); background: rgba(16,22,36,.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 17px; cursor: pointer; }
.graph-tools button:active { transform: scale(.94); }
.graph-legend { padding: 10px 16px 14px; font-size: .75rem; color: var(--label-2); border-top: 1px solid rgba(255,255,255,.05); }

/* Graphique de cours */
.price-card { padding: 16px 16px 12px; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pc-price { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; margin-right: 10px; font-variant-numeric: tabular-nums; }
.pc-chg { font-size: .8125rem; font-weight: 600; }
.segmented.small { width: auto; padding: 3px; }
.segmented.small button { padding: 5px 12px; font-size: .75rem; }
.pc-plot { position: relative; min-height: 220px; }
.pc-svg { display: block; width: 100%; height: 220px; overflow: visible; touch-action: pan-y; }
.pc-svg .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.pc-svg .mk { stroke: #0b1020; stroke-width: 1.5; }
.pc-svg .mk.achat { fill: var(--green); } .pc-svg .mk.vente { fill: var(--red); }
.pc-tip { position: absolute; top: -4px; width: 150px; text-align: center; font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 9px;
  background: rgba(16,22,36,.92); border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.pc-axis { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--label-3, #6b7488); margin-top: 6px; gap: 8px; }
.pc-legend { display: flex; gap: 16px; font-size: .75rem; color: var(--label-2); margin-top: 8px; }
.pc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.kind.party { margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { svg.graph .node circle { transition: none; } }

/* ---------- Evolutions UX ---------- */
/* Actions de la barre du haut : devise et recherche */
.nav-actions { position: absolute; right: 10px; bottom: 6px; display: flex; gap: 8px; }
.nav-btn { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--stroke); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-weight: 700; font-size: .9375rem; }
.nav-btn svg { width: 19px; height: 19px; }
.nav-btn:active { transform: scale(.94); }
@media (min-width: 900px) { .nav-actions { display: none; } }
.side-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; margin-bottom: 10px; border-radius: 12px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--label-2); font-size: .875rem; }
.side-search svg { width: 17px; height: 17px; } .side-search span { flex: 1; text-align: left; }
.side-search kbd { font: inherit; font-size: .6875rem; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); }
.side-cur { margin-top: 14px; height: 36px; padding: 0 14px; border-radius: 18px; font-size: .8125rem; color: var(--label-2); box-shadow: inset 0 0 0 1px var(--stroke); }
.side-cur:hover { color: var(--label); }

/* Pastille de l'onglet Suivis */
.tab, .side-nav a { position: relative; }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font: 700 .625rem/17px system-ui; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.side-nav a .tab-badge { position: static; margin-left: auto; box-shadow: none; }
.tab-badge[hidden] { display: none; }

/* Bouton Suivre */
.hero-actions { display: flex; justify-content: center; margin: 12px 0 4px; }
.star { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px 0 12px; border-radius: 18px; font-weight: 650; font-size: .875rem;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--stroke-hi); transition: transform .1s ease-out, background .15s; }
.star svg { width: 18px; height: 18px; }
.star.on { color: #ffd75e; background: rgba(255,215,94,.12); box-shadow: inset 0 0 0 1px rgba(255,215,94,.35); }
.star:active { transform: scale(.95); }

/* Fiabilite des sources */
.trust { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 2px 1px 6px; vertical-align: middle; }
.trust.ok { background: var(--green); } .trust.pdf { background: var(--amber); } .trust.scan { background: #ff7a45; box-shadow: 0 0 0 2px rgba(255,122,69,.25); }
.badge.managed { background: rgba(255,90,95,.14); color: #ff9a9d; }

/* Avatars : pays */
.avatar { position: relative; }
.avatar .cc { position: absolute; right: -4px; bottom: -3px; font: 700 .5rem/1 system-ui; font-style: normal; padding: 2px 3px; border-radius: 5px;
  background: #0b1020; color: var(--label-2); box-shadow: 0 0 0 1px var(--stroke-hi); letter-spacing: .02em; }
.avatar.lg .cc { font-size: .6875rem; padding: 3px 5px; right: 2px; bottom: 2px; }
.stack .avatar .cc { display: none; }

/* Sections repliables et compteurs */
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .section-h h2::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 9px; vertical-align: 2px;
  border-right: 2px solid var(--label-3); border-bottom: 2px solid var(--label-3); transform: rotate(45deg); transition: transform .2s; }
details.fold:not([open]) > summary .section-h h2::after { transform: rotate(-45deg); }
.stat-card em { display: block; font-style: normal; font-size: .6875rem; font-weight: 600; margin-top: 3px; }
.top-card .why { margin-top: 8px; font-size: .75rem; font-weight: 600; color: #ffd75e; }
.bars-wrap { position: relative; padding-left: 26px; }
.bars-wrap .ymax, .bars-wrap .ymid { position: absolute; left: 0; font-size: .625rem; color: var(--label-3); font-variant-numeric: tabular-nums; }
.bars-wrap .ymax { top: -4px; } .bars-wrap .ymid { top: calc(50% - 10px); }
.bars .grid { stroke: rgba(255,255,255,.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis span:nth-child(2) { color: var(--label-3); font-size: .625rem; }
.count { font-size: .75rem; color: var(--label-3); margin: 2px 2px 6px; }
.group.fresh { box-shadow: inset 0 0 0 1px rgba(255,215,94,.3); }
a.more { display: block; text-align: center; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin: 0 0 14px; border-radius: var(--radius-s);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--stroke); font-size: .875rem; font-weight: 600; }
.link-row svg:first-child { width: 20px; height: 20px; color: var(--blue); } .link-row span { flex: 1; }
.wrap2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important; }

/* Panneau Filtrer et trier */
.filter-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; font-size: .875rem; font-weight: 600;
  background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--stroke); }
.filter-btn svg { width: 18px; height: 18px; }
.filter-btn b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--blue); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.filter-btn.on { box-shadow: inset 0 0 0 1px rgba(59,123,255,.6); }
.filter-reset { font-size: .8125rem; color: var(--blue); font-weight: 600; }
dialog.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 640px; margin: 0 auto; max-height: 82vh; padding: 0 0 calc(18px + env(safe-area-inset-bottom));
  border: 0; border-radius: 24px 24px 0 0; color: var(--label); background: rgba(14,19,32,.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 -20px 60px rgba(0,0,0,.6), inset 0 1px 0 var(--stroke-hi); overflow: hidden auto; }
dialog.sheet[open] { animation: sheet-in .32s cubic-bezier(.2,.9,.25,1); }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
dialog.sheet::backdrop, dialog.gsearch::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); margin: 9px auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 6px; position: sticky; top: 0; }
.sheet-head h3 { margin: 0; font-size: 1.0625rem; }
.sheet-done { height: 34px; padding: 0 18px; border-radius: 17px; background: var(--blue); color: #fff; font-weight: 700; font-size: .875rem; }
.sheet-body { padding: 6px 20px 8px; }
.sheet-group h4, .gs-res h4 { margin: 16px 0 10px; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); }
.sheet .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
@media (min-width: 900px) { dialog.sheet { inset: 0; margin: auto; border-radius: 22px; max-height: 80vh; } dialog.sheet[open] { animation: none; } }

/* Recherche globale */
dialog.gsearch { width: min(640px, 100%); max-height: 100%; height: 100%; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 16px 20px;
  border: 0; color: var(--label); background: rgba(6,9,18,.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.gs-head { display: flex; align-items: center; gap: 12px; } .gs-head .search { flex: 1; margin: 0; }
.gs-cancel { color: var(--blue); font-weight: 600; font-size: .9375rem; }
.gs-res { margin-top: 8px; overflow-y: auto; max-height: calc(100% - 60px); }
@media (min-width: 900px) { dialog.gsearch { height: auto; max-height: 76vh; margin-top: 10vh; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px var(--stroke-hi); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --label-2: #c6cddc; --label-3: #aab3c5; --stroke: rgba(200,215,245,.35); }
  .card, .group, .tile, .stat-card, .top-card { background: var(--card-solid); }
}

/* =====================================================================
   Theme « Coulisses » — noir profond, gris systeme Apple, un seul accent.
   Pas de halo, pas de degrade, pas de texte en degrade : la donnee d'abord.
   ===================================================================== */
:root {
  --bg: #000; --bg-2: #000;
  --card: #1c1c1e; --card-solid: #1c1c1e; --card-hi: #2c2c2e; --fill: rgba(118, 118, 128, .24);
  --stroke: #38383a; --stroke-hi: #48484a;
  --label: #fff; --label-2: #aeaeb2; --label-3: #8e8e93;
  --blue: #0a84ff; --blue-2: #0a84ff; --blue-glow: transparent;
  --green: #30d158; --red: #ff453a; --amber: #ff9f0a; --violet: #bf5af2; --teal: #64d2ff; --pink: #ff375f; --sand: #c8a97e;
  --radius: 14px; --radius-s: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
}
body { background: #000; }
::selection { background: rgba(10,132,255,.35); }

/* Surfaces : aplats, sans verre ni contour sur fond noir */
.card, .group, .tile, .stat-card, .top-card, .empty, .text-block, .more, .sector-card, .link-row {
  background: var(--card); box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.cell + .cell::before { background: var(--stroke); height: .5px; transform: scaleY(1); }
a.cell:active, .cell.tx:active { background: #2c2c2e; }
@media (hover: hover) { a.cell:hover, .cell.tx:hover { background: #242426; } }

/* Typographie : titres SF Display, hierarchie par la graisse et la taille */
.large-title { font-size: clamp(2.125rem, 5.4vw, 2.625rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.05; margin: 4px 0 8px; }
.large-title .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.large-title .muted { color: var(--label-3); }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--label-3); }
.subtitle { color: var(--label-2); font-size: 1rem; line-height: 1.45; }
.section-h { margin: 34px 2px 12px; }
.section-h h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; text-transform: none; color: var(--label); }
.section-h small { font-size: .8125rem; color: var(--label-3); }
.day-h { font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--label-3); margin: 24px 4px 8px; }
.sheet-group h4, .gs-res h4 { letter-spacing: 0; text-transform: none; font-size: .8125rem; font-weight: 600; color: var(--label-3); }
.cell .t { font-weight: 600; letter-spacing: -.012em; }
.cell .trail { font-weight: 600; }
.stat-card b, .tile b, .top-card .big, .quote-big b, .cons-score { font-weight: 700; letter-spacing: -.025em; }
.wealth-big { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--label); font-weight: 700; }

/* Controles iOS */
.search input { height: 38px; border-radius: 10px; background: var(--fill); box-shadow: none; font-size: 1.0625rem; padding-left: 36px; }
.search input:focus { box-shadow: none; }
.search svg { left: 11px; top: 10px; color: var(--label-3); }
.segmented { background: var(--fill); border-radius: 9px; padding: 2px; box-shadow: none; }
.segmented button { height: 30px; border-radius: 7px; font-size: .8125rem; color: var(--label); }
.segmented button.on { background: #636366; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.chip { height: 32px; border-radius: 16px; background: var(--card-hi); box-shadow: none; font-weight: 500; }
.chip.on { background: #fff; color: #000; box-shadow: none; font-weight: 600; }
.filter-btn { background: var(--card-hi); box-shadow: none; font-weight: 500; }
.filter-btn.on { box-shadow: none; background: #fff; color: #000; }
.filter-btn b { background: #000; color: #fff; }
.filter-reset, .more, details summary, .gs-cancel { color: var(--blue); }
.sheet-done { background: var(--blue); }
.official { background: var(--blue); box-shadow: none; font-weight: 600; }
.star { background: var(--card-hi); box-shadow: none; font-weight: 600; }
.star.on { color: #000; background: #fff; box-shadow: none; }
.nav-btn, .back { background: var(--card-hi); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.back { color: var(--blue); font-weight: 400; font-size: 1.0625rem; background: none; padding-left: 4px; }
.back svg { width: 11px; height: 19px; }

/* Barres : materiau neutre */
.navbar.scrolled { background: rgba(0,0,0,.78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 .5px 0 var(--stroke); }
.tabbar { background: rgba(30,30,32,.78); box-shadow: 0 .5px 0 rgba(255,255,255,.08) inset, 0 12px 32px rgba(0,0,0,.5); }
.tab { color: #8e8e93; font-weight: 500; }
.tab.on { color: var(--blue); background: rgba(255,255,255,.07); box-shadow: none; }
@media (min-width: 900px) {
  .sidebar { background: #0c0c0d; box-shadow: .5px 0 0 var(--stroke); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .side-brand { letter-spacing: -.01em; font-size: 1.125rem; font-weight: 700; }
  .side-nav a { border-radius: 8px; height: 38px; font-weight: 500; color: var(--label); }
  .side-nav a svg { color: var(--blue); }
  .side-nav a.on { background: #2c2c2e; box-shadow: none; color: #fff; }
  .side-search { background: var(--fill); box-shadow: none; border-radius: 8px; }
  .side-cur { box-shadow: none; background: var(--card-hi); border-radius: 8px; }
}
.brand-mini { letter-spacing: -.01em; font-size: 1.0625rem; font-weight: 700; }

/* Marque : rideaux entrouverts, blanc sur noir */
.logo { background: #fff; box-shadow: none; border-radius: 8px; }
.logo svg path { stroke: none; }

/* Avatars et vignettes : aplats discrets */
.avatar { background: color-mix(in srgb, var(--c) 30%, #2c2c2e); box-shadow: none; font-weight: 600; }
.avatar.lg { box-shadow: none; background: color-mix(in srgb, var(--c) 30%, #2c2c2e); }
.stack .avatar { box-shadow: 0 0 0 2px var(--card); }
.avatar .cc { background: #000; box-shadow: none; color: var(--label-2); }
.logo-co { background: var(--card-hi); box-shadow: none; color: #fff; border-radius: 10px; font-weight: 700; }
.hero .kind { background: var(--card-hi); box-shadow: none; font-weight: 600; letter-spacing: 0; }
.badge { font-weight: 700; letter-spacing: .02em; background: var(--card-hi); }
.badge.cac { color: #64b0ff; background: rgba(10,132,255,.16); }

/* Graphiques sans lueur */
.sector-top .dot, .tl-dot { box-shadow: none; }
.tl-dot { box-shadow: 0 0 0 3px var(--card); }
svg.graph .node.n0 circle, svg.graph .node:hover circle { filter: none; }
svg.graph .node circle { fill: color-mix(in srgb, var(--c) 28%, #1c1c1e); }
.graph-tools button { background: var(--card-hi); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.loading::before { border-color: var(--stroke-hi); border-top-color: var(--label-2); }
dialog.sheet { background: #1c1c1e; box-shadow: none; }
dialog.gsearch { background: #000; }
.why { color: var(--amber) !important; }
@media (min-width: 900px) {
  .view { max-width: 880px; padding: 12px 0 64px;
          margin-left: calc(var(--sidebar-w) + max(40px, (100vw - var(--sidebar-w) - 880px) / 2)); margin-right: 0; }
  .view > * { max-width: none; }
  .carousel { margin-left: 0; margin-right: 0; }
}
.sector-split span.up { color: var(--label-2); }
.sector-net { font-weight: 500; }

/* ---------- Performance, classement, fonds, alertes, articles ---------- */
.rank { width: 22px; flex: none; text-align: center; font-weight: 600; font-size: .875rem; color: var(--label-3); font-variant-numeric: tabular-nums; }
.cell .trail .up, .cell .trail .down { font-weight: 600; }
.cell .trail small.up, .cell .trail small.down { font-weight: 600; }
.perf-card { margin-top: 16px; }
.perf-main { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.perf-main b { font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.perf-main span { color: var(--label-2); font-size: .875rem; }
.perf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.perf-grid > div { background: var(--card-hi); border-radius: 10px; padding: 10px 12px; }
.perf-grid b { display: block; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.perf-grid b small { font-size: .75rem; color: var(--label-3); font-weight: 600; }
.perf-grid span { font-size: .75rem; color: var(--label-2); }
.lnk-blue, .disclaimer a { color: var(--blue); }
.push-card { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 8px; }
.push-card > div { flex: 1; min-width: 220px; }
.push-card b { font-size: 1rem; }
.push-card p { margin: 4px 0 0; color: var(--label-2); font-size: .875rem; line-height: 1.4; }
.push-card p.err { color: var(--amber); }
.push-card button { flex: none; height: 38px; padding: 0 18px; border-radius: 19px; }
.side-links { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 14px 14px 0; font-size: .8125rem; }
.side-links a { color: var(--label-3); } .side-links a:hover { color: var(--label); }
.article { max-width: 680px; }
.prose { font-size: 1.0625rem; line-height: 1.6; color: #e5e5ea; }
.prose h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; margin: 30px 0 8px; color: var(--label); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; } .prose li { margin: 6px 0; }
.prose b { color: #fff; font-weight: 600; }
.prose .callout { background: var(--card); border-radius: 12px; padding: 14px 16px; color: var(--label-2); font-size: .9375rem; }
.prose .trust { margin-left: 0; }

/* ---------- Signaux, achats groupés, retards, simulation, outils ---------- */
.badge.signal { color: #64b0ff; background: rgba(10,132,255,.16); }
.badge.signal.hot { color: #000; background: #ffd60a; }
.score-ring { --v: 50; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--blue) calc(var(--v) * 1%), #2c2c2e 0); }
.score-ring b { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.late { color: var(--amber); font-weight: 600; }
.comm { color: #bf9bff; }
.delay-note { margin: 12px 4px 0; }
.chip.static { cursor: default; background: var(--card-hi); }
.copy-card .copy-lead { margin: 0 0 12px; color: var(--label-2); font-size: .9375rem; }
.copy-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.copy-figs > div { background: var(--card-hi); border-radius: 10px; padding: 10px 12px; }
.copy-figs b { display: block; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.copy-figs span { font-size: .75rem; color: var(--label-2); }
.copy-svg { width: 100%; height: 180px; display: block; }
.copy-svg path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.copy-svg .port { stroke: var(--blue); } .copy-svg .idx { stroke: #8e8e93; } .copy-svg .inv { stroke: #48484a; stroke-dasharray: 4 4; }
.groups { display: grid; gap: 14px; }
.grow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 64px; gap: 12px; align-items: center; }
.glab b { display: block; font-size: .9375rem; font-weight: 600; } .glab span { font-size: .75rem; color: var(--label-2); }
.gbar { position: relative; height: 8px; border-radius: 4px; background: #2c2c2e; }
.gbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #636366; }
.gbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.gbar i.pos { left: 50%; background: var(--green); } .gbar i.neg { right: 50%; background: var(--red); }
.grow em { font-style: normal; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 430px) { .grow { grid-template-columns: minmax(0, 1fr) 70px 56px; } }
.week-sum p { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.45; }
.week-link { margin-top: 14px; }
.share { margin-left: 8px; }
.tool-card { margin: 10px 0; }
.tool-card b { font-size: 1rem; }
.tool-card p { margin: 4px 0 10px; color: var(--label-2); font-size: .875rem; line-height: 1.4; }
.tool-row { display: flex; gap: 8px; }
.tool-row input { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 10px; background: var(--fill); color: var(--label); font: inherit; padding: 0 12px; }
.tool-row button, .tool-card > button { flex: none; height: 38px; padding: 0 16px; border-radius: 19px; }
.tool-msg { margin: 8px 0 0 !important; color: var(--label-2); }
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; padding: 12px 18px;
  border-radius: 14px; background: #2c2c2e; color: #fff; font-weight: 600; font-size: .9375rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .4s; }
.toast.out { opacity: 0; }
.onboard .ob { padding: 6px 24px 10px; text-align: left; }
.onboard h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 10px 0 10px; }
.onboard p { color: var(--label-2); font-size: 1rem; line-height: 1.45; margin: 0 0 16px; }
.ob-logo { width: 52px; height: 52px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-top: 8px; }
.ob-logo svg { width: 34px; height: 34px; }
.ob-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ob-list li { font-size: .9375rem; color: var(--label-2); } .ob-list b { color: var(--label); }
.ob-chips { margin-bottom: 20px !important; }
.ob-sugg { margin-bottom: 18px; max-height: 42vh; overflow-y: auto; background: #2c2c2e; }
.ob-sugg input { width: 22px; height: 22px; accent-color: var(--blue); }
.official.wide { width: 100%; justify-content: center; height: 48px; border-radius: 14px; font-size: 1.0625rem; }
.ob-skip { display: block; width: 100%; margin-top: 10px; height: 40px; color: var(--label-2); font-size: .9375rem; }
