:root {
  --bg: #07061a;
  --bg-2: #0d0b2b;
  --surface: #131138;
  --line: rgba(160, 150, 255, 0.16);
  --text: #eeecff;
  --muted: #a7a3d6;
  --blue: #3b6bff;
  --violet: #9b5cff;
  --pink: #d58bff;
  --grad: linear-gradient(100deg, #4d7dff 0%, #9b5cff 55%, #d58bff 100%);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(800px 500px at 0% 30%, rgba(59, 107, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(24px, 3vw);
  background: rgba(7, 6, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); letter-spacing: 0.14em; }
.brand-mark {
  font-weight: 700; font-size: 20px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-word { font-weight: 500; font-size: 14px; color: var(--text); letter-spacing: 0.32em; }
.brand-logo { width: 26px; height: 26px; align-self: center; margin-right: 6px; }
.brand-svg { display: block; height: 58px; width: auto; }
.topbar { padding-top: 9px; padding-bottom: 9px; }
.gate-svg { display: block; height: 170px; width: auto; }
.nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 230px;
  display: flex; align-items: flex-end;
  padding: 36px max(24px, 3vw) 30px;
  background: url("assets/hero.webp") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 26, 0.25) 0%, rgba(7, 6, 26, 0.55) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 6, 26, 0.75) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: #cfcbf5; font-size: 16px; max-width: 560px; }

