/* 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: #8f98ad; --label-3: #5b6479;
  --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); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 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; }

/* 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; }
}
