/* Sources & veille — board */

/* ═══ ONGLETS BOARD / LATEST ══════════════════════════════════════════════ */
.view-tabs {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px 0;
  gap: 12px;
}
.view-tabs-inner { display: flex; gap: 4px; }
.view-tabs-actions { display: flex; align-items: center; gap: 6px; }

.view-tab {
  all: unset; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--app-fg-3);
  transition: background .12s, color .12s;
}
.view-tab:hover { background: var(--app-surface-2); color: var(--app-fg); }
.view-tab.active {
  background: var(--app-surface-2);
  color: var(--app-fg);
  font-weight: 600;
}
.view-tab-hot {
  background: rgba(220,38,38,.1); color: #DC2626;
  border-radius: 10px; padding: 1px 6px;
  font-size: 11px; font-weight: 700;
}
.view-tab-count {
  background: var(--app-surface); border: 1px solid var(--app-line);
  border-radius: 10px; padding: 1px 6px;
  font-size: 11px; color: var(--app-fg-3);
}

/* ═══ LATEST LIST ══════════════════════════════════════════════════════════ */
.latest-wrapper {
  padding: 0 24px 24px;
  display: flex; flex-direction: column;
}
.latest-header {
  padding: 10px 2px 8px;
  font-size: 11.5px; color: var(--app-fg-4);
}
.latest-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--app-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--app-surface);
}
.latest-row {
  display: grid;
  grid-template-columns: 160px 1fr 76px;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--app-line);
  text-decoration: none;
  color: inherit;
  transition: background .1s;
}
.latest-row:last-child { border-bottom: none; }
.latest-row:hover { background: var(--app-surface-2); }
.latest-row-left {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.latest-time {
  font-size: 11px; color: var(--app-fg-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-source {
  font-size: 11.5px; font-weight: 600; color: var(--app-fg-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.latest-row-title {
  font-size: 13px; color: var(--app-fg);
  line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.latest-row-right { display: flex; justify-content: flex-end; }
.latest-row-link {
  font-size: 13px; color: var(--app-fg);
  line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-decoration: none;
}
.latest-row-link:hover { text-decoration: underline; text-decoration-color: var(--app-fg-3); }
.latest-forge-btn {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 8px; border-radius: 7px;
  background: var(--app-accent); color: #fff;
  border: none; cursor: pointer;
  opacity: 0; transition: opacity .15s, background .12s;
  white-space: nowrap;
}
.latest-row:hover .latest-forge-btn { opacity: 1; }
.latest-forge-btn:hover { filter: brightness(1.1); }
@media (hover: none) {
  .latest-forge-btn { opacity: 1; }
}
.latest-score {
  font-size: 11.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sources-page {
  padding: 0;
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--topbar-h));
}

/* ═══ ZONE 1 — BREAKING ════════════════════════════════════════════════ */
.breaking-bar {
  position: relative;
  margin: 14px 24px 0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(95deg, rgba(209,69,69,0.08) 0%, rgba(225,110,80,0.05) 40%, rgba(209,69,69,0.07) 100%),
    #FFFFFF;
  border: 1px solid rgba(209,69,69,0.28);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(209,69,69,0.06),
    0 8px 28px -10px rgba(209,69,69,0.2);
}
.breaking-pulse-layer {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 80px at 50% 100%, rgba(209,69,69,0.14), transparent 60%);
  animation: breakingPulse 2.4s ease-in-out infinite;
}
@keyframes breakingPulse {
  0%,100% { opacity: 0.5; }
  50%     { opacity: 1; }
}
.breaking-main {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 14px 18px;
}
@media (max-width: 1200px) {
  .breaking-main {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 12px 14px;
  }
  .breaking-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: 2px; }
  .breaking-timer { min-width: 180px; }
}
@media (max-width: 900px) {
  .breaking-main {
    grid-template-columns: auto 1fr;
  }
  .breaking-timer { grid-column: 1 / -1; min-width: 0; }
}
.breaking-badge {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  background: #D14545;
  border: 1px solid #B63838;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFFFFF;
}
.breaking-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
  animation: breakingDot 1.2s ease-in-out infinite;
}
@keyframes breakingDot {
  0%,100% { opacity: 0.5; transform: scale(0.9); }
  50%     { opacity: 1; transform: scale(1.2); }
}
.breaking-content { min-width: 0; flex: 1; }
.breaking-content > * { min-width: 0; }
.breaking-title {
  font-size: 15px;
  font-weight: 600;
  color: #2A1014;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: normal;
  overflow-wrap: break-word;
}
.breaking-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(42,16,20,0.7);
  flex-wrap: wrap;
}
.breaking-sep { color: rgba(42,16,20,0.3); }
.breaking-match { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.match-chip {
  padding: 2px 7px;
  background: rgba(209,69,69,0.08);
  border: 1px solid rgba(209,69,69,0.25);
  border-radius: 3px;
  font-size: 11px;
  color: #8B2A2A;
}
.breaking-timer {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 220px;
}
.timer-head {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(42,16,20,0.75);
}
.timer-head b { color: #2A1014; font-weight: 600; }
.timer-bar {
  position: relative;
  height: 4px;
  background: rgba(209,69,69,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.timer-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #E8AE3D, #D14545);
  border-radius: 2px;
}
.timer-markers {
  display: flex; justify-content: space-between;
  font-size: 9.5px; color: rgba(42,16,20,0.45);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.timer-footer {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  margin-top: 1px;
}
.timer-remaining { color: #8B2A2A; font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-advice { color: rgba(42,16,20,0.5); }
.breaking-actions { display: flex; gap: 6px; }

/* ═══ LAYOUT ══════════════════════════════════════════════════════════ */
.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 400px;
  gap: 0;
  flex: 1;
  padding: 18px 24px 0;
  min-height: 0;
}
@media (max-width: 1200px) {
  .sources-layout {
    grid-template-columns: 1fr;
  }
  .sources-feed {
    padding-right: 0;
    border-right: none;
  }
  .sources-action {
    padding-left: 0;
    padding-top: 18px;
    margin-top: 14px;
    border-top: 1px solid var(--app-line);
  }
}
.sources-page { overflow-x: hidden; }

/* ═══ ZONE 2 — FEED ═══════════════════════════════════════════════════ */
.sources-feed {
  display: flex; flex-direction: column;
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid var(--app-line);
}
.feed-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 14px;
  gap: 16px;
}
.feed-title-main {
  font-size: 16px; font-weight: 600;
  margin: 0 0 3px;
  letter-spacing: -0.015em;
}
.feed-sub {
  font-size: 12px;
  color: var(--app-fg-3);
  margin: 0;
  max-width: 360px;
}
.feed-filters {
  display: flex; gap: 4px;
  padding: 3px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}
.feed-filter {
  all: unset; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--app-fg-3);
  border-radius: 5px;
  transition: all .15s ease;
}
.feed-filter:hover { color: var(--app-fg); }
.feed-filter.active { background: var(--app-surface-3); color: var(--app-fg); font-weight: 500; }
.feed-filter-icon {
  all: unset; cursor: pointer;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--app-fg-3);
  border-left: 1px solid var(--app-line);
  margin-left: 2px; padding-left: 6px;
}
.feed-filter-icon:hover { color: var(--app-fg); }
.count-inline {
  font-size: 10.5px;
  color: var(--app-fg-4);
  padding: 0 5px;
  background: var(--app-surface-2);
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.feed-filter.active .count-inline { background: var(--app-bg); color: var(--app-fg-2); }

.feed-list {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
}

.news-row {
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 14px 12px 10px;
  border-radius: 8px;
  transition: background .12s ease;
}
.news-row:hover { background: var(--app-surface); }
.news-row.active { background: var(--app-surface-2); }
.news-row-dismiss {
  all: unset;
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1;
  color: var(--app-fg-4);
  border-radius: 4px;
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s, background .15s, color .15s;
}
.news-row:hover .news-row-dismiss { opacity: 1; }
.news-row-dismiss:hover { background: rgba(197,48,48,.08); color: #C53030; }
.news-row-indicator {
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--chromatic);
  border-radius: 2px;
}
.news-row-time {
  display: flex; align-items: center; gap: 6px;
  padding-top: 3px;
  font-size: 11.5px;
  color: var(--app-fg-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--app-bg);
}
.dot-hot   { background: #FF6B4A; box-shadow: 0 0 0 2px var(--app-bg), 0 0 6px rgba(255,107,74,0.6); animation: heatPulse 2s ease-in-out infinite; }
.dot-warm  { background: #FFB061; box-shadow: 0 0 0 2px var(--app-bg), 0 0 4px rgba(255,176,97,0.4); }
.dot-cool  { background: #4A6AFF; }
@keyframes heatPulse {
  0%,100% { opacity: 0.7; }
  50%     { opacity: 1; }
}
.news-row-body { min-width: 0; }
.news-row-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--app-fg-4);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.news-source { color: var(--app-fg-2); font-weight: 500; }
.news-sep { opacity: 0.4; }
.news-cat { color: var(--app-fg-3); }
.match-badge {
  padding: 2px 8px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line-2);
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--app-fg-3);
  margin-left: auto;
  white-space: nowrap;
}
.match-badge--strong {
  background: rgba(79,91,213,0.08);
  border-color: rgba(79,91,213,0.22);
  color: #3D48B8;
  font-weight: 600;
}
.match-badge--weak {
  background: var(--app-surface-2);
  color: var(--app-fg-4);
}
.news-row-title {
  font-size: 13.5px;
  color: var(--app-fg);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* ═══ ZONE 3 — ACTION PANEL ══════════════════════════════════════════ */
.sources-action {
  padding-left: 20px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.action-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.action-panel::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 300px 180px at 100% 0%, rgba(110,123,255,0.08), transparent 60%);
  pointer-events: none;
}
.action-panel > * { position: relative; }

.action-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.action-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--app-fg-3);
}
.action-match {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(79,91,213,0.08);
  border: 1px solid rgba(79,91,213,0.22);
  color: #3D48B8;
  border-radius: 4px;
  font-weight: 600;
}

.action-why {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--app-fg-2);
  line-height: 1.45;
  margin-bottom: 14px;
}
.action-why svg { color: var(--app-accent-3); margin-top: 2px; flex-shrink: 0; }