/* ---------- Liste d'articles ---------- */
.section { padding: 28px max(24px, 3vw) 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 13px; color: var(--muted);
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line);
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(160, 150, 255, 0.4); }
.chip.active { color: #fff; border-color: transparent; background: var(--grad); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (min-width: 1500px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(25, 22, 70, 0.7), rgba(15, 13, 46, 0.7));
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 92, 255, 0.55);
  box-shadow: 0 18px 50px -20px rgba(123, 92, 255, 0.6);
}
.card:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.cover { aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 22px);
  mix-blend-mode: overlay;
}
.cover.has-img::after { display: none; }
.card .cover { transition: transform .5s ease; }
.card:hover .cover { transform: scale(1.04); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--pink);
}
.tag.equity { color: #7fa2ff; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.more span { color: var(--violet); transition: transform .2s; }
.card:hover .more span { transform: translateX(4px); }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- Page article ---------- */
.article-cover { height: 300px; background-size: cover; background-position: center; position: relative; }
.article-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 100%);
}
.article { max-width: 760px; margin: -110px auto 0; padding: 0 24px 90px; position: relative; }
.back { display: inline-flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; transition: color .2s; }
.back:hover { color: var(--text); }
.article h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin: 12px 0 14px; letter-spacing: -0.01em; }
.article .lede { font-size: 19px; color: #cfcbf5; margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose { font-size: 17px; color: #dcd9f7; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--text); margin: 40px 0 12px; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--text); margin: 28px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: #9fb6ff; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 26px 0; padding: 16px 22px; border-left: 3px solid var(--violet);
  background: rgba(155, 92, 255, 0.08); border-radius: 0 10px 10px 0; color: var(--text);
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.prose img { border-radius: 10px; margin: 0 0 22px; }

/* ---------- Pied de page ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 22px max(24px, 3vw);
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}

/* ---------- Choix de la langue ---------- */
.nav { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted); background: transparent; border: 0; border-radius: 999px;
  padding: 5px 12px; cursor: pointer; transition: color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: #fff; background: var(--grad); }

body.gated { overflow: hidden; }
.lang-gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    linear-gradient(180deg, rgba(7, 6, 26, 0.55), rgba(7, 6, 26, 0.88)),
    url("assets/hero.webp") center / cover no-repeat, var(--bg);
}
.lang-gate[hidden] { display: none; }
.lang-gate-inner { text-align: center; }
.gate-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.gate-brand .brand-official { width: 180px; height: 180px; border-radius: 10px; }
.gate-brand .brand-mark { font-size: 44px; }
.gate-brand .brand-logo { width: 56px; height: 56px; margin-right: 14px; }
.gate-brand .brand-word { font-size: 26px; }
.lang-gate p { color: #cfcbf5; margin: 0 0 30px; font-size: 15px; }
.gate-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.gate-buttons button {
  font-family: var(--display); font-size: 17px; font-weight: 600; color: #fff;
  min-width: 170px; padding: 15px 28px; border-radius: 12px; cursor: pointer;
  background: rgba(19, 17, 56, 0.7); border: 1px solid rgba(160, 150, 255, 0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, background .2s, border-color .2s;
}
.gate-buttons button:hover { transform: translateY(-2px); background: var(--grad); border-color: transparent; }

/* ---------- Articles longs : signature, graphiques, parties ---------- */
.prose .byline { color: var(--muted); font-size: 14px; font-style: italic; }
.prose figure { margin: 26px 0; }
.prose figure img { width: 100%; margin: 0; border: 1px solid var(--line); background: #fff; }
.prose h2.part {
  font-size: 28px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prose .notice {
  font-size: 14px; color: var(--text); padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(155, 92, 255, 0.1);
}
.article-cover { background-position: center 35%; }

/* ---------- Tableaux et chiffres clés TGE Research ---------- */
.prose figure.tge-fig {
  margin: 30px 0; padding: 22px 22px 18px; border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 24, 78, 0.85), rgba(15, 13, 46, 0.85));
}
.tge-fig .tf-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.tge-fig .tf-eyebrow { color: var(--pink); }
.tge-fig .tf-brand { color: var(--muted); white-space: nowrap; }
.tge-fig .tf-title { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--text); }
.tge-fig .tf-sub { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.tge-fig .tf-scroll { overflow-x: auto; }
.tge-fig table { margin: 0; font-size: 15px; min-width: 460px; }
.tge-fig th, .tge-fig td { text-align: center; padding: 11px 12px; white-space: nowrap; }
.tge-fig th:first-child, .tge-fig td:first-child { text-align: left; white-space: normal; }
.tge-fig thead th { background: rgba(155, 92, 255, 0.22); color: var(--text); font-weight: 600; border-bottom: 0; }
.tge-fig thead th:first-child { border-radius: 8px 0 0 8px; }
.tge-fig thead th:last-child { border-radius: 0 8px 8px 0; }
.tge-fig thead th.hl { background: var(--violet); color: #fff; }
.tge-fig td.hl { background: rgba(155, 92, 255, 0.12); color: #fff; font-weight: 600; }
.tge-fig tr.main td { color: var(--text); font-weight: 600; }
.tge-fig tr.sub td { color: var(--muted); font-size: 14px; }
.tge-fig tr.big td { font-family: var(--display); font-size: 17px; }
.tge-fig tr.big td.hl { background: var(--violet); }
.tge-fig td small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.tge-fig figcaption { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tge-fig figcaption span { display: block; }
.tge-fig figcaption .strong { color: var(--text); font-weight: 600; font-size: 13px; }
.tf-kpis { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.tf-kpis .kpi {
  grid-column: span 3; display: flex; flex-direction: column; gap: 6px; padding: 14px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.tf-kpis .kpi.top { grid-column: span 4; background: linear-gradient(135deg, rgba(77, 125, 255, 0.35), rgba(155, 92, 255, 0.45)); border-color: transparent; }
.tf-kpis .k-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.tf-kpis .top .k-label { color: #e4defc; }
.tf-kpis .k-value { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--text); line-height: 1.1; margin-top: auto; }
.tf-kpis .top .k-value { font-size: 26px; }
.tf-kpis .k-delta { font-size: 12px; color: #6fe0a8; }
.tf-kpis .neg .k-value, .tf-kpis .neg .k-delta { color: #ff8f9c; }
@media (max-width: 700px) {
  .tf-kpis .kpi, .tf-kpis .kpi.top { grid-column: span 6; }
}
.tge-fig thead th { text-transform: none; letter-spacing: 0.02em; font-size: 14px; }

/* ---------- Sommaire ---------- */
.prose h2 { scroll-margin-top: 84px; }
.prose .toc {
  margin: 0 0 34px; padding: 16px 20px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(19, 17, 56, 0.6);
}
.prose .toc summary {
  cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--text);
}
.prose .toc ul { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--toc-rows, 9), auto); grid-auto-flow: column; gap: 7px 28px; }
.prose .toc li { margin: 0; font-size: 14px; line-height: 1.4; }
.prose .toc li.toc-part { grid-column: 1 / -1; margin: 8px 0 2px; font-weight: 600; }
.prose .toc a { color: var(--muted); text-decoration: none; }
.prose .toc a:hover, .prose .toc a:focus-visible { color: var(--text); text-decoration: underline; }
.prose .toc li.toc-part a { color: var(--pink); }
@media (max-width: 620px) { .prose .toc ul { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

/* ---------- Note sous un visuel, colonne « stress test » ---------- */
.prose .fig-note { margin: -16px 0 24px; font-size: 14.5px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line); }
.tge-fig thead th.stress { background: rgba(255, 122, 89, 0.3); color: #ffc2b0; }
.tge-fig td.stress { background: rgba(255, 122, 89, 0.09); color: #ff9f85; font-weight: 600; }
.tge-fig tr.big td.stress { background: rgba(255, 122, 89, 0.24); color: #ffd3c6; }

/* ---------- Bloc réglementaire ---------- */
/* Informations réglementaires : même rendu que le texte, en italique, sans cadre */
.prose .regulatory { margin: 40px 0 0; padding: 0; border: 0; background: none; font-size: inherit; line-height: inherit; color: inherit; font-style: italic; }
.prose .regulatory .reg-title { display: block; margin: 0 0 12px; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 600; }
.prose .regulatory p { margin: 0 0 18px; }
.prose .regulatory p strong { font-weight: 400; }
.prose .disclaimer { font-size: 14.5px; color: var(--muted); }

/* ---------- Agrandissement au clic ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.prose figure.tge-fig.zoomable { transition: border-color .2s; }
.prose figure.tge-fig.zoomable:hover { border-color: rgba(155, 92, 255, 0.55); }
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; overflow: auto;
  display: flex; padding: 56px 16px 24px;
  background: rgba(5, 4, 18, 0.93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  touch-action: pan-x pan-y pinch-zoom; cursor: zoom-out;
}
.lb-stage { margin: auto; max-width: 100%; }
.lb-stage > img { display: block; max-width: min(96vw, 1600px); max-height: calc(100vh - 90px); border-radius: 8px; background: #fff; cursor: default; }
.lb-html { width: min(94vw, 1040px); cursor: default; }
.lb-html figure.tge-fig { margin: 0; }
@media (min-width: 1200px) { .lb-html { width: 880px; zoom: 1.3; } }
.lb-close {
  position: fixed; top: 12px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(160, 150, 255, 0.4); background: rgba(19, 17, 56, 0.9); color: #fff;
  font-size: 16px; cursor: pointer;
}
.lb-close:hover, .lb-close:focus-visible { background: var(--violet); outline: none; }

/* =====================================================================
   Graphiques TGE Research (charts.js) — même carte que les visuels existants
   ===================================================================== */
:root {
  --c-violet: #9b5cff;
  --c-violet-light: #c4a6ff;
  --c-violet-dark: #6b3bea;
  --c-gray: #7d79a8;
  --c-lavender: #b4aee0;
  --c-green: #6fe0a8;
  --c-red: #ff8a6b;
  --c-grid: rgba(160, 150, 255, 0.14);
}
.tge-fig .tf-chart { margin: 4px 0 2px; }
.tf-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tf-svg text { font-family: var(--body); font-size: 11px; fill: var(--text); }
.tf-svg .axis { fill: var(--muted); font-size: 10.5px; }
.tf-svg .lbl { fill: #dcd9f7; font-size: 11.5px; }
.tf-svg .strong { font-weight: 600; fill: var(--text); }
.tf-svg .val { font-size: 11px; font-weight: 600; }
.tf-svg .note { fill: var(--muted); font-size: 10.5px; }
.tf-svg .big { font-family: var(--display); font-size: 15px; font-weight: 700; }
.tf-svg .cap { fill: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; }
.tf-svg .grid { stroke: var(--c-grid); stroke-width: 1; }
.tf-svg .base { stroke: rgba(160, 150, 255, 0.35); stroke-width: 1; }
.tf-svg .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.tf-svg .ln.thin { stroke-width: 1.6; }
.tf-svg .dashed { stroke-dasharray: 5 4; }
.tf-svg .lead, .tf-svg .conn { stroke: rgba(196, 166, 255, 0.5); stroke-width: 1; stroke-dasharray: 3 3; }
.tf-svg .arrow { stroke: var(--c-violet-light); stroke-width: 1.6; }
.tf-svg .hollow { fill: var(--bg); stroke-width: 1.6; }
.tf-svg .ref { stroke: var(--c-violet); stroke-width: 2; }
.tf-svg .ref.dashed { stroke: var(--c-gray); stroke-width: 1.5; }
/* couleurs de séries (4 au plus par visuel) */
.tf-svg .f-violet { fill: var(--c-violet); }       .tf-svg .s-violet { stroke: var(--c-violet); }
.tf-svg .f-violet-light { fill: var(--c-violet-light); } .tf-svg .s-violet-light { stroke: var(--c-violet-light); }
.tf-svg .f-violet-dark { fill: var(--c-violet-dark); }
.tf-svg .f-gray { fill: var(--c-gray); }           .tf-svg .s-gray { stroke: var(--c-gray); }
.tf-svg .f-lavender { fill: var(--c-lavender); }   .tf-svg .s-lavender { stroke: var(--c-lavender); }
.tf-svg .f-green { fill: var(--c-green); }         .tf-svg .s-green { stroke: var(--c-green); }
.tf-svg .f-red { fill: var(--c-red); }             .tf-svg .s-red { stroke: var(--c-red); }
.tf-svg text.f-violet { fill: #b48bff; }
.bg-violet { background: var(--c-violet); color: #fff; }
.bg-violet-light { background: var(--c-violet-light); color: #1a1340; }
.bg-gray { background: var(--c-gray); color: #fff; }

.tge-fig .tf-box {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text);
  border: 1px solid var(--line); background: rgba(155, 92, 255, 0.1);
}
.tge-fig .tf-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* barre empilée */
.st-bar { display: flex; height: 38px; border-radius: 8px; overflow: hidden; gap: 2px; }
.st-seg { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.st-legend { display: grid; gap: 6px; margin-top: 14px; }
.st-item { display: grid; grid-template-columns: 12px 1fr auto 52px; gap: 10px; align-items: center; font-size: 14px; }
.st-item .sw { width: 12px; height: 12px; border-radius: 3px; }
.st-val { color: var(--text); font-weight: 600; }
.st-pct { color: var(--muted); text-align: right; }
.st-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.st-total strong { color: var(--text); }

/* cercle vertueux : nœuds et version mobile */
.tf-svg .ring { fill: none; stroke: rgba(160, 150, 255, 0.12); stroke-width: 18; }
.tf-svg .arc { fill: none; stroke: var(--c-violet); stroke-width: 1.8; }
.tf-svg .node { fill: #1d1852; stroke: var(--c-violet); stroke-width: 1.5; }
.tf-svg .ico { fill: none; stroke: var(--c-violet-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cy-list { list-style: none; margin: 0; padding: 0; counter-reset: cy; }
.cy-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14.5px; font-weight: 600; color: var(--text); position: relative; }
.cy-list li + li::before { content: "↓"; position: absolute; left: 14px; top: -11px; font-size: 12px; color: var(--c-violet); }
.cy-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #1d1852; border: 1px solid var(--c-violet); }
.cy-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--c-violet-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cy-loop { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cy-loop strong { color: var(--c-violet-light); }

/* carte */
.mp-wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.mp-wrap.narrow { grid-template-columns: 1fr; }
.mp-map { max-width: 360px; margin: 0 auto; width: 100%; }
.mp-wrap.narrow .mp-map { max-width: 260px; }
.tf-svg .land { fill: rgba(160, 150, 255, 0.1); stroke: rgba(160, 150, 255, 0.28); stroke-width: 1; }
.tf-svg .land.t-1 { fill: var(--c-violet); stroke: #d2bcff; }
.tf-svg .land.t-2 { fill: rgba(155, 92, 255, 0.62); stroke: #d2bcff; }
.tf-svg .land.t-3 { fill: rgba(155, 92, 255, 0.38); stroke: #d2bcff; }
.tf-svg .land.t-4 { fill: rgba(155, 92, 255, 0.05); stroke: var(--c-violet-light); stroke-width: 1.6; stroke-dasharray: 5 4; }
.tf-svg .mp-lbl { font-size: 15px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(7, 6, 26, 0.75); stroke-width: 3px; }
.mp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.mp-card.t-1 { background: linear-gradient(135deg, rgba(77, 125, 255, 0.35), rgba(155, 92, 255, 0.45)); border-color: transparent; }
.mp-card .k-label { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mp-card.t-1 .k-label { color: #e4defc; }
.mp-card .k-value { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--text); line-height: 1.15; }
.mp-card .mp-line { font-size: 12px; color: #cfcbf5; line-height: 1.35; }
.mp-card .sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sw.t-1 { background: var(--c-violet); } .sw.t-2 { background: rgba(155, 92, 255, 0.62); }
.sw.t-3 { background: rgba(155, 92, 255, 0.38); } .sw.t-4 { border: 1.5px dashed var(--c-violet-light); }

/* frise */
.tl { margin: 6px 0 0; }
.tl-date { display: block; font-size: 12px; font-weight: 600; color: var(--text); }
.tl-lbl { display: block; font-size: 12.5px; color: #cfcbf5; line-height: 1.35; }
.tl-ev.nubank .tl-date { color: #b48bff; }
.tl-h { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: auto 26px auto auto; }
.tl-h .tl-line { background: linear-gradient(90deg, rgba(160, 150, 255, 0.3) 88%, transparent); }
.tl-h .tl-line { grid-row: 2; align-self: center; height: 2px; background: rgba(160, 150, 255, 0.3); }
.tl-h .tl-dot { grid-row: 2; align-self: center; justify-self: start; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--c-gray); border: 2px solid var(--bg-2); z-index: 1; }
.tl-h .tl-dot.nubank { background: var(--c-violet); }
.tl-h .tl-ev { padding: 0 8px 0 9px; border-left: 1px solid rgba(160, 150, 255, 0.3); }
.tl-h .tl-ev.up { grid-row: 1; align-self: end; padding-bottom: 6px; }
.tl-h .tl-ev.down { grid-row: 3; align-self: start; padding-top: 6px; }
.tl-h .tl-end { grid-row: 4; grid-column: 1 / -1; justify-self: end; margin-top: 12px; text-align: right; }
.tl-h .tl-end .tl-lbl { color: var(--muted); }
.tl-h .tl-end strong { color: var(--text); font-weight: 600; }
.tl-v { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid rgba(160, 150, 255, 0.3); margin-left: 6px; }
.tl-v .tl-ev { position: relative; padding: 0 0 14px; }
.tl-v .tl-ev::before { content: ""; position: absolute; left: -27px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-gray); border: 2px solid var(--bg-2); }
.tl-v .tl-ev.nubank::before { background: var(--c-violet); }
.tl-v .tl-end::before { background: transparent; border: 2px dashed var(--c-violet-light); }

/* tableaux : ligne mise en avant, impacts */
.tge-fig tr.hl-row td { background: rgba(155, 92, 255, 0.14); color: #fff; }
.tge-fig td.neg { color: var(--c-red); font-weight: 600; }
.tge-fig td.pos { color: var(--c-green); font-weight: 600; }

/* informations à compléter (jamais publiées) */
.todo { background: rgba(255, 196, 0, 0.18); color: #ffd666; border: 1px dashed rgba(255, 214, 102, 0.7); border-radius: 4px; padding: 0 4px; font-weight: 600; font-style: normal; }
.tge-fig.tf-wide table { min-width: 600px; }
.tge-fig.tf-wide th, .tge-fig.tf-wide td { white-space: normal; text-align: left; vertical-align: top; }
.tge-fig.tf-wide td:nth-child(3), .tge-fig.tf-wide td:nth-child(4), .tge-fig.tf-wide th:nth-child(3), .tge-fig.tf-wide th:nth-child(4) { white-space: nowrap; }
.tge-fig.tf-wide td:last-child { color: var(--muted); font-size: 13.5px; }

/* frise : dates indicatives (contour en pointillé) */
.tl-note { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.tl-h .tl-dot.tentative { background: var(--bg-2); border: 2px dashed var(--c-violet); width: 13px; height: 13px; margin-left: -6px; }
.tl-v .tl-ev.tentative::before { background: var(--bg-2); border: 2px dashed var(--c-violet); }
/* source sous un paragraphe chiffré */
.prose .src-note { margin-top: -8px; font-size: 13px; color: var(--muted); }


/* ---------- Articles publiés chez un partenaire (Zonebourse, MarketScreener) ---------- */
.cover .src-badge {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 4px; border-radius: 999px;
  background: #fff; color: #1b1b1b; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.cover .src-badge img { width: 22px; height: 22px; border-radius: 6px; }
.card.external .cover { background-color: #0d0b2b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.cover .src-badge.icon-only { padding: 4px; }
.cover .src-badge.icon-only img { width: 26px; height: 26px; }
.st-item { align-items: start; }
.st-item .sw { margin-top: 5px; }
.st-desc { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.4; margin-top: 2px; }

/* photo d'illustration avec crédit */
.prose figure.photo { margin: 6px 0 26px; }
.prose figure.photo img { width: 100%; margin: 0; border-radius: 10px; background: #000; }
.prose figure.photo figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: right; }
.tge-fig.tf-wide td:nth-child(5), .tge-fig.tf-wide th:nth-child(5) { white-space: nowrap; }

/* tableaux à colonnes de texte (sensibilités, hypothèses) */
.tge-fig.tf-text table { min-width: 620px; }
.tge-fig.tf-text th, .tge-fig.tf-text td { white-space: normal; text-align: left; vertical-align: top; }
.tge-fig.tf-text th.num, .tge-fig.tf-text td.num { white-space: nowrap; text-align: right; }
.tge-fig.tf-text td.muted { color: var(--muted); font-size: 13.5px; }
.tge-fig td.stress small, .tge-fig td.hl small { color: var(--muted); font-weight: 400; }

/* ---------- Graphiques en lignes (impact d'hypothèses, football field) ---------- */
.rg { font-size: 14px; }
.rg-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 76px; column-gap: 16px; align-items: center; }
.rg-row:not(.rg-head):not(.rg-axis) { border-top: 1px solid rgba(155, 92, 255, 0.16); }
.rg-lbl { padding: 12px 0; line-height: 1.35; }
.rg-lbl strong { display: block; color: var(--text); font-weight: 600; font-size: 14.5px; }
.rg-desc { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.rg-tag { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; letter-spacing: 0.02em; color: var(--c-violet-light); border: 1px solid rgba(155, 92, 255, 0.4); }
.rg-track { position: relative; align-self: stretch; min-height: 44px; }
.rg-head .rg-track { min-height: 30px; }
.rg-axis .rg-track { min-height: 24px; }
.rg-axis .rg-lbl { padding: 0; font-size: 11.5px; color: var(--muted); text-align: right; }
.rg-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--c-violet-light); }
.rg-line.dashed { border-left: 1.5px dashed rgba(220, 217, 247, 0.55); }
.rg-head .rg-line { top: 22px; }
.rg-ltxt { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--muted); }
.rg-ltxt.strong { color: var(--c-violet-light); font-weight: 600; }
.rg-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 4px; background: var(--c-violet-light); }
.ff .rg-bar { margin-top: -11px; }
.rg-bar.up { background: var(--c-green); }
.rg-bar.down { background: var(--c-red); }
.rg-bar.c-gray { background: var(--c-gray); }
.rg-end { position: absolute; top: calc(50% + 6px); font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.rg-end.lo { transform: translateX(-2px); }
.rg-end.hi { transform: translateX(calc(-100% + 2px)); }
.rg-dot { position: absolute; top: 50%; width: 8px; height: 8px; margin: -8px 0 0 -4px; border-radius: 50%; background: #0f0d2e; border: 2px solid #fff; }
.rg-dot.big { width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 0; background: var(--c-lavender); }
.rg-mark { position: absolute; top: 50%; width: 4px; height: 22px; margin: -15px 0 0 -2px; border-radius: 2px; background: #fff; }
.rg-tick { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); }
.rg-val { text-align: right; line-height: 1.25; }
.rg-val b { display: block; font-family: var(--display); font-size: 16px; color: var(--text); }
.rg-val span { font-size: 12.5px; font-weight: 600; }
.rg-val.up span { color: var(--c-green); }
.rg-val.down span { color: var(--c-red); }
.rg-val.muted b { color: var(--muted); font-size: 14px; }
.rg-colhead { font-size: 11.5px; color: var(--muted); align-self: end; padding-bottom: 6px; }
.rg-narrow .rg-row { grid-template-columns: minmax(0, 1fr) 62px; column-gap: 10px; }
.rg-narrow .rg-lbl { grid-column: 1 / -1; padding: 10px 0 2px; }
.rg-narrow .rg-head .rg-lbl, .rg-narrow .rg-axis .rg-lbl { display: none; }
.rg-narrow .rg-row:not(.rg-head):not(.rg-axis) .rg-track { min-height: 40px; }

/* tableau des comparables */
.tge-fig.tf-peers table { min-width: 780px; }
.tge-fig.tf-peers th { white-space: normal; vertical-align: bottom; text-align: center; }
.tge-fig.tf-peers th:first-child { text-align: left; }
.tge-fig.tf-peers td:not(:first-child) { white-space: nowrap; text-align: center; vertical-align: middle; }
.tge-fig.tf-peers td:last-child { color: inherit; font-size: inherit; }
.tge-fig.tf-peers td:first-child small { margin-top: 2px; }
.rg-end.out { top: 50%; margin-top: -11px; }
.rg-end.lo.out { transform: translateX(calc(-100% - 6px)); }
.rg-end.hi.out { transform: translateX(6px); }
.tge-fig.tf-peers th:nth-child(n) { white-space: normal; }
.tge-fig.tf-peers th:first-child, .tge-fig.tf-peers td:first-child { width: 30%; min-width: 200px; }
.tge-fig.tf-peers th:not(:first-child) { width: 11.6%; font-size: 13px; line-height: 1.3; }
.tge-fig.tf-peers table { min-width: 640px; font-size: 14px; }
.tge-fig.tf-peers th, .tge-fig.tf-peers td { padding: 10px 8px; }
.tge-fig.tf-peers th:first-child, .tge-fig.tf-peers td:first-child { width: 26%; min-width: 165px; }
.tge-fig.tf-peers th:not(:first-child) { width: 12.3%; font-size: 12.5px; }
.tge-fig.tf-peers table { min-width: 600px; }
.tge-fig.tf-peers th, .tge-fig.tf-peers td { padding: 10px 6px; }
.tge-fig.tf-peers table { width: 100%; table-layout: fixed; }

@media (max-width: 520px) {
  .brand-svg { height: 50px; }
  .nav { gap: 14px; }
}
