:root {
  /* CLAIR PREMIUM : neutres légèrement froids (bg bleuté subtil), séparation nette des surfaces,
     ombres douces et étagées. Accent orange marque. */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f1419;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #eaecf0;
  --line-2: #dfe3e8;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: #fff3e9;
  --views: #ea580c;
  --viral: #e5484d;
  --trend: #d97706;
  --standalone: #3358d4;
  --rise: #12a150;
  --fall: #e5484d;
  --tiktok: #111114;
  --insta: #c13584;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 2px rgba(16,24,40,.03);
  --shadow-md: 0 2px 8px -2px rgba(16,24,40,.06), 0 10px 24px -8px rgba(16,24,40,.10);
  --shadow-lg: 0 4px 16px -4px rgba(16,24,40,.10), 0 24px 48px -16px rgba(16,24,40,.16);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 22px;
  --font-d: "Space Grotesk", "Inter", system-ui, sans-serif;
  --tint-warm: linear-gradient(135deg, #fff7f0, #ffffff); --tint-warm-bd: #f6ddc7;
  --tint-cool: linear-gradient(135deg, #f2f6ff, #ffffff); --tint-cool-bd: #d9e3fb;
  --tint-green: linear-gradient(135deg, #f2fbf5, #ffffff); --tint-green-bd: #cdead6;
}
[data-theme="dark"] {
  /* DARK aligné sur la landing (near-black premium) + surfaces étagées lisibles. */
  --bg: #08090c; --panel: #101318; --surface: #101318; --surface-2: #161a21;
  --text: #eef1f6; --muted: #949cab; --faint: #626b7a;
  --line: #1e242e; --line-2: #2a323f; --accent-soft: #26170c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 2px 10px -2px rgba(0,0,0,.5), 0 12px 28px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 8px 30px -8px rgba(0,0,0,.6), 0 30px 60px -20px rgba(0,0,0,.7);
  --tint-warm: linear-gradient(135deg, #1c150e, #101318); --tint-warm-bd: #322414;
  --tint-cool: linear-gradient(135deg, #10161f, #101318); --tint-cool-bd: #1c2636;
  --tint-green: linear-gradient(135deg, #0e1a14, #101318); --tint-green-bd: #17301f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
/* Typo display (titres de cartes/sections) : Space Grotesk, cohérent avec la landing. */
h1, h2, h3, h4, .ap-card > h4, .h2, .hero-title, .rx-headline { font-family: var(--font-d); letter-spacing: -.015em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.views-cell .n, .bench span, .kpi span, .opp-ring span, .td-stat span { letter-spacing: -.02em; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* Sidebar */
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; padding: 4px 6px; }
.logo b { font-weight: 800; }
.logo-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: var(--shadow-sm); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 12px 12px 4px; opacity: .7; }
.theme-toggle { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 14px; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-strong); }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: none; background: none; color: var(--muted); font-size: 14px; font-weight: 500; border-radius: var(--r-sm); cursor: pointer; text-align: left; transition: background .15s var(--ease), color .15s var(--ease); }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.nav-item.active .ic { color: var(--accent); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item .ic { width: 19px; height: 19px; }
.side-foot { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 6px; text-align: center; }
.kpi span { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 11px; }
.kpi-btn { font: inherit; width: 100%; cursor: pointer; transition: .15s var(--ease); }
.kpi-btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.kpi-btn:hover span { color: var(--accent-strong); }

/* Header / search */
.main { display: flex; flex-direction: column; min-width: 0; }
.head { padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.search { display: flex; align-items: center; gap: 10px; max-width: 1180px; flex-wrap: wrap; }
.search #q { min-width: 240px; }
.search-ic { color: var(--muted); margin-right: -4px; }
.search input { flex: 1; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14.5px; }
.search input { transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .14); }
.search button { transition: background .15s var(--ease), transform .1s var(--ease); }
.search button:active { transform: scale(.97); }
.search select { padding: 11px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; }
.search button { padding: 11px 20px; border-radius: var(--r-md); border: none; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s; }
.search button:hover { background: var(--accent-strong); }
.search button:disabled { opacity: .6; cursor: wait; }
.ghost-head { padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; white-space: nowrap; }
.ghost-head:hover { border-color: var(--accent); color: var(--accent-strong); }
.vir-score { margin-left: auto; text-align: center; background: #fdeaea; border: 1px solid #f5c2c2; border-radius: var(--r-md); padding: 6px 12px; }
.vir-n { font-size: 22px; font-weight: 800; color: var(--viral); letter-spacing: -.02em; }
.vir-score small { display: block; font-size: 10px; color: var(--viral); }
.status { padding: 14px 24px 0; color: var(--muted); min-height: 18px; }
.health { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 24px; }
.chips { display: flex; gap: 6px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.field { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.field select, .tag-input { padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; }
.tag-input { width: 150px; }
.ghost { padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 13px; cursor: pointer; }
.ghost:hover { color: var(--text); border-color: var(--accent); }
.count { margin-left: auto; }

/* Filtres avancés */
.adv { padding: 0 24px 14px; }
.adv-grid { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.num { width: 84px; padding: 7px 9px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; }
.dash { color: var(--muted); }
.adv-presets { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }

.content { padding: 6px 24px 60px; }
.favbadge { background: var(--accent); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 6px; margin-left: auto; }
.favbadge:empty { display: none; }

/* Réglage abonnés (sidebar) */
.side-acct { margin-top: auto; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.side-acct label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.side-acct input { width: 100%; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14px; }
.side-acct + .side-foot { margin-top: 12px; }

/* Hero "Commence ici" */
.hero-card { background: var(--tint-warm); border: 1px solid var(--tint-warm-bd); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hero-opp { font-size: 13px; color: var(--muted); display: flex; align-items: baseline; gap: 5px; }
.hero-opp-n { font-size: 26px; font-weight: 800; color: var(--accent-strong); letter-spacing: -.02em; }
.hero-opp.opp-excellente .hero-opp-n { color: var(--rise); }
.hero-opp.opp-difficile .hero-opp-n { color: var(--viral); }
.hero-steps { display: flex; flex-direction: column; gap: 10px; }
.hero-step { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; }
.hs-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.hs-k { font-weight: 700; color: var(--accent-strong); }
.hero-conf { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ap-section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-top: 8px; opacity: .7; }

/* Plan d'action */
.plan-card { background: var(--tint-warm); border: 1px solid var(--tint-warm-bd); }
.plan-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.plan-sentence { font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; margin-bottom: 14px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-chip { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.plan-chip b { color: var(--accent-strong); font-weight: 600; }
.personal { background: var(--tint-cool); border: 1px solid var(--tint-cool-bd); }

/* Cartes "ce qui gagne" */
.win-card { background: var(--tint-green); border: 1px solid var(--tint-green-bd); }
.nsmall { font-size: 10px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar.weak { opacity: .6; }
.bar.weak .fill { background: var(--line-2); }
.copy-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.copy-line code { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 11px; font-size: 12.5px; color: var(--accent-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { flex: none; padding: 8px 14px; }
.snd { display: flex; align-items: center; gap: 10px; padding: 7px 6px; margin: 0 -6px; border-radius: 8px; transition: background .12s; }
.snd:hover { background: var(--surface-2); }
.snd-play { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent-strong); font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.snd-play:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.snd-play:disabled { opacity: .35; cursor: default; }
.snd-info { flex: 1; min-width: 0; cursor: pointer; }
.snd-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snd-artist { font-weight: 400; color: var(--muted); }
.snd-sub { font-size: 11.5px; color: var(--muted); }
.snd-lift { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.snd-link { flex: none; color: var(--muted); text-decoration: none; font-size: 15px; padding: 2px 4px; }
.snd-link:hover { color: var(--accent-strong); }
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.cal-slot { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.cal-day { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.cal-type { font-size: 13px; font-weight: 600; }
.cal-type .mult { color: var(--rise); font-weight: 700; }
.cal-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* Testeur d'idée */
.idea-tester { margin-bottom: 18px; background: var(--tint-cool); border: 1px solid var(--tint-cool-bd); }
.tester-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 10px; }
.tester-row .field { flex-direction: column; align-items: flex-start; gap: 5px; }
.tester-row select { padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; min-width: 150px; }
.tester-result { margin-top: 14px; font-size: 15px; }
.pred-n { font-size: 26px; font-weight: 800; color: var(--accent-strong); letter-spacing: -.02em; }

/* Idées */
.ideas-head { margin-bottom: 16px; }
.ideas-head h3 { margin: 0 0 2px; font-size: 19px; }
.ideas-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.idea-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.idea-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.idea-n { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; display: grid; place-items: center; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.idea-pitch { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.idea-ex { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* Barre d'analyse (filtres qui pilotent l'Aperçu) */
.ap-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; box-shadow: var(--shadow-sm); }
.ap-filter select { padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; }

/* Aperçu : benchmark, formule, sous-niches, évolution */
.apercu { display: grid; gap: 16px; }
.ap-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.ap-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.ap-card:hover { box-shadow: var(--shadow-md); }
.ap-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ap-card .sub { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.bench { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; }
.bench span { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bench small { color: var(--muted); font-size: 11.5px; }
.sat { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sat.ouvert { background: #e7f6ec; color: var(--rise); }
.sat.équilibré { background: #fdf3e3; color: var(--trend); }
.sat.concentré { background: #fdeaea; color: var(--viral); }
.conf { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.conf-élevée { background: #e7f6ec; color: var(--rise); }
.conf-moyenne { background: #fdf3e3; color: var(--trend); }
.conf-faible { background: #fdeaea; color: var(--viral); }
.formula-row { margin-bottom: 12px; }
.formula-row .fl { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.bar { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bar .lbl { width: 150px; font-size: 12.5px; flex: none; }
.bar .track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 999px; }
.bar .pc { width: 38px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.subniche-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sn-chip { cursor: pointer; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid transparent; padding: 6px 11px; border-radius: 999px; font-size: 13px; }
.sn-chip:hover { border-color: var(--accent); }
.sn-chip b { font-variant-numeric: tabular-nums; }
.sn-scored { display: inline-flex; align-items: center; gap: 6px; }
.sn-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.arb-card { background: var(--tint-cool); border: 1px solid var(--tint-cool-bd); }
.ws-card { background: var(--tint-green); border: 1px solid var(--tint-green-bd); }
.ws-row { display: grid; grid-template-columns: 1fr auto 60px; align-items: center; gap: 12px; padding: 9px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.ws-row:hover { background: var(--surface-2); }
.ws-combo { font-size: 14px; }
.ws-row .pc { text-align: right; font-variant-numeric: tabular-nums; }
.arb-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.arb-row:hover { background: var(--surface-2); }
.arb-label { flex: 1; font-weight: 600; font-size: 13px; }
.arb-move { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.arb-missing { font-weight: 700; color: var(--standalone); }
.arb-row .pc { font-weight: 700; font-variant-numeric: tabular-nums; }
.idea-test { margin-top: 10px; font-size: 12.5px; padding: 7px 12px; }
/* Carte opportunité */
.opp { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.opp-score { display: flex; align-items: center; gap: 16px; }
.opp-ring { --p: 0; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.opp-ring::before { content: ""; position: absolute; inset: 8px; background: var(--surface); border-radius: 50%; }
.opp-ring span { position: relative; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.opp-label { font-size: 17px; font-weight: 700; text-transform: capitalize; }
.opp-bars { flex: 1; min-width: 260px; }
.opp-excellente .opp-ring { background: conic-gradient(var(--rise) calc(var(--p) * 1%), var(--surface-2) 0); }
.opp-difficile .opp-ring { background: conic-gradient(var(--viral) calc(var(--p) * 1%), var(--surface-2) 0); }
.export-btn { background: var(--accent); color: #fff; border: none; padding: 9px 16px; border-radius: var(--r-md); font-weight: 600; font-size: 13.5px; cursor: pointer; box-shadow: 0 1px 2px rgba(249,115,22,.25); transition: background .15s var(--ease), transform .1s var(--ease), box-shadow .15s; }
.export-btn:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 4px 12px -2px rgba(249,115,22,.35); }
.export-btn:active { transform: translateY(0); }
.ghost-btn { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: var(--r-md); font-weight: 500; font-size: 13.5px; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }

/* étoile favori */
.fav { background: none; border: none; cursor: pointer; color: var(--line-2); font-size: 16px; padding: 2px; }
.fav:hover, .fav.on { color: var(--accent); }
.phase { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.phase.émergent { background: #e7f6ec; color: var(--rise); }
.phase.encroissance { background: #e7f6ec; color: var(--rise); }
.phase.aupic { background: #fdf3e3; color: var(--trend); }
.phase.endéclin { background: #fdeaea; color: var(--viral); }
.cross { font-size: 10px; font-weight: 700; color: var(--standalone); background: #eaf0fe; padding: 2px 6px; border-radius: 5px; margin-left: 5px; }
/* colonnes créateurs */
.t-creators .thead, .t-creators .trow { grid-template-columns: 34px 2fr 80px 110px 90px 90px 110px 64px; }
.t-disc .thead, .t-disc .trow { grid-template-columns: 34px 2fr 130px 90px 90px 90px 100px 110px; }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }
.rise-badge { font-size: 10px; font-weight: 700; color: var(--rise); background: #e7f6ec; padding: 2px 6px; border-radius: 5px; margin-left: 6px; }

/* TABLE */
.table { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); max-height: calc(100dvh - 232px); overflow: auto; }
.thead, .trow { display: grid; align-items: center; gap: 14px; }
.thead { padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; background: rgba(251,251,252,.96); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 6; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px; }
.pg-btn { padding: 8px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; }
.pg-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.pg-btn:disabled { opacity: .4; cursor: default; }
.thead .sortable { cursor: pointer; user-select: none; }
.thead .sortable:hover { color: var(--accent-strong); }
.thead .arrow { opacity: .5; }
.trow { padding: 14px 20px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); }
.trow:last-child { border-bottom: none; }
.trow:hover { background: #faf9f8; border-left-color: var(--accent); }
.rank { font-weight: 700; color: #aeb4bf; font-variant-numeric: tabular-nums; font-size: 13px; }

/* colonnes vidéos: rang | contenu | hashtags | plateforme | vues | commentaires | eng | signal | action */
.t-videos .thead, .t-videos .trow { grid-template-columns: 34px 2.1fr 1.25fr 76px 100px 80px 86px 104px 60px; }
/* colonnes trends: rang | trend | vidéos | vues | durée | momentum | courbe | action */
.t-trends .thead, .t-trends .trow { grid-template-columns: 38px 2fr 80px 130px 90px 120px 150px 64px; }

.content-cell { display: flex; gap: 11px; align-items: center; min-width: 0; }
.thumb-sm { width: 46px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--line); flex: none; box-shadow: inset 0 0 0 1px rgba(16,24,40,.06); }
.c-text { min-width: 0; }
.c-author { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-cap { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htags { display: flex; flex-wrap: wrap; gap: 4px; }
.htag { font-size: 11px; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.plat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 3px 8px; border-radius: 6px; }
.plat.tiktok { background: #111114; color: #25f4ee; }
.plat.instagram { background: #fdeef5; color: var(--insta); }
.plat.youtube { background: #fdeaea; color: #ff0000; }
.views-cell .n { color: var(--views); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.views-cell .sub { color: var(--muted); font-size: 11.5px; }
.eng-cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.eng-cell small { color: var(--muted); font-weight: 400; display: block; }

.sig { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.sig::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sig.viral { color: var(--viral); background: #fdeaea; }
.sig.trend { color: var(--trend); background: #fdf3e3; }
.sig.standalone { color: var(--standalone); background: #eaf0fe; }
.sig.flat { color: var(--muted); background: var(--surface-2); }
.mom { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mom.rising { color: var(--rise); } .mom.declining { color: var(--fall); } .mom.steady { color: var(--muted); }

.act { font-size: 12.5px; font-weight: 600; color: var(--accent-strong); }

/* Sparkline */
.spark { display: block; }
.spark-area { fill: rgba(249, 115, 22, .14); }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.spark-dot { fill: var(--accent-strong); }
.spark-grid { stroke: var(--line-2); stroke-width: 1; }

/* Breakout grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #e6d8cc; }
.card .thumb { position: relative; aspect-ratio: 9/14; background: var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .ovl { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.card .ovl .n { color: #fff; font-weight: 800; font-size: 19px; }
.card .ovl .u { color: #ffd9be; font-size: 12px; margin-left: 4px; }
.card .badge { position: absolute; top: 8px; left: 8px; }
.card .meta { padding: 9px 11px 11px; }
.card .meta .a { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .s { color: var(--muted); font-size: 12px; margin-top: 2px; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.view-intro { font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 15px; margin-bottom: 14px; line-height: 1.45; }
.view-intro b { color: var(--text); }

/* Progression en direct */
.progress { max-width: 540px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.progress h3 { margin: 0 0 4px; font-size: 16px; }
.progress .pg-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pg-track { height: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pg-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 999px; width: 5%; transition: width .5s ease; }
.pg-stage { margin-top: 14px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pg-log { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow: auto; }
.pg-log .li { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.pg-log .li::before { content: "✓"; color: var(--rise); font-weight: 700; }
.pg-meta { margin-top: 14px; font-size: 12px; color: var(--muted); }
/* Étapes de scan en phases claires (remplace le compteur brut) */
.pg-steps { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.pg-step { display: flex; align-items: flex-start; gap: 11px; padding: 9px 4px; position: relative; }
.pg-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: -2px; width: 2px; background: var(--line); }
.pg-step.done:not(:last-child)::after { background: var(--rise); }
.pg-ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line); z-index: 1; }
.pg-step.done .pg-ico { background: var(--rise); border-color: var(--rise); color: #fff; font-weight: 800; }
.pg-step.active .pg-ico { background: var(--accent-soft); border-color: var(--accent); }
.pg-step.todo .pg-ico { opacity: .5; }
.pg-step-l { font-size: 13.5px; font-weight: 600; padding-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.pg-step.todo .pg-step-l { color: var(--muted); font-weight: 500; }
.pg-step.done .pg-step-l { color: var(--muted); }
.pg-step-d { font-size: 12px; font-weight: 500; color: var(--accent-strong); }

/* Accueil */
.home { max-width: 720px; margin: 50px auto; text-align: center; }
.home h2 { font-size: 24px; margin: 0 0 8px; }
.home p { color: var(--muted); margin: 0 0 26px; }
.home .label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 26px 0 12px; }
.home .niches { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.home .niche { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; transition: all .15s; }
.home .niche:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.home .resume { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid transparent; padding: 11px 18px; border-radius: var(--r-md); cursor: pointer; font-weight: 600; font-size: 14px; }
.home .resume:hover { border-color: var(--accent); }

/* Skeleton */
.skel-row { height: 74px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Tooltip */
.tip { cursor: help; border-bottom: 1px dotted var(--muted); }
.untrack { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; }
.untrack:hover { color: var(--viral); background: #fdeaea; }
.watch-card:hover { border-color: var(--accent); }

/* Favoris : collections + notes */
.fav-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.fav-bar select, .fav-bar .tag-input { padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; }
.fav-note { width: 100%; margin-top: 8px; min-height: 44px; resize: vertical; padding: 7px 9px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); font: inherit; font-size: 12.5px; }
.fav-note:focus { outline: none; border-color: var(--accent); }
.fav-move { margin-top: 8px; width: 100%; font-size: 12px; padding: 6px 10px; text-align: left; }

/* Barre d'agents IA (détail vidéo) */
.d-agents { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.d-agents-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-right: 2px; }

/* Coach conversationnel */
.coach-wrap { display: flex; flex-direction: column; height: calc(100dvh - 150px); max-width: 820px; margin: 0 auto; }
.coach-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 8px 4px 16px; }
.coach-msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.coach-msg.user { align-self: flex-end; background: var(--accent-strong, var(--accent)); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.coach-msg.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.coach-msg.assistant p { margin: 6px 0; } .coach-msg.assistant ul { margin: 6px 0; padding-left: 18px; } .coach-msg.assistant h4, .coach-msg.assistant h5 { margin: 8px 0 3px; }
.coach-typing { color: var(--muted); }
.coach-input-row { display: flex; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line); }
.coach-input-row .tag-input { flex: 1; }
.coach-empty { text-align: center; margin: auto; padding: 30px; }
.coach-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.coach-s { cursor: pointer; }

/* Fraîcheur de la donnée + courbe mesurée/estimée */
.fresh { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.fresh.fresh-ok { background: #e7f6ec; color: var(--rise); }
.fresh.fresh-mid { background: #fdf3e3; color: var(--trend); }
.fresh.fresh-old { background: #fdeaea; color: var(--viral); }
.curve-tag { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.curve-tag.meas { color: var(--rise); }
.curve-tag.est { color: var(--muted); }

/* Compte / auth */
.acct-area { padding: 0 2px; }
.acct-chip { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rise); flex-shrink: 0; }
.acct-email { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.acct-chip .ghost-btn { padding: 2px 8px; }
.acct-plan { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px; padding: 0 2px; }
.plan-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.plan-badge.plan-creator { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
.plan-badge.plan-studio { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.plan-up { font-size: 11.5px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.plan-up:hover { text-decoration: underline; }
.acct-logout { width: 100%; margin-top: 7px; font-size: 12px; padding: 6px 10px; color: var(--muted); }

/* Sortie des agents IA */
.ai-out { font-size: 14px; line-height: 1.6; }
.ai-out h4 { font-size: 15px; margin: 14px 0 4px; }
.ai-out h5 { font-size: 13px; margin: 10px 0 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.ai-out p { margin: 8px 0; }
.ai-out ul { margin: 6px 0; padding-left: 20px; }
.ai-out li { margin: 3px 0; }
.ai-loading { color: var(--muted); padding: 28px 0; text-align: center; }
.insight-card { border-left: 3px solid var(--rise); }
.insight-text { font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; margin-top: 6px; }
.insight-sigs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.insight-sig { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; }

/* Authenticité (heuristique) */
.auth-badge { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.auth-badge.suspect { background: #fdeaea; color: var(--viral); }
.auth-badge.moyen { background: #fdf3e3; color: var(--trend); }

/* Mise en avant de L'Œil (différenciateur) */
#dVision { background: linear-gradient(90deg, #7c3aed, #2563eb); color: #fff; border: none; font-weight: 700; }
#dVision:hover { filter: brightness(1.08); }

/* Tableau de bord perso + onboarding */
.dash-head { margin-bottom: 8px; }
.dash-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dash-niche:hover { border-color: var(--accent); }
.onb-card { border-left: 3px solid var(--accent); }
.onb-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.onb-step:last-child { border-bottom: none; }
.onb-step.done { opacity: .55; }
.onb-step.done b { text-decoration: line-through; }
.onb-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.onb-step.done .onb-check { background: var(--rise); color: #fff; }

/* Préférences d'alertes */
.notif-card .notif-toggle { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 8px; cursor: pointer; }
.notif-card input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Centre de nouveautés */
.news-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.news-main { min-width: 0; }
.news-spark { flex-shrink: 0; opacity: .85; }

/* A/B test de hooks */
.ab-result { margin-top: 12px; display: grid; gap: 7px; }
.ab-row { display: grid; grid-template-columns: 24px 1.4fr 2fr 64px auto; align-items: center; gap: 10px; }
.ab-rank { font-size: 14px; text-align: center; font-weight: 700; color: var(--muted); }
.ab-hook { font-size: 13px; font-weight: 600; }
.ab-track { background: var(--line); border-radius: 999px; height: 9px; overflow: hidden; }
.ab-fill { height: 100%; border-radius: 999px; background: var(--line-2); }
.ab-fill.win { background: var(--rise); }
.ab-n { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ab-verd { font-size: 11px; }

/* Décomposition du score de viralité */
.vir-parts { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 4px 0 12px; }
.vir-parts-h { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.vp-row { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 10px; margin: 5px 0; }
.vp-lbl { font-size: 12.5px; }
.vp-track { background: var(--line); border-radius: 999px; height: 7px; overflow: hidden; }
.vp-fill { height: 100%; border-radius: 999px; }
.vp-fill.hi { background: var(--rise); } .vp-fill.mid { background: var(--trend); } .vp-fill.lo { background: var(--line-2); }
.vp-n { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Sons : variante + projection */
.var-chip { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: #eaf0fe; color: var(--standalone); text-transform: lowercase; }
.proj { font-size: 12.5px; margin-top: 8px; color: var(--text); }
.proj .proj-pct { font-weight: 700; }
.proj.up .proj-pct { color: var(--rise); }
.proj.down .proj-pct { color: var(--viral); }
.proj.flat .proj-pct { color: var(--muted); }

.mult-badge { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #e7f6ec; color: var(--rise); }

/* Multiplicateur d'outlier sur les vignettes vidéo */
.td-vids .tv { position: relative; }
.tv-mult { position: absolute; top: 6px; left: 6px; background: rgba(22,163,74,.92); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 999px; }

/* Comparaison */
.compare-tray { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-lg); flex-wrap: wrap; max-width: 92vw; }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.cmp-x { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.cmp-x:hover { color: var(--viral); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.cmp-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.cmp-col h3 { margin: 0 0 2px; font-size: 17px; }
.cmp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.cmp-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 6px; text-align: center; }
.cmp-stats b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.cmp-stats small { color: var(--muted); font-size: 10.5px; }
.cmp-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; margin: 12px 0 5px; }
.cmp-line { font-size: 13px; line-height: 1.4; }

/* Toasts */
#toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--text); color: #fff; padding: 11px 17px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow-md); animation: toastin .25s ease; }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(17, 18, 22, .55); }
.modal-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.modal-card.wide { background: var(--surface); border-radius: var(--r-lg); padding: 24px; width: min(760px, 94vw); max-height: 88vh; overflow: auto; box-shadow: var(--shadow-md); }
.modal-player { width: min(340px, 92vw); aspect-ratio: 9/16; background: #000; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.modal-player iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -42px; right: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer; z-index: 2; }
.modal-card.wide .modal-close { top: 14px; right: 14px; }
.open-ext { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--accent); padding: 9px 18px; border-radius: var(--r-md); }
.open-ext:hover { background: var(--accent-strong); }

/* Détail vidéo */
.detail-card { background: var(--surface); border-radius: var(--r-lg); padding: 0; width: min(880px, 95vw); max-height: 90vh; overflow: hidden; box-shadow: var(--shadow-lg); }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; align-items: stretch; }
/* colonne noire pleine hauteur, lecteur 9:16 centré (pas de vide blanc sous un Short) */
.detail-player { background: #000; display: flex; align-items: center; justify-content: center; max-height: 90vh; overflow: hidden; }
.detail-player iframe { width: 100%; aspect-ratio: 9/16; height: auto; max-height: 90vh; border: 0; }
.detail-info { padding: 22px 24px; overflow-y: auto; max-height: 90vh; display: flex; flex-direction: column; gap: 12px; }
.detail-card .modal-close { top: 12px; right: 12px; z-index: 3; }
.d-head { display: flex; align-items: center; gap: 10px; }
.d-author { font-size: 18px; font-weight: 700; }
.d-cap { color: var(--text); font-size: 13.5px; line-height: 1.45; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.muted.small, .small { font-size: 12px; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; }
.d-stat span { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.d-stat small { display: block; color: var(--muted); font-size: 11px; }
.d-sound { font-size: 13px; color: var(--text); }
.d-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.d-script-label { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.d-script { background: var(--accent-soft); border: 1px solid #f3d9c4; border-radius: var(--r-md); padding: 14px 16px; font-size: 14.5px; line-height: 1.6; font-style: italic; }
.d-tbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.d-tbtns .ghost-btn { font-size: 12.5px; padding: 8px 12px; }
.hl { padding: 1px 3px; border-radius: 4px; font-style: normal; font-weight: 600; }
.hl.cta { background: #eaf0fe; color: var(--standalone); }
.hl.num { background: #e7f6ec; color: var(--rise); }
.hl.key { background: #fdeaea; color: var(--viral); }
.detail-info .open-ext { margin-top: auto; align-self: flex-start; }

/* Bibliothèque de hooks */
.hook-filters { display: flex; gap: 10px; margin-bottom: 16px; }
.hook-filters .tag-input { flex: 1; max-width: 360px; }
.hook-filters select { padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; }
.hook-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.hook-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.hook-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hook-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hook-script { font-size: 14px; line-height: 1.5; font-style: italic; }

/* Deep-dive créateur */
.creator-detail { display: flex; flex-direction: column; gap: 14px; }
.cr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-head h3 { margin: 0; font-size: 21px; }
.creator-detail .ap-row { gap: 14px; }
.creator-detail .ap-card { padding: 14px 16px; }

/* Trend detail modal */
.trend-detail h3 { margin: 0 0 4px; font-size: 20px; }
.td-sub { color: var(--muted); margin-bottom: 16px; font-size: 13px; }
.td-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.td-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; }
.td-stat span { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.td-stat small { color: var(--muted); font-size: 12px; }
.td-chart { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 18px; }
.td-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.td-vids .tv { cursor: pointer; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.td-vids .tv img { width: 100%; aspect-ratio: 9/14; object-fit: cover; display: block; }
.td-vids .tv .tvn { padding: 5px 7px; font-size: 11.5px; font-weight: 700; color: var(--views); }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* l'input de collection ne doit pas tronquer son placeholder */
#newCol { min-width: 240px; }

/* ===== Responsive : tablette & mobile ===== */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  /* sidebar -> barre supérieure : nav en scroll horizontal, pas de cram */
  .sidebar { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--line); }
  .sidebar::-webkit-scrollbar { display: none; }
  .logo { white-space: nowrap; }
  .nav { flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .nav-item { white-space: nowrap; padding: 8px 10px; }
  .nav-label { display: none; }
  .side-acct, .side-foot { display: none; }
  /* contenu : les sections 2 colonnes passent en 1 */
  .ap-row, .compare-grid, .detail-grid { grid-template-columns: 1fr; }
  /* fix grid overflow : les items de grille doivent pouvoir rétrécir */
  .main, .content { min-width: 0; max-width: 100%; }
  .apercu, .ap-row { min-width: 0; }
  .apercu > *, .ap-row > * { min-width: 0; }
  .ap-card { overflow-x: auto; }
  .cal-grid, .cmp-stats, .d-stats, .td-stats { grid-template-columns: repeat(2, 1fr); }
  /* tables : scroll horizontal interne, lignes lisibles */
  .table { min-width: 0; overflow-x: auto; }
  .thead, .trow { min-width: 720px; }
  .modal-card.wide, .detail-card { width: 96vw; }
  .compare-tray { width: 92vw; justify-content: center; }
}
@media (max-width: 560px) {
  .head { padding: 12px; }
  .search { flex-wrap: wrap; }
  .search input#q { flex: 1 1 100%; order: -1; }
  .toolbar { gap: 8px; }
  .cmp-stats, .d-stats, .td-stats, .bench-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-player iframe, .detail-player iframe { height: 60vh; }
}

/* Agent Analyste : progression de l'enquête (étapes streamées). */
.analyst-steps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.analyst-steps .astep { padding: 8px 12px; background: var(--card-2, #faf7f2); border-left: 3px solid var(--accent, #ff7a1a); border-radius: 6px; font-size: 14px; color: var(--ink, #2a2a2a); animation: astepIn .2s ease; }
@keyframes astepIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Minage des commentaires (gaps de contenu) */
.gaps-card { margin-top: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.gaps-card h5 { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.gap-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.gap-row:first-of-type { border-top: 0; }
.gap-kind { flex-shrink: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; }
.gap-question { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-strong); }
.gap-demande { background: color-mix(in srgb, var(--rise) 15%, transparent); color: var(--rise); }
.gap-text { flex: 1; line-height: 1.45; }
.gap-likes { flex-shrink: 0; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ===== PRESCRIPTION (cœur de l'Aperçu) ===== */
.rx-hero { background: linear-gradient(135deg, var(--tint-warm), var(--surface)); border: 1px solid var(--tint-warm-bd); position: relative; overflow: hidden; }
.rx-hero::before { content: ""; position: absolute; top: -40%; right: -10%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.10), transparent 70%); pointer-events: none; }
.rx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; position: relative; }
.rx-eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); }
.rx-opp { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.rx-opp b { font-size: 16px; color: var(--accent-strong); }
.rx-opp.opp-unsure { color: var(--muted); }
.rx-headline { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.02em; line-height: 1.28; margin-bottom: 18px; position: relative; max-width: 40ch; }
.rx-hl { color: var(--accent-strong); background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%); padding: 0 2px; }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; position: relative; }
.rx-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.rx-cell-l { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rx-cell-v { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.rx-cell-m { position: absolute; top: 10px; right: 11px; font-size: 11px; font-weight: 800; color: var(--rise); background: color-mix(in srgb, var(--rise) 12%, transparent); padding: 1px 6px; border-radius: 999px; }
/* Multiplicateur mis en exergue : c'est LA preuve chiffrée de la prescription */
.rx-cell-hot { border-color: color-mix(in srgb, var(--rise) 45%, var(--line)); background: color-mix(in srgb, var(--rise) 5%, var(--surface)); }
.rx-cell-mult { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.rx-cell-mult b { font-size: 22px; font-weight: 800; line-height: 1; color: var(--rise); font-variant-numeric: tabular-nums; }
.rx-cell-cap { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: lowercase; letter-spacing: .01em; }
.rx-audience { margin-bottom: 14px; position: relative; }
.rx-audience-btn { width: 100%; text-align: left; background: var(--surface); border: 1px dashed var(--accent); color: var(--accent-strong); font-weight: 600; font-size: 13.5px; padding: 12px 15px; border-radius: var(--r-md); cursor: pointer; transition: background .15s, border-color .15s; display: flex; align-items: center; gap: 8px; }
.rx-audience-btn:hover { background: var(--accent-soft); }
.rx-audience-btn .rx-arrow { margin-left: auto; transition: transform .15s; }
.rx-audience-btn:hover .rx-arrow { transform: translateX(3px); }
.rx-demands { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.rx-demands-h { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.rx-demand { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rx-demand:first-of-type { border-top: 0; }
.rx-demand-t { flex: 1; line-height: 1.45; }
.rx-conf { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; position: relative; }

/* ===== RADAR D'INFLEXION (point différenciant) ===== */
.radar-card { border-color: var(--tint-cool-bd); background: linear-gradient(135deg, var(--tint-cool), var(--surface)); }
.radar-head { display: flex; align-items: center; gap: 10px; }
.radar-head h4 { margin: 0; }
.radar-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--standalone); padding: 3px 9px; border-radius: 999px; }
.radar-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.radar-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, transform .1s; }
.radar-row:hover { border-color: var(--standalone); transform: translateX(2px); }
.radar-score { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--standalone) 12%, transparent); }
.radar-score b { font-size: 18px; font-weight: 800; color: var(--standalone); }
.radar-main { flex: 1; min-width: 0; }
.radar-label { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tk-kind { font-size: 11px; color: var(--muted); font-weight: 500; }
.radar-x { font-size: 10px; font-weight: 700; color: var(--standalone); background: color-mix(in srgb, var(--standalone) 12%, transparent); padding: 1px 7px; border-radius: 999px; }
.radar-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.radar-accel { font-size: 11.5px; font-weight: 700; color: var(--rise); }
.phase-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.phase-émergent { background: color-mix(in srgb, var(--rise) 15%, transparent); color: var(--rise); }
.phase-en-croissance { background: color-mix(in srgb, var(--trend) 15%, transparent); color: var(--trend); }
.phase-au-pic { background: var(--surface-2); color: var(--muted); }
.radar-spark { flex-shrink: 0; opacity: .8; }

/* Swipe-to-shoot : reproduire un gagnant */
.repro-cta { width: 100%; margin: 4px 0 12px; padding: 13px 16px; border: none; border-radius: var(--r-md); background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s; }
.repro-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.repro-cta .repro-sub { font-weight: 500; opacity: .9; font-size: 13px; }

/* Fiabilité affichée (radar) */
.rel-weak { font-size: 10px; font-weight: 700; color: var(--trend); background: color-mix(in srgb, var(--trend) 12%, transparent); padding: 1px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.rel-ok { font-size: 10px; font-weight: 700; color: var(--rise); background: color-mix(in srgb, var(--rise) 12%, transparent); padding: 1px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }

/* Cible réseau : pastilles de plateforme dans la barre de recherche */
.plat-bar { display: flex; gap: 4px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 3px; }
.plat-bar .plat-pill { padding: 8px 12px; border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.plat-bar .plat-pill:hover { background: var(--surface); color: var(--text); }
.plat-bar .plat-pill.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.chip-n { font-size: 10.5px; opacity: .7; font-weight: 700; margin-left: 3px; }
@media (max-width: 900px) { .plat-bar { order: 3; width: 100%; } }

/* Upgrade / passage plan payant */
.plan-up { border: none; background: none; cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--accent-strong); padding: 0; }
.plan-up:hover { text-decoration: underline; }
.up-modal { position: fixed; inset: 0; background: rgba(10,12,16,.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 200; }
.up-modal.hidden { display: none; }
.up-modal-in { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; width: min(440px, 92vw); box-shadow: var(--shadow-lg); }
.up-modal-in h3 { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.up-plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.up-plan { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 14.5px; transition: border-color .15s, transform .1s; }
.up-plan:hover { border-color: var(--accent); transform: translateY(-1px); }
.up-plan b { font-size: 15px; }

/* Clustering IA des commentaires */
.rx-cluster-btn { margin-top: 12px; width: 100%; padding: 11px 14px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 13.5px; border-radius: var(--r-md); cursor: pointer; transition: background .15s; }
.rx-cluster-btn:hover { background: var(--accent); color: #fff; }
.rx-cluster-btn:disabled { opacity: .6; cursor: wait; }
.rx-cluster-out { margin-top: 14px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13.5px; line-height: 1.6; }

/* Vue "Mon compte" : audit */
.acc-form { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.acc-form input { flex: 1; min-width: 180px; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14px; }
.acc-form select { padding: 11px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; }
.acc-out { margin-top: 8px; }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 14px; }
.acc-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.acc-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: block; }
.acc-stat small { color: var(--muted); font-size: 12px; }
.acc-hooks { font-size: 13.5px; margin-bottom: 12px; }
.acc-cmp { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14px; }
.acc-verdict.up { color: var(--rise); font-weight: 700; }
.acc-verdict.down { color: var(--viral); font-weight: 700; }
.acc-gap-btn { margin-top: 14px; }
.acc-gap { margin-top: 14px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }

/* Poster (LinkedIn/Pinterest : pas d'embed) dans le panneau détail */
.detail-poster { width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--surface-2); }
.detail-poster img { max-width: 100%; max-height: 55%; border-radius: var(--r-md); object-fit: cover; box-shadow: var(--shadow-md); }
.poster-cap { font-size: 13.5px; color: var(--muted); line-height: 1.5; max-width: 90%; }
.poster-open { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--r-md); background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.poster-open:hover { background: var(--accent-strong); }

/* Vue Sons viraux */
.sound-hero .snd-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.snd-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); transition: border-color .15s; }
.snd-row:hover { border-color: var(--accent); }
.snd-rank { width: 22px; text-align: center; font-weight: 800; color: var(--faint); font-size: 13px; flex-shrink: 0; }
.snd-liftbox { text-align: right; flex-shrink: 0; min-width: 90px; }
.snd-liftbox .snd-lift { font-size: 17px; font-weight: 800; }
.snd-liftbox small { display: block; font-size: 10px; }

/* Mon Studio */
.stu-list { display: flex; flex-direction: column; gap: 12px; }
.stu-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface-2); }
.stu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stu-kind { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.stu-title { flex: 1; min-width: 120px; font-weight: 700; font-size: 15px; outline: none; border-radius: 4px; padding: 2px 4px; }
.stu-title:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.stu-status { padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 12.5px; cursor: pointer; }
.stu-meta { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.stu-body { font-size: 13.5px; max-height: 220px; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.stu-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.stu-actions .ghost-btn { padding: 6px 12px; font-size: 12.5px; }

/* Feed de fraîcheur (Nouveautés) */
.fresh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.fresh-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s; }
.fresh-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.fresh-thumb { position: relative; aspect-ratio: 9/14; background: var(--surface-2); overflow: hidden; }
.fresh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fresh-plat { position: absolute; top: 7px; left: 7px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.fresh-vel { position: absolute; bottom: 7px; left: 7px; right: 7px; text-align: center; font-size: 11px; font-weight: 700; color: #fff; background: rgba(18,161,80,.9); padding: 3px 6px; border-radius: 999px; }
.fresh-body { padding: 9px 11px; }
.fresh-author { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fresh-stats { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fresh-niche { font-size: 11px; color: var(--faint); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Studio : date de planification */
.stu-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 5px 9px; background: var(--surface); cursor: pointer; }
.stu-date input { border: none; background: transparent; color: var(--text); font-size: 12.5px; font-family: inherit; cursor: pointer; }

/* Veille concurrentielle : créateurs suivis */
.fc-wrap { margin-bottom: 18px; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.fc-intel { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); }
.fc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-name { font-weight: 600; font-size: 14px; }
.fc-actions { display: flex; gap: 6px; align-items: center; }
.fc-unfollow { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 5px; border-radius: 6px; }
.fc-unfollow:hover { color: var(--rise); background: var(--line); }
.fc-body { margin-top: 4px; }
.fc-body:empty { display: none; }
.fc-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin: 8px 0; }
.fc-stats b { color: var(--text); }
.fc-sec { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 6px; }
.fc-bo { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); margin-bottom: 6px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.fc-bo:hover { border-color: var(--standalone); }
.fc-bo-mult { flex: 0 0 auto; font-weight: 700; color: var(--rise); font-size: 15px; min-width: 42px; }
.fc-bo-body { flex: 1; font-size: 12.5px; line-height: 1.35; }
.fc-bo-go { color: var(--muted); }
.fc-hooks { display: flex; flex-wrap: wrap; gap: 6px; }

/* Suivi de croissance du compte */
.growth-card { margin-top: 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); }
.growth-head { font-weight: 600; font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.growth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.growth-metric { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.gm-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 2px; }
.gm-val { font-size: 20px; font-weight: 700; line-height: 1.1; }
.spark { display: block; width: 100%; height: 40px; margin-top: 4px; overflow: visible; }
.growth-hint { margin-top: 12px; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }

/* Le viral du jour (cross-niche) */
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 6px; }
.vt-card { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .15s, transform .15s; }
.vt-card:hover { border-color: var(--standalone); transform: translateY(-2px); }
.vt-thumb { position: relative; aspect-ratio: 9/12; background: var(--line); overflow: hidden; }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-plat { position: absolute; top: 6px; left: 6px; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; }
.vt-vel { position: absolute; bottom: 6px; left: 6px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.72); color: #fff; padding: 2px 7px; border-radius: 5px; }
.vt-body { padding: 8px 10px; }
.vt-niche { font-size: 11px; color: var(--standalone); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-author { font-size: 13px; font-weight: 600; }
.vt-stats { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Sous-onglets des groupes de navigation consolidés */
.subtabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow-x: auto; }
.subtabs.hidden { display: none; }
.subtab { flex: 0 0 auto; border: none; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.subtab:hover { color: var(--text); background: var(--line); }
.subtab.active { background: var(--standalone); color: #fff; }

/* Tableaux markdown dans les sorties d'agents (shot-list, calendrier…) */
.md-table-wrap { overflow-x: auto; margin: 10px 0; }
.md-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--line-2); padding: 7px 10px; text-align: left; vertical-align: top; }
.md-table th { background: var(--surface-2, var(--surface)); font-weight: 600; white-space: nowrap; }
.md-table code { font-size: 12px; }
/* Compteur dans un sous-onglet */
.subtab-n { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px; font-size: 11px; line-height: 16px; text-align: center; border-radius: 8px; background: var(--line-2); color: var(--muted); }
.subtab.active .subtab-n { background: rgba(255,255,255,.25); color: #fff; }

/* Explicateur BYOK dans le modal IA */
.ai-explain { background: var(--surface-2, rgba(127,127,127,.06)); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
.ai-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 6px; }
.ai-steps span { flex: 1 1 auto; min-width: 120px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 9px; font-size: 12px; font-weight: 500; }
/* Raison contextuelle dans le modal upgrade */
.up-why { background: rgba(255,120,40,.1); border: 1px solid rgba(255,120,40,.3); color: var(--text); border-radius: var(--r-sm); padding: 9px 12px; margin: 0 0 14px; font-size: 13px; }

/* Bannière verdict prédictif (détail vidéo / check par URL) */
.verdict { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 9px 13px; border-radius: var(--r-md); margin: 10px 0 4px; border: 1px solid; }
.verdict-t { font-weight: 700; font-size: 15px; }
.verdict-sub { font-size: 12.5px; opacity: .85; }
.verdict-rise { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: var(--rise); }
.verdict-trend { background: rgba(255,150,40,.12); border-color: rgba(255,150,40,.35); color: var(--trend, #d97706); }
.verdict-mid { background: rgba(160,160,160,.12); border-color: var(--line-2); color: var(--text); }
.verdict-fall { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: var(--fall, #dc2626); }

/* Intelligence publicitaire (vue Pubs) */
.ad-search { margin-bottom: 18px; }
.ad-pls { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ad-pl { border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.ad-pl.active { background: var(--standalone); color: #fff; border-color: var(--standalone); }
.ad-pl.soon { opacity: .5; cursor: not-allowed; }
.adv-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.adv-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s; }
.adv-row:hover { border-color: var(--standalone); }
.adv-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--line); }
.adv-txt { display: flex; flex-direction: column; }
.adv-go { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.ad-scale { display: inline-block; margin: 4px 0 12px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid; }
.ad-scale-rise { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: var(--rise); }
.ad-scale-trend { background: rgba(255,150,40,.12); border-color: rgba(255,150,40,.35); color: var(--trend, #d97706); }
.ad-scale-muted { background: var(--line); border-color: var(--line-2); color: var(--muted); }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ad-card { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.ad-thumb { position: relative; aspect-ratio: 1.4; background: var(--line); overflow: hidden; }
.ad-media { width: 100%; height: 100%; object-fit: cover; }
.ad-noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.ad-plat { position: absolute; top: 7px; left: 7px; font-size: 10.5px; padding: 2px 7px; border-radius: 5px; }
.ad-status { position: absolute; top: 7px; right: 7px; font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,.65); color: #fff; }
.ad-status.on { background: rgba(34,197,94,.85); }
.ad-body { padding: 11px 13px; display: flex; flex-direction: column; gap: 5px; }
.ad-adv { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.ad-adv img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.ad-headline { font-size: 13px; font-weight: 600; }
.ad-text { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ad-meta { font-size: 11.5px; color: var(--muted); }
.ad-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ad-link { font-size: 12px; color: var(--standalone); text-decoration: none; }

/* Estimation de valeur monétaire */
.mny { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(34,197,94,.06); font-size: 13px; }
.mny-stat { display: flex; flex-direction: column; }
.mny-stat span { font-weight: 700; font-size: 15px; }
.mny-stat small { color: var(--muted); font-size: 11px; }
/* Cycle de vie d'un trend (saturation) */
.tl-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.tl-open { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: var(--rise); }
.tl-closing { background: rgba(255,150,40,.12); border-color: rgba(255,150,40,.35); color: var(--trend, #d97706); }
.tl-closed { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: var(--fall, #dc2626); }

/* Ligne de transparence de confiance */
.conf-line { font-size: 12px; color: var(--muted); margin: 6px 0; padding: 5px 10px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-sm); display: inline-block; }
.conf-line b { color: var(--text); }
.radar-window { margin-top: 4px; }

/* TikTok Shop */
.shop-price { font-size: 14px; }
.shop-price s { color: var(--muted); font-size: 12px; }
.shop-disc { position: absolute; top: 7px; left: 7px; font-size: 11px; font-weight: 700; background: #e11d48; color: #fff; padding: 2px 7px; border-radius: 5px; }

/* TikTok Shop — intelligence produit enrichie */
.shop-rev { font-size: 13px; color: var(--rise); font-weight: 700; margin: 2px 0; }
.shop-rev small { color: var(--muted); font-weight: 400; font-size: 11px; }
.shop-sorts { display: flex; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.shop-sort { border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.shop-sort.active { background: var(--standalone); color: #fff; border-color: var(--standalone); }
.shop-card { cursor: pointer; }
.shop-detail-head, .shop-store-head { display: flex; gap: 16px; align-items: flex-start; margin: 10px 0 16px; flex-wrap: wrap; }
.shop-detail-img { width: 120px; height: 120px; border-radius: var(--r-md); object-fit: cover; }
.shop-store-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.shop-detail-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.shop-detail-stats b { color: var(--text); font-size: 16px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rv-card { text-decoration: none; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: border-color .15s; }
.rv-card:hover { border-color: var(--standalone); }
.rv-thumb { position: relative; aspect-ratio: 9/13; background: var(--line); overflow: hidden; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-plays { position: absolute; bottom: 6px; left: 6px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.72); color: #fff; padding: 2px 7px; border-radius: 5px; }
.rv-auth { font-size: 12.5px; font-weight: 600; padding: 7px 9px 2px; }
.rv-title { font-size: 11.5px; color: var(--muted); padding: 0 9px 9px; line-height: 1.35; }
.shop-review { font-size: 12.5px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); margin-bottom: 6px; }
.shop-rev-stars { color: #f5a623; }

/* Carte Pub — hiérarchie des données */
.ad-since { position: absolute; top: 7px; right: 7px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,.7); color: #fff; }
.ad-since.on { background: rgba(34,197,94,.9); }
.ad-since.off { background: rgba(120,120,120,.85); }
.ad-since.long { background: #ea580c; }
.ad-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ad-cta { font-size: 11px; font-weight: 600; background: var(--standalone); color: #fff; padding: 2px 8px; border-radius: 5px; }
.ad-run { font-size: 11px; color: var(--muted); background: var(--line); padding: 2px 8px; border-radius: 5px; }
/* Preview d'une pub (modal) */
.admd { display: grid; grid-template-columns: minmax(260px, 42%) 1fr; gap: 20px; }
.admd-left { background: var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 70vh; }
.admd-media { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.admd-active { font-size: 12.5px; font-weight: 600; margin: 8px 0; }
.admd-active.on { color: var(--rise); }
.admd-active.off { color: var(--muted); }
.admd-title { font-size: 17px; margin: 6px 0; }
.admd-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; max-height: 30vh; overflow-y: auto; color: var(--text); }
.admd-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.admd-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.admd-row span { color: var(--muted); }
@media (max-width: 720px) { .admd { grid-template-columns: 1fr; } }
/* Carte Shop — stats principales */
.shop-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.shop-stat { font-size: 12px; color: var(--muted); }
.shop-stat b { font-size: 16px; color: var(--text); display: block; line-height: 1.1; }
.shop-stat.rev b { color: var(--rise); }

/* Recherche proéminente + suggestions (vues Espionner) */
.view-head { margin: 4px 0 16px; }
.view-head h3 { margin: 0 0 4px; font-size: 20px; }
.view-head p { margin: 0; max-width: 720px; }
.big-search { display: flex; gap: 10px; max-width: 560px; }
.big-search-input { flex: 1; padding: 12px 15px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit; }
.big-search-input:focus { outline: none; border-color: var(--standalone); }
.big-search .export-btn { padding: 0 22px; }
.search-guide { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.sugg-chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s; }
.sugg-chip:hover { border-color: var(--standalone); background: var(--line); }

/* Menus déroulants de la barre d'actions (désencombre l'Aperçu) */
.ha-menu { position: relative; display: inline-block; }
.ha-drop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-md, 0 8px 28px rgba(0,0,0,.18)); padding: 6px; display: none; }
.ha-drop.open { display: block; }
.ha-item { display: block; width: 100%; text-align: left; border: none; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.ha-item:hover { background: var(--line); }

/* Premier écran : cartes de parcours */
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0 26px; max-width: 820px; }
.home-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg, 16px); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.home-card:hover { border-color: var(--standalone); transform: translateY(-2px); box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.12)); }
.home-card .hc-ic { font-size: 26px; }
.home-card b { font-size: 15.5px; }
.home-card .hc-sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Détail vidéo : agents groupés (Comprendre / Produire) */
.d-agents { display: flex; flex-direction: column; gap: 12px; }
.d-agents-group { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.d-agents-group .d-agents-l { width: 100%; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }

/* Skeletons de chargement (grilles pub/shop) */
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 8px; }
.skel-card { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.skel-thumb { aspect-ratio: 1.4; background: var(--line); }
.skel-lines { padding: 12px; }
.skel-line { height: 11px; border-radius: 5px; background: var(--line); margin-bottom: 8px; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; } .skel-line.w80 { width: 80%; }
.skel-card, .skel-line, .skel-thumb { position: relative; overflow: hidden; }
.skel-shimmer::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); animation: skel 1.3s infinite; }
@keyframes skel { 100% { transform: translateX(100%); } }

/* ── Intelligence pub : contrôle marché + langue + scan multi-pays ── */
.adv-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.adv-head .adv-scan{margin-left:auto;font-size:12.5px;padding:7px 12px}
.mkt-bar,.lang-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.mkt-bar .muted,.lang-bar .muted{margin-right:2px}
.mkt-chip,.lang-chip{border:1px solid var(--line-2);background:var(--surface);color:var(--text);
  border-radius:999px;padding:5px 11px;font-size:12.5px;cursor:pointer;transition:.15s var(--ease);white-space:nowrap}
.mkt-chip:hover,.lang-chip:hover{border-color:var(--accent);background:var(--accent-soft)}
.mkt-chip.active,.lang-chip.active{background:var(--accent);border-color:var(--accent);color:#fff}
.lang-chip .lc-n{opacity:.7;font-weight:600;margin-left:2px}
.lang-chip.active .lc-n{opacity:.9}
.mkt-note{color:var(--muted);margin-left:4px}
/* panneau de scan */
.mkt-scan-load{padding:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);margin:10px 0}
.mkt-scan{background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-md);padding:14px;margin:10px 0;box-shadow:var(--shadow-sm)}
.mkt-scan-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.mkt-scan-head b{font-size:14.5px}
.mkt-rows{display:flex;flex-direction:column;gap:4px}
.mkt-row{display:grid;grid-template-columns:110px 1fr 92px 96px;align-items:center;gap:10px;
  width:100%;text-align:left;background:transparent;border:0;border-radius:var(--r-sm);
  padding:7px 8px;cursor:pointer;transition:.12s var(--ease)}
.mkt-row:hover{background:var(--accent-soft)}
.mkt-row.off{opacity:.5;cursor:default}
.mkt-row.off:hover{background:transparent}
.mkt-r-name{font-weight:600;font-size:13px}
.mkt-r-bar{height:8px;background:var(--line);border-radius:999px;overflow:hidden}
.mkt-r-fill{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-strong));border-radius:999px}
.mkt-r-stat{font-size:12.5px;text-align:right}
.mkt-r-stat b{color:var(--accent-strong)}
.mkt-r-days{font-size:12px;color:var(--muted);text-align:right}
.mkt-foot{margin-top:10px}
@media(max-width:640px){.mkt-row{grid-template-columns:80px 1fr 70px;gap:6px}.mkt-r-days{display:none}}

/* ── Facette secteur/catégorie sur la liste d'annonceurs ── */
.cat-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:2px 0 12px}
.cat-chip{border:1px solid var(--line-2);background:var(--surface);color:var(--text);
  border-radius:999px;padding:5px 11px;font-size:12.5px;cursor:pointer;transition:.15s var(--ease);white-space:nowrap}
.cat-chip:hover{border-color:var(--accent);background:var(--accent-soft)}
.cat-chip.active{background:var(--accent);border-color:var(--accent);color:#fff}
.cat-chip .lc-n{opacity:.6;font-weight:600;margin-left:2px}
.cat-chip.active .lc-n{opacity:.9}
.adv-vf{color:var(--standalone);font-size:11px}

/* ── Score viralité visible dans la colonne Signal (base du tri) ── */
.sig-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vscore { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 6px; line-height: 1.5; }
.vscore::after { content: '/100'; font-size: 9px; font-weight: 600; opacity: .6; margin-left: 1px; }
.vscore-hi { color: #0a7d3f; background: #e7f7ee; }
.vscore-mid { color: var(--accent-strong); background: var(--accent-soft); }
.vscore-lo { color: var(--muted); background: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  .vscore-hi { color: #4ade80; background: rgba(74,222,128,.12); }
  .vscore-lo { color: var(--faint); background: rgba(255,255,255,.04); }
}

/* Chips de statut de pub (En diffusion / Stoppées / Toutes) */
.st-chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; transition: .15s var(--ease); white-space: nowrap; }
.st-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.st-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Intel de test créatif (résumé annonceur) ── */
.adi { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px 16px; margin: 4px 0 14px; box-shadow: var(--shadow-sm); display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
.adi-stats { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.adi-stat { display: flex; flex-direction: column; }
.adi-stat b { font-size: 20px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.adi-stat span { font-size: 11px; color: var(--muted); }
.adi-win b { color: var(--rise); }
.adi-read { font-size: 12.5px; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
.adi-read b { color: var(--accent-strong); font-weight: 700; }
.adi-dist { flex: 1; min-width: 200px; }
.adi-bar { display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 1px; }
.adi-seg { display: block; }
.adi-seg.s1 { background: var(--faint); } .adi-seg.s2 { background: var(--accent); } .adi-seg.s3 { background: var(--rise); }
.adi-leg { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 11px; color: var(--muted); }
.adi-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.adi-leg i.s1 { background: var(--faint); } .adi-leg i.s2 { background: var(--accent); } .adi-leg i.s3 { background: var(--rise); }
/* Badge gagnante evergreen sur la carte */
.ad-win-badge { position: absolute; top: 7px; left: 7px; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px; background: linear-gradient(90deg, #f59e0b, #ea580c); color: #fff; z-index: 2; }
.ad-evergreen { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--rise) 40%, transparent), var(--shadow-sm); }

/* ── Cellule timing des trends (phase + cycle + verdict daté) ── */
.tl-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tl-cyc { width: 100%; max-width: 120px; height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.tl-cyc-fill { display: block; height: 100%; border-radius: 999px; }
.tl-cyc-fill.v-go { background: var(--rise); }
.tl-cyc-fill.v-soon { background: var(--accent); }
.tl-cyc-fill.v-late { background: var(--faint); }
.tl-verdict { font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.tl-verdict.v-go { color: var(--rise); }
.tl-verdict.v-soon { color: var(--accent-strong); }
.tl-verdict.v-late { color: var(--faint); }
.tl-when { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ── Arbitrage cross-niche ── */
.arb-card { border-left: 3px solid var(--rise); }
.arb-row2 { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: center;
  padding: 10px 6px; border-top: 1px solid var(--line); }
.arb-row2.clickable { cursor: pointer; }
.arb-row2.clickable:hover { background: var(--surface-2); }
.arb-l { display: flex; align-items: center; gap: 7px; min-width: 0; }
.arb-l b { font-size: 13.5px; }
.arb-kind { font-size: 13px; color: var(--muted); }
.arb-port { font-size: 10px; font-weight: 700; color: var(--rise); background: color-mix(in srgb, var(--rise) 12%, transparent);
  padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.arb-from { font-size: 12.5px; color: var(--muted); }
.arb-from b { color: var(--accent-strong); font-weight: 600; }
.arb-metrics { display: flex; align-items: center; gap: 10px; justify-self: end; }
.arb-accel { font-size: 12px; font-weight: 700; color: var(--rise); white-space: nowrap; }
@media (max-width: 640px) { .arb-row2 { grid-template-columns: 1fr; gap: 3px; } .arb-metrics { justify-self: start; } }

/* ── Nuage d'outliers (carte des opportunités) ── */
.scatter-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 12px 14px 8px; margin: 0 0 14px; box-shadow: var(--shadow-sm); }
.scatter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.scatter-head b { font-size: 14px; }
.scatter-toggle { flex: none; padding: 4px 10px; font-size: 12px; }
.scatter-wrap { position: relative; width: 100%; }
.scatter-wrap canvas { display: block; width: 100%; }
.scatter-tip { position: absolute; display: none; pointer-events: none; z-index: 5;
  background: var(--text); color: var(--surface); font-size: 11.5px; line-height: 1.35;
  padding: 6px 9px; border-radius: 7px; box-shadow: var(--shadow-md); max-width: 160px; }

/* ── Histogramme distribution des vues ── */
.hist-wrap { position: relative; width: 100%; margin-top: 8px; }
.hist-wrap canvas { display: block; width: 100%; }
.hist-med { color: var(--accent-strong); }
.hist-p90 { color: var(--rise); }

/* ── Activation : démo instantanée ── */
.demo-cta { display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; border: 0;
  border-radius: var(--r-lg); padding: 16px 30px; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent); transition: .18s var(--ease); margin: 6px 0 4px; }
.demo-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.demo-play { font-size: 14px; }
.demo-cta .demo-sub { font-size: 11.5px; font-weight: 500; opacity: .9; letter-spacing: .01em; }
.home-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 16px 0 6px; max-width: 420px; }
.home-or::before, .home-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--r-md); padding: 11px 16px; margin-bottom: 12px; font-size: 13.5px; }
.demo-banner b { color: var(--accent-strong); }
.demo-banner-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.demo-banner-cta { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: .15s var(--ease); }
.demo-banner-cta:hover { background: var(--accent-strong); }
.demo-banner a { color: var(--accent-strong); font-size: 12.5px; white-space: nowrap; }

/* ── Mur logged-out qui montre la valeur ── */
.lov-card { max-width: 620px; }
.lov-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.lov-ic { font-size: 30px; line-height: 1; }
.lov-head h4 { margin: 0 0 3px; font-size: 18px; }
.lov-list { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.lov-list li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.lov-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rise); font-weight: 800;
  background: var(--good-soft, color-mix(in srgb, var(--rise) 14%, transparent)); width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 50%; font-size: 11px; }
.lov-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lov-demo { margin-top: 14px; }
.lov-demo-link { color: var(--accent-strong); font-weight: 600; }

/* ── Mobile : composants ajoutés récemment ── */
@media (max-width: 560px) {
  .demo-cta { width: 100%; box-sizing: border-box; }
  .home-or { max-width: 100%; }
  .adi { flex-direction: column; align-items: stretch; gap: 12px; }
  .adi-stats { gap: 16px 20px; }
  .adi-read { padding-left: 0; border-left: 0; }
  .adi-dist { min-width: 0; }
  .adv-head { gap: 8px; }
  .adv-head .adv-scan { margin-left: 0; flex: 1 1 100%; }
  .demo-banner { flex-direction: column; align-items: flex-start; }
  .demo-banner-actions { width: 100%; }
  .scatter-head { flex-direction: column; gap: 6px; }
  .scatter-toggle { align-self: flex-start; }
  .lov-card, .lov-actions { flex-wrap: wrap; }
  .mkt-scan-head { gap: 4px; }
}

/* ── Suivi d'annonceurs + détection nouvelles pubs ── */
.adv-follow { font-size: 12.5px; padding: 6px 12px; }
.adv-follow.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 700; }
.adnew-banner { background: color-mix(in srgb, var(--rise) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rise) 35%, var(--line));
  border-radius: var(--r-md); padding: 9px 14px; margin-bottom: 12px; font-size: 13.5px; }
.adnew-banner b { color: var(--rise); }
.ad-new-badge { position: absolute; top: 7px; left: 7px; font-size: 10.5px; font-weight: 800; z-index: 2;
  padding: 2px 8px; border-radius: 5px; background: var(--rise); color: #fff; box-shadow: 0 2px 6px -1px color-mix(in srgb, var(--rise) 60%, transparent); }
.ad-new { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rise) 55%, transparent), var(--shadow-sm); }
.fav-adv-card { margin-bottom: 14px; }
.fav-adv-head { margin-bottom: 10px; }
.fav-adv-list { display: flex; flex-direction: column; gap: 6px; }
.fav-adv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px; cursor: pointer; transition: .14s var(--ease); }
.fav-adv-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.fav-adv-name { font-weight: 700; font-size: 14px; }

/* ── Recherches sauvegardées (récentes + épinglées) ── */
.saved-searches { margin: 18px 0 6px; }
.saved-searches .label { margin: 14px 0 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.saved-list { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-chip { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); transition: .14s var(--ease); }
.saved-chip:hover { border-color: var(--accent); }
.saved-chip.pinned { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.saved-go, .saved-adgo { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 4px 6px 13px; cursor: pointer; white-space: nowrap; }
.saved-n { color: var(--muted); font-weight: 500; font-size: 11.5px; margin-left: 2px; }
.saved-plat { font-size: 9px; font-weight: 800; background: #0a66c2; color: #fff; padding: 1px 4px; border-radius: 3px; vertical-align: middle; }
.saved-pin { border: 0; background: transparent; color: var(--faint); cursor: pointer; padding: 6px 11px 6px 5px; font-size: 13px; transition: .12s; }
.saved-pin:hover { color: var(--accent); }
.saved-chip.pinned .saved-pin { color: var(--accent-strong); }
.saved-searches-card .label { margin-bottom: 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.saved-searches-card .saved-list + .saved-list { margin-top: 8px; }

/* ── Analyse « Combo gagnant » ── */
.adv-combo { font-size: 12.5px; padding: 6px 12px; background: linear-gradient(135deg, #f59e0b, #ea580c); }
.combo { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px 18px; margin: 4px 0 14px; box-shadow: var(--shadow-sm); }
.combo-hero { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.combo-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-strong); margin-bottom: 8px; }
.combo-statement { font-size: 16px; line-height: 1.5; }
.combo-statement b { color: var(--accent-strong); }
.combo-proof { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.combo-proof b { color: var(--rise); font-weight: 700; }
.combo-grids { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 16px; }
.combo-block h5 { font-size: 12px; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.combo-bar { display: grid; grid-template-columns: 1fr 90px 52px; align-items: center; gap: 10px; padding: 4px 0; }
.combo-bar.hot .cb-l, .combo-bar.hot .cb-v { color: var(--accent-strong); font-weight: 700; }
.cb-l { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-n { color: var(--faint); font-size: 11px; }
.cb-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.cb-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 999px; }
.combo-bar.hot .cb-fill { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.cb-v { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.combo-cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.combo-cmp th { text-align: right; font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 10px; }
.combo-cmp th:first-child { text-align: left; }
.combo-cmp td { padding: 6px 10px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.combo-cmp td:first-child { text-align: left; color: var(--muted); }
.cmp-win { color: var(--rise); font-weight: 700; }
.cmp-rest { color: var(--faint); }
.combo-foot { margin-top: 12px; }
@media (max-width: 640px) { .combo-grids { grid-template-columns: 1fr; gap: 16px; } .combo-bar { grid-template-columns: 1fr 60px 44px; } }

/* ── Comparateur d'annonceurs ── */
.cmp-tray { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 14px; margin-top: 16px; box-shadow: var(--shadow-md); }
.cmp-tray-l { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cmp-tray-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 12.5px; font-weight: 600; }
.cmp-tray-x { border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 12px; padding: 0 3px; }
.cmp-tray-x:hover { color: var(--fall); }
.cmp-tray-go { margin-left: auto; font-size: 13px; padding: 7px 14px; }
.cmp-tray-go:disabled { opacity: .5; cursor: default; }
#adCmp.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 700; }
.advcmp-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.advcmp-t th { text-align: center; padding: 8px 12px; font-size: 13px; border-bottom: 2px solid var(--ink); }
.advcmp-t th:first-child { text-align: left; }
.advcmp-t td { padding: 8px 12px; text-align: center; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.advcmp-t .cmp-metric { text-align: left; color: var(--muted); font-size: 12.5px; }
.advcmp-t .cmp-best { background: var(--good-soft, color-mix(in srgb, var(--rise) 12%, transparent)); color: var(--rise); font-weight: 800; border-radius: 5px; }

/* ── Toggle comparaison sur carte produit ── */
.shop-cmp-toggle { position: absolute; top: 7px; left: 7px; z-index: 2; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(4px);
  cursor: pointer; font-size: 14px; display: grid; place-items: center; transition: .14s var(--ease); }
.shop-cmp-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.shop-cmp-toggle.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Bouton combo produit (aligné avec la barre de tri) */
.shop-combo { margin-left: 8px; font-size: 12.5px; padding: 6px 12px; background: linear-gradient(135deg, #f59e0b, #ea580c); }

/* ── Bouton partager (rapport public) ── */
.combo-eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.combo-share { font-size: 12px; padding: 5px 12px; flex: none; }

/* ── Enrichissement créateur + demande Reddit ── */
.cr-verified { color: var(--standalone); font-size: 14px; }
.cr-exact { color: var(--accent-strong); font-weight: 700; }
.reddit-card h4 { margin-bottom: 4px; }
.reddit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); border-top: 1px solid var(--line); transition: .12s var(--ease); }
.reddit-row:first-of-type { border-top: 0; }
.reddit-row:hover { background: var(--surface-2); }
.reddit-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reddit-sub { font-size: 11px; font-weight: 700; color: #ff4500; }
.reddit-t { font-size: 13.5px; line-height: 1.35; }
.reddit-metrics { display: flex; gap: 12px; flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Vue Pinterest ── */
.pin-grid { columns: 4 240px; column-gap: 14px; margin-top: 8px; }
.pin-card { break-inside: avoid; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: pointer; transition: .15s var(--ease); box-shadow: var(--shadow-sm); }
.pin-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pin-thumb { position: relative; background: var(--surface-2); }
.pin-thumb img { display: block; width: 100%; height: auto; }
.pin-noimg { display: grid; place-items: center; height: 180px; color: var(--faint); font-size: 13px; }
.pin-saves { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pin-body { padding: 10px 12px 12px; }
.pin-cap { font-size: 13px; line-height: 1.4; }
.pin-meta { margin-top: 5px; }
@media (max-width: 640px) { .pin-grid { columns: 2 150px; } }
/* Pages réseau dédiées : modules par plateforme */
.net-move .rx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.net-signal { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.no-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.no-h h4 { margin: 0; }
.no-topvids { grid-template-columns: repeat(6, 1fr); }
.no-snd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.no-snd:first-of-type { border-top: none; }
.no-snd-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-snd-m { flex: none; font-size: 12.5px; }
.no-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.no-thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: block; }
.no-thumb img { width: 100%; height: 100%; object-fit: cover; }
.net-produce-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; padding: 14px 18px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.net-produce-bar .np-t { font-weight: 700; font-size: 14.5px; }
.ap-more-link { margin-top: 12px; }
.ap-more-link a { color: var(--muted); font-size: 13px; text-decoration: none; }
.ap-more-link a:hover { color: var(--accent); }
@media (max-width: 900px) { .no-topvids { grid-template-columns: repeat(3, 1fr); } }
/* Vue d'ensemble · niveau 2 : 4 signaux scannables */
.sig-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.sig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; box-shadow: var(--shadow-sm); }
.sig-l { font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sig-v { font-weight: 800; font-size: 21px; letter-spacing: -.01em; margin-top: 3px; }
.sig-v.a { color: var(--accent); }
.sig-v.g { color: var(--rise, #16a34a); }
.sig-v.w { color: #C0392B; }
.sig-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* Vue d'ensemble · niveau 3 : aperçus inline (tops sur la page) */
.tops-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin: 14px 0; }
.tops-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; box-shadow: var(--shadow-sm); }
.tops-h { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.tops-all { font-size: 11.5px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: none; }
.tops-vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.it-vid { text-decoration: none; color: var(--text); }
.it-th { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.it-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-score { position: absolute; left: 5px; bottom: 5px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; }
.it-cap { font-size: 12px; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-sub { font-size: 11px; color: var(--muted); }
.tops-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.tops-line:first-of-type { border-top: none; }
.tops-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tops-metric { font-family: var(--mono, ui-monospace, monospace); font-weight: 700; color: var(--accent); flex: none; }
/* Vue d'ensemble · repli de la profondeur */
.ap-more { margin-top: 16px; border-top: 1px solid var(--line); }
.ap-more > summary { list-style: none; cursor: pointer; padding: 16px 2px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.ap-more > summary::-webkit-details-marker { display: none; }
.ap-more > summary::before { content: "▸"; color: var(--accent); font-size: 12px; transition: transform .15s ease; }
.ap-more[open] > summary::before { transform: rotate(90deg); }
.ap-more-hint { font-weight: 400; font-size: 12.5px; color: var(--faint); }
.ap-more-body { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
@media (max-width: 820px) { .sig-row { grid-template-columns: repeat(2, 1fr); } .tops-row { grid-template-columns: 1fr; } }
/* Page Agents IA : galerie de cartes actionnables */
.agents-ctx { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 14px; margin: 4px 0 16px; }
.agents-ctx .ctx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rise, #16a34a); flex: none; }
.agents-ctx.warn { background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 30%, var(--line)); }
.agents-ctx.warn .ctx-dot { background: #f59e0b; }
.agents-ctx a { color: var(--accent); font-weight: 600; text-decoration: none; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.agent-card { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; cursor: pointer; transition: .15s var(--ease); box-shadow: var(--shadow-sm); font: inherit; color: var(--text); }
.agent-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.agent-card.hero { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.agent-card.locked { opacity: .6; }
.agent-card.locked:hover { transform: none; border-color: var(--line); }
.agent-ic { font-size: 24px; }
.agent-n { font-weight: 700; font-size: 15.5px; }
.agent-star { color: var(--accent); font-size: 12px; }
.agent-d { font-size: 13px; color: var(--muted); line-height: 1.45; }
.agent-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.agent-uses { font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); padding: 3px 7px; border-radius: 5px; }
.agent-run { font-size: 12.5px; font-weight: 700; color: var(--accent); }
/* CTA « Produire » dans l'en-tête d'une vue réseau (bridge veille → création) */
.net-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reddit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reddit-head .net-produce { margin-left: auto; }
.net-produce { flex: none; white-space: nowrap; }
/* LinkedIn · posts organiques viraux (cartes texte, triées par réactions) */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 8px; }
.lp-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; cursor: pointer; transition: .15s var(--ease); box-shadow: var(--shadow-sm); }
.lp-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-head { display: flex; align-items: center; gap: 9px; }
.lp-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.lp-av-ph { display: grid; place-items: center; background: #0a66c2; color: #fff; font-weight: 800; font-size: 13px; }
.lp-author { font-weight: 650; font-size: 14px; }
.lp-text { font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.lp-thumb img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.lp-metrics { display: flex; gap: 14px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
@media (max-width: 640px) { .lp-grid { grid-template-columns: 1fr; } }

/* ── Vue Demande (Reddit) : head + subreddits ── */
.reddit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reddit-subs { display: flex; gap: 6px; flex-wrap: wrap; }
.reddit-sub-chip { font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted); }
.reddit-sub-chip b { color: #ff4500; }

/* ── Arbitrage Reddit dans les espaces blancs ── */
.ws-reddit-arb:not(:empty) { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ws-arb-h { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.ws-arb-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; text-decoration: none; color: var(--text); border-radius: var(--r-sm); }
.ws-arb-row:hover { background: var(--surface-2); }
.ws-arb-t { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-arb-m { flex: none; }
.ws-arb-all { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--accent-strong); font-weight: 600; text-decoration: none; }

/* Détail post LinkedIn : embed officiel dans le side modal */
.lp-embed { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

/* Panneau de décorticage (LinkedIn / Reddit / Pinterest) : KPIs → actions → contenu */
.lpd { display: flex; flex-direction: column; gap: 14px; }
.lpd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.lpd-kpi { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); }
.lpd-kpi b { display: block; font-size: 17px; letter-spacing: -.01em; }
.lpd-kpi span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
.lpd-kpi small { display: block; font-size: 11px; color: var(--accent); margin-top: 2px; }
.lpd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pin-big { max-width: 100%; max-height: 60vh; border-radius: var(--r-md); border: 1px solid var(--line); align-self: center; }

/* Compteurs de quotas dans la zone compte (chaque pool visible → les 402 sont compréhensibles) */
.acct-quotas { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; }
.quota-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); }
.quota-row b { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.quota-track { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.quota-fill { height: 100%; border-radius: 3px; background: var(--accent); }
.quota-full .quota-fill { background: var(--viral); }
.quota-full b { color: var(--viral); }
.up-trial { font-size: 11px; font-weight: 700; color: var(--rise); margin-left: 6px; }
.up-contact { text-decoration: none; display: block; }

/* Intelligence pub : segmenté Concurrent/Marché + fiche concurrents + agrégat annonceurs marché */
.ad-modes { display: flex; gap: 8px; margin: 10px 0 2px; }
.ad-mode { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.ad-mode.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ad-mode:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.rival-add { display: flex; gap: 8px; margin: 10px 0 4px; }
.rival-add .tag-input { flex: 1; }
.rival-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--surface); }
.rival-card-l { display: flex; flex-direction: column; gap: 2px; }
.rival-card-r { display: flex; gap: 8px; }
.mkta-list { display: flex; flex-direction: column; }
.mkta-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mkta-row:last-child { border-bottom: none; }
.mkta-row:hover { background: var(--surface-2, rgba(0,0,0,.02)); }
.mkta-logo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mkta-name { font-weight: 600; font-size: 13.5px; }
.mkta-meta { margin-left: auto; }

/* ── Écran d'accueil de l'intelligence pub : héro centré qui vend, panneaux larges ── */
.ads-home { max-width: 1020px; margin: 0 auto; padding-top: 26px; }
.ads-hero { text-align: center; padding: 26px 20px 30px; }
.ads-hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.ads-hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.ads-hero-sub { color: var(--muted); font-size: 15.5px; max-width: 56ch; margin: 0 auto 22px; line-height: 1.55; }
.ads-center { justify-content: center; }
.ads-hero .ad-pls { display: flex; justify-content: center; margin-bottom: 10px; }
.ads-hero .ad-modes { justify-content: center; margin: 6px 0 14px; }
.ads-hero .ad-mode { padding: 9px 22px; font-size: 14px; }
.ads-hero-search { max-width: 640px; margin: 0 auto; }
.ads-hero-search .big-search-input { height: 52px; font-size: 15.5px; }
.ads-hero .mkt-bar { justify-content: center; margin-top: 12px; }
.ads-hero .search-guide { justify-content: center; margin-top: 14px; }
.ads-panel { max-width: 1020px; margin: 14px auto 0; }
.rival-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 12px; }
.rival-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: left; transition: .15s var(--ease); box-shadow: var(--shadow-sm); }
.rival-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rival-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rival-tile-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rival-avatar { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--accent), #d9480f); }
.rival-tile-go { margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.rival-empty { margin-top: 10px; }
.rival-add { max-width: 640px; }
@media (max-width: 720px) { .rival-grid { grid-template-columns: 1fr; } .rival-tile-go { display: none; } }