.action-recs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.action-rec {
  padding: 10px 12px;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}
.action-rec-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--app-fg-4);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.action-rec-value {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px;
  color: var(--app-fg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.action-rec-value svg { color: var(--app-fg-3); }

.action-caption-block {
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.action-caption-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--app-line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--app-fg-3);
  font-variant: all-small-caps;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.action-caption-actions { display: flex; gap: 4px; }
.action-mini-btn {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--app-fg-3);
  border-radius: 4px;
  font-variant: normal;
  letter-spacing: 0;
  font-weight: 500;
}
.action-mini-btn:hover { color: var(--app-fg); background: var(--app-surface-2); }
.action-caption-body {
  padding: 14px 14px 12px;
  font-size: 13.5px;
  color: var(--app-fg);
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.action-caption-foot {
  padding: 0 12px 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px;
  color: var(--app-fg-4);
}
.action-cta { display: flex; gap: 8px; }

/* ═══ RECAP PANEL ════════════════════════════════════════════════════ */
.recap-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  position: sticky;
  top: 16px;
}

.recap-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.recap-source {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--app-fg-4);
  text-transform: uppercase;
}
.recap-when {
  font-size: 11px;
  color: var(--app-fg-4);
  flex: 1;
}
.recap-score {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.recap-titre {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--app-fg);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.recap-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--app-fg-2);
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
  border-top: 1px solid var(--app-line);
  border-bottom: 1px solid var(--app-line);
  padding: 10px 0;
}
.recap-body::-webkit-scrollbar { width: 3px; }
.recap-body::-webkit-scrollbar-thumb { background: var(--app-line-2, var(--app-line)); border-radius: 2px; }

.recap-analysis {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}
.recap-analysis-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--app-fg-2);
  line-height: 1.45;
}
.recap-analysis-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-fg-4);
  min-width: 56px;
  flex-shrink: 0;
  padding-top: 1px;
}

.recap-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -4px;
}
.recap-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--app-fg-4);
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 5px;
  padding: 3px 8px;
}
.recap-meta-link {
  text-decoration: none;
  transition: color 120ms, border-color 120ms;
}
.recap-meta-link:hover { color: var(--app-fg-2); border-color: var(--app-fg-4); }
/* ══════════════════════════════════════════════════════════════════════ */

.action-panel--weak {
  background: var(--app-surface);
  border: 1px dashed var(--app-line-2);
  padding: 32px 22px;
  text-align: center;
  border-radius: var(--radius-lg);
}
.action-weak-icon {
  font-size: 28px;
  color: var(--app-fg-4);
  margin-bottom: 10px;
}
.action-weak-title {
  font-size: 14px; font-weight: 600;
  color: var(--app-fg-2);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.action-weak-desc {
  font-size: 12.5px;
  color: var(--app-fg-4);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

.action-empty {
  padding: 60px;
  text-align: center;
  color: var(--app-fg-4);
  font-size: 13px;
}

/* ═══ ZONE 4 — HEAT BAR ══════════════════════════════════════════════ */
.heat-bar {
  margin: 20px 24px 24px;
  padding: 16px 18px 18px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15,21,40,0.03);
}
.heat-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.heat-title-row { display: flex; align-items: center; gap: 8px; }
.heat-title-row svg { color: #FFB061; }
.heat-title {
  font-size: 13px; font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.heat-meta {
  display: flex; gap: 8px;
  font-size: 11px;
  color: var(--app-fg-4);
}
.heat-sep { opacity: 0.4; }
.heat-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
}
.heat-cell {
  padding: 10px 11px;
  border-radius: 8px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
  transition: border-color .15s ease;
  cursor: pointer;
}
.heat-cell:hover { border-color: var(--app-line-3); }
.heat-cell--l3 {
  background: linear-gradient(180deg, rgba(209,69,69,0.10), rgba(209,69,69,0.03));
  border-color: rgba(209,69,69,0.30);
}
.heat-cell--l2 {
  background: linear-gradient(180deg, rgba(232,174,61,0.10), rgba(232,174,61,0.03));
  border-color: rgba(232,174,61,0.28);
}
.heat-cell-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 4px;
  min-width: 0;
}
.heat-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--app-fg);
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.heat-flames {
  font-size: 11px;
  flex-shrink: 0;
}
.heat-cold { color: var(--app-fg-4); font-size: 12px; }
.heat-cell-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.heat-spark { opacity: 0.85; flex: 1; }
.heat-delta {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--app-fg-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.heat-delta--l3 { color: #FF8A6E; }
.heat-delta--l2 { color: #FFB061; }

@media (max-width: 1400px) {
  .heat-grid { grid-template-columns: repeat(5, 1fr); }
  .heat-grid > *:nth-child(n+6) { display: none; }
  .heat-flames { font-size: 9px; letter-spacing: -2px; }
  .heat-cell { padding: 10px 9px; }
}
