/* L'attribut hidden l'emporte toujours : sinon un display (grid, flex…) posé sur la classe le rendait inopérant
   (listes « Voir les articles », panneau « Questions »…). */
[hidden] { display: none !important; }

/* Couleurs des marques sœurs (The Black Room, La Voix des IA) : une seule définition pour les encarts et le header. */
:root {
  --tbr-red: #e8331f; --tbr-red-hover: #ff4a33; --tbr-red-text: #ff5a47;
  --lvia-red: #e11d1d; --lvia-red-hover: #ff2a2a; --lvia-red-text: #ff5a5a;
}

/* ============================================================
   GNEWSALYZER V3 — calque propre à la V3, posé sur cockpit-pro.css
   (mêmes tokens : encres, indigo, chaleur du signal).
   ============================================================ */

/* Les titres de base.css (legacy TBR) sont en capitales espacées : illisible pour
   des titres d'articles. La DA « encre éditoriale » les veut en casse normale. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: normal;
}

/* ---------- Rangée 3 : pages de la section active ---------- */
.topnav-sub {
  border-top: 1px solid var(--line);
  background: rgba(14, 16, 22, 0.6);
}
.subnav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-link {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
a.subnav-link:hover { color: var(--fg); background: var(--ink-3); }
.subnav-link.active {
  color: var(--fg-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.35);
}
.topnav-top > .subnav-link { font-size: 13px; }

/* Pages / sections pas encore portées */
.is-soon {
  color: var(--fg-faint) !important;
  cursor: default;
}
.nav-link.is-soon:hover { background: none; }
.subnav-link.is-soon::after,
.nav-link.is-soon::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--fg-faint);
  vertical-align: middle;
  position: static;
  box-shadow: none;
}

/* ---------- En-tête de page ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}
.page-title {
  font-size: clamp(26px, 2.2vw + 14px, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg-strong);
  margin: 0;
}
.page-deck {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--fg-muted);
  font-size: 14.5px;
}
.page-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
}

/* ---------- États ---------- */
.state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
  color: var(--fg-muted);
  font-size: 14px;
}
.state--error { border-color: rgba(248, 113, 113, 0.4); color: var(--down); }
.skeleton {
  border-radius: var(--r-xl);
  background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2));
  background-size: 200% 100%;
  animation: skel 1.4s var(--ease) infinite;
}
@keyframes skel { to { background-position: -200% 0; } }
.skeleton--block { height: 320px; }
.skeleton--row { height: 64px; margin-bottom: 8px; }

/* ---------- Santé des données ---------- */
.health-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.health-stat {
  padding: 16px 18px;
  border-radius: var(--r-xl);
  background: var(--ink-1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.health-stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.health-stat__value {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--fg-strong);
}
.health-stat--alert .health-stat__value { color: var(--hot); }

.health-list {
  display: grid;
  gap: 8px;
}
.health-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1.4fr) minmax(0, 1fr) 120px 110px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--ink-1);
  border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.15s var(--ease-out);
}
.health-row:hover { border-color: var(--line-3); transform: translateY(-1px); }
.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
}
.health-row.is-stale .health-dot { background: var(--hot); box-shadow: 0 0 10px rgba(255, 106, 77, 0.6); }
.health-name { font-weight: 600; color: var(--fg-strong); }
.health-table { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); }
.health-rows, .health-lag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 13px;
}
.health-lag { color: var(--up); }
.health-row.is-stale .health-lag { color: var(--hot); }
.health-latest { font-size: 12.5px; color: var(--fg-muted); }

@media (max-width: 760px) {
  .health-summary { grid-template-columns: 1fr; }
  .health-row { grid-template-columns: 12px 1fr auto; }
  .health-latest, .health-rows { display: none; }
  .cp-container { padding: 20px 16px 60px; }
  .subnav, .topnav-top, .topnav-links .nav-links { padding: 0 16px; }
  .user-meta { display: none; }
}

/* ---------- Modale de connexion ---------- */
html.is-locked, html.is-locked body { overflow: hidden; }
html.is-locked #page-root, html.is-locked #shell-mount { visibility: hidden; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 70%),
    rgba(10, 11, 15, 0.94);
  backdrop-filter: blur(12px);
}
.gate-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: var(--r-2xl);
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop);
  animation: gate-in 0.35s var(--ease-out);
}
@keyframes gate-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.gate-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.gate-brand .brand-logo { height: 34px; width: auto; }
.gate-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg-strong); }
.gate-deck { margin: 6px 0 22px; color: var(--fg-muted); font-size: 14px; }
.gate-form { display: grid; gap: 14px; }
.gate-field { display: grid; gap: 6px; font-size: 12px; color: var(--fg-muted); font-weight: 600; }
.gate-field input {
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.gate-field input:focus { outline: none; border-color: var(--brand-2); background: var(--ink-3); }
.gate-error { margin: 0; color: var(--down); font-size: 13px; }
.gate-submit {
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--brand-grad);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.gate-submit:hover { filter: brightness(1.1); }
.gate-submit:active { transform: translateY(1px); }
.gate-submit:disabled { opacity: 0.6; cursor: wait; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Pages portées de News Room ---------- */
/* .comp-page (padding vertical seul) écrase les marges latérales de .cp-container. */
.cp-container.comp-page { padding: 28px 28px 80px; }
@media (max-width: 760px) {
  .cp-container.comp-page { padding: 20px 16px 60px; }
}
/* Cockpit : le rail collant passe sous la topnav V3 (plus haute) et, en une colonne,
   recouvrait la liste. Collant seulement en deux colonnes, sous la navigation. */
.rail { top: 118px; }
@media (max-width: 1120px) {
  .rail { position: static; }
}

/* ---------- Encart The Black Room (V2 : includes/tbr-promo.php) ---------- */
.tbr-promo {
  --tbr-red: #f50000;
  --tbr-red-2: #ff4d4d;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 20px;
  padding: 1.3rem 1.5rem;
  background:
    radial-gradient(560px 220px at 0% 0%, color-mix(in srgb, var(--tbr-red) 16%, transparent), transparent 62%),
    var(--ink-3);
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--tbr-red);
  border-radius: var(--r-lg, 14px);
  box-shadow: var(--shadow-card);
}
.tbr-promo-wrap { padding-top: 22px; padding-bottom: 0; }
.tbr-promo-wrap .tbr-promo { margin: 0; }
.tbr-promo img { flex: 0 0 auto; width: 116px; height: auto; border-radius: 10px; }
.tbr-promo-body { flex: 1; min-width: 0; }
.tbr-promo-kicker {
  margin: 0 0 .3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tbr-red-2);
}
.tbr-promo-title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--fg-strong); }
.tbr-promo-text { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--fg-muted); }
.tbr-promo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .7rem 1.25rem;
  border-radius: 10px;
  background: var(--tbr-red);
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.tbr-promo-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.tbr-promo-btn:focus-visible { outline: 2px solid var(--fg-strong); outline-offset: 2px; }
.tbr-promo-btn-main { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.tbr-promo-btn-sub { font-size: 0.75rem; line-height: 1.25; opacity: .82; }
@media (max-width: 860px) {
  .tbr-promo { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .tbr-promo-btn { width: 100%; }
  .tbr-promo img { width: 92px; }
}

/* ---------- Pied de page de l'application (V2 : footer.php) ---------- */
.app-foot { margin-top: 56px; border-top: 1px solid var(--line-2); background: var(--ink-1); color: var(--fg-muted); font-size: 13.5px; }
.app-foot-inner { max-width: 1400px; margin: 0 auto; padding: 36px 24px 26px; }
.app-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.app-foot-brand { line-height: 0; }
.app-foot-brand .brand-logo { height: 24px; width: auto; }
.app-foot-brand b { color: var(--hot); font-weight: 800; }
.app-foot-tag { margin: 8px 0 12px; }
.app-foot-social { display: flex; gap: 10px; }
.app-foot-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--fg); transition: border-color .15s, color .15s; }
.app-foot-social a:hover, .app-foot-social a:focus-visible { border-color: var(--fg-subtle); color: var(--fg-strong); }
.app-foot-social svg { width: 15px; height: 15px; fill: currentColor; }
.app-foot h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-subtle); }
.app-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.app-foot a { color: var(--fg-muted); text-decoration: none; }
.app-foot ul a:hover, .app-foot ul a:focus-visible { color: var(--fg-strong); }
.app-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-subtle); }
.app-foot-bottom img { height: 40px; width: auto; opacity: .9; }

/* ---------- Discover · Sujets du jour ---------- */
.daily-scope { margin: 4px 0 14px; font-size: 13px; }
.daily-list { display: grid; gap: 12px; }
.daily-card { display: grid; grid-template-columns: 40px 168px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); transition: border-color .15s; }
.daily-card:hover { border-color: var(--line-2); }
.daily-rank { font-size: 13px; color: var(--fg-subtle); padding-top: 3px; }
/* Photo du sujet (article exemple) ; absente ou cassée : visuel Signalytics, comme le Flux */
.daily-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-md, 8px); background: var(--ink-3); }
.daily-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-normal, 300ms) ease; }
.daily-card:hover .daily-img img { transform: scale(1.03); }
.daily-img--empty::before { content: ""; position: absolute; inset: 22% 0; background: url("/assets/signalytics-icon-160.png") center / contain no-repeat; filter: saturate(0.45) brightness(0.9); opacity: 0.55; }
.daily-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.daily-topic { margin: 0; font-size: 18px; font-weight: 700; color: var(--fg-strong); }
.daily-status--nouveau { color: var(--hot); border-color: color-mix(in srgb, var(--hot) 40%, transparent); }
.daily-status--en-hausse { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.daily-bar { height: 4px; margin: 10px 0 8px; background: var(--line); border-radius: 4px; overflow: hidden; max-width: 420px; }
.daily-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--hot-2, #ff8a5b), var(--hot)); border-radius: 4px; }
.daily-meta { margin: 0 0 10px; font-size: 13px; color: var(--fg-muted); }
.daily-meta strong { color: var(--fg); }
.daily-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.daily-examples li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; }
.daily-examples a { color: var(--fg); text-decoration: none; }
.daily-examples a:hover, .daily-examples a:focus-visible { color: var(--fg-strong); text-decoration: underline; }
.daily-ex-site { color: var(--fg-subtle); font-size: 12px; }
.daily-actions { display: grid; justify-items: end; gap: 8px; }
.daily-score { font-size: 26px; font-weight: 700; color: var(--fg-strong); line-height: 1; }
@media (max-width: 1024px) {
  .daily-card { grid-template-columns: 32px 120px minmax(0, 1fr) auto; }
}
@media (max-width: 720px) {
  .daily-card { grid-template-columns: 1fr; }
  .daily-rank { display: none; }
  .daily-img { aspect-ratio: 16 / 9; }
  .daily-actions { grid-auto-flow: column; justify-content: start; align-items: center; }
}

/* Tendances · Reddit (insights News Room) */
.rd-body { --rd: #ff5722; --rd-soft: rgba(255, 87, 34, 0.12); display: grid; gap: 16px; }
.rd-body .kpi-row { margin-bottom: 0; }
@media (max-width: 1100px) { .rd-body .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .rd-body .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.rd-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-muted); white-space: nowrap; }
.rd-live { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 18%, transparent); }
.rd-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-intro { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); max-width: 780px; }
.rd-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.rd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--fg-subtle); }
.rd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-full); background: var(--rd-soft); color: #ff9a76; font-size: 12px; font-weight: 600; }
.rd-chip--region { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.rd-age { color: var(--fg-subtle); }
.rd-link { text-decoration: underline; text-underline-offset: 2px; }
.rd-link:hover { color: var(--fg); }
.rd-votes, .rd-comments { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* Questions */
.rd-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-theme { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--ink-2); color: var(--fg-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.rd-theme:hover { color: var(--fg); border-color: var(--line-2); }
.rd-theme:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rd-theme.on { color: var(--fg-strong); border-color: color-mix(in srgb, var(--rd) 55%, transparent); background: var(--rd-soft); }
.rd-theme-n { font-size: 12px; color: var(--fg-subtle); }
.rd-theme.on .rd-theme-n { color: #ff9a76; }
.rd-qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: rdq; }
.rd-q { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl); transition: border-color .15s, transform .15s; }
.rd-q:hover { border-color: var(--line-2); transform: translateY(-1px); }
.rd-q-count { display: grid; gap: 2px; }
.rd-q-count strong { font-size: 22px; line-height: 1; color: var(--fg-strong); }
.rd-q-count > span:not(.rd-meter) { font-size: 12px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .08em; }
.rd-meter { display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rd-meter span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff8a5b, var(--rd)); }
.rd-q-main { display: grid; gap: 8px; min-width: 0; }
.rd-q-title { color: var(--fg-strong); font-size: 15px; font-weight: 650; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.rd-q-title:hover, .rd-q-title:focus-visible { color: #ffb59a; }
.rd-open { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--fg-muted); font-size: 12.5px; text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s; }
.rd-open:hover, .rd-open:focus-visible { color: var(--fg-strong); border-color: var(--line-2); }

/* Local */
.rd-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.rd-regions--one { grid-template-columns: minmax(0, 860px); }
.rd-region { display: grid; align-content: start; gap: 10px; padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl); }
.rd-region-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rd-region-head h3 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; font-weight: 700; color: var(--fg-strong); }
.rd-region-head svg { color: var(--brand); }
.rd-region-n { font-size: 12px; color: var(--fg-subtle); }
.rd-local-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rd-local-item { display: grid; gap: 5px; padding: 8px 6px; border-radius: var(--r-md); }
.rd-local-item:hover { background: var(--ink-3); }
.rd-local-item.is-lead { padding: 10px 12px; background: var(--ink-3); border-left: 3px solid var(--rd); }
.rd-local-title { color: var(--fg); font-size: 13.5px; font-weight: 600; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.rd-local-item.is-lead .rd-local-title { color: var(--fg-strong); font-size: 14.5px; }
.rd-local-title:hover, .rd-local-title:focus-visible { color: #ffb59a; }

/* Médias */
.rd-medias { display: grid; gap: 8px; }
.rd-media { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl); transition: border-color .15s; }
.rd-media[open], .rd-media:hover { border-color: var(--line-2); }
.rd-media summary { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) 118px 118px 104px; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.rd-media summary::-webkit-details-marker { display: none; }
.rd-media summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: var(--r-xl); }
.rd-media-rank { font-size: 12px; color: var(--fg-subtle); }
.rd-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink-4); color: var(--fg-strong); font-weight: 800; font-size: 15px; border: 1px solid var(--line-2); }
.rd-media:nth-child(-n+3) .rd-avatar { background: var(--rd-soft); color: #ff9a76; border-color: color-mix(in srgb, var(--rd) 40%, transparent); }
.rd-media-main { display: grid; gap: 7px; min-width: 0; }
.rd-media-name { color: var(--fg-strong); font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-bar { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rd-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff8a5b, var(--rd)); }
.rd-media-stat { display: grid; gap: 1px; justify-items: end; }
.rd-media-stat strong { font-size: 16px; color: var(--fg-strong); line-height: 1.1; }
.rd-media-stat > span { font-size: 12px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .07em; }
.rd-trend { font-size: 12px; font-weight: 700; color: var(--fg-subtle); }
.rd-trend.is-up { color: var(--up); }
.rd-trend.is-down { color: var(--down); }
.rd-media-top { list-style: none; margin: 0; padding: 4px 16px 14px 90px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.rd-media-top li { display: grid; gap: 4px; }
.rd-media-top li > a { color: var(--fg); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.rd-media-top li > a:hover { color: #ffb59a; }

/* Ça s'emballe */
.rd-heats { display: grid; gap: 10px; }
.rd-heat { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 18px; background: linear-gradient(90deg, var(--rd-soft), transparent 45%), var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--rd); border-radius: var(--r-xl); }
.rd-heat-pace { display: grid; gap: 2px; }
.rd-heat-pace strong { font-size: 26px; line-height: 1; color: #ff8a5b; }
.rd-heat-pace > span:nth-child(2) { font-size: 12px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .08em; }
.rd-heat-rate { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--warm); }
.rd-heat-main { display: grid; gap: 8px; min-width: 0; }
.rd-heat-bar { display: block; height: 4px; max-width: 520px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rd-heat-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--warm), var(--rd)); }

/* Liste simple (encart des Sujets du jour) */
.rd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rd-item { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: var(--r-md, 10px); }
.rd-item:hover { background: var(--ink-3); }
.rd-item-main { display: grid; gap: 3px; min-width: 0; }
.rd-item-main a { color: var(--fg-strong); text-decoration: none; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.rd-item-main a:hover, .rd-item-main a:focus-visible { color: var(--brand); text-decoration: underline; }
.rd-item-meta { font-size: 12px; color: var(--fg-subtle); }

@media (max-width: 900px) {
  .rd-media summary { grid-template-columns: 22px 30px minmax(0, 1fr) 84px 96px; gap: 10px; }
  .rd-hide-sm { display: none; }
  .rd-media-top { padding-left: 16px; }
}
@media (max-width: 640px) {
  .rd-q { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rd-q-count { grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; }
  .rd-q-count strong { font-size: 18px; }
  .rd-meter { margin-top: 0; align-self: center; }
  .rd-open { justify-self: start; }
  .rd-regions { grid-template-columns: minmax(0, 1fr); }
  .rd-media summary { grid-template-columns: 30px minmax(0, 1fr) 70px; }
  .rd-media-rank, .rd-hide-xs { display: none; }
  .rd-heat { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.daily-reddit { display: grid; gap: 8px; margin-top: 18px; padding: 16px 12px 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); }
.daily-reddit-title { margin: 0 4px; font-size: 15px; font-weight: 700; color: var(--fg-strong); }
.daily-reddit > p { margin: 0 4px; font-size: 12.5px; }
.daily-reddit > .btn-ghost { justify-self: start; margin: 4px; }
@media (max-width: 640px) { .rd-regions { grid-template-columns: minmax(0, 1fr); } }

/* Logo Signalytics (image) dans l'en-tête de l'application */
.cp-brand .brand-logo { display: block; align-self: flex-start; height: 34px; width: auto; }
.cp-brand .brand-sub { margin-top: 6px; font-size: 11px; } /* fait partie du logo (exempté des minima de taille) */
/* Ligne du logo agrandie d'environ 20 % (58 → 70 px) pour la lisibilité des logos. */
.topnav-top { height: 70px; }
@media (max-width: 600px) {
  .topnav-top { height: 62px; }
  .cp-brand .brand-logo { height: 28px; }
  .cp-brand .brand-sub { font-size: 9px; }
}

/* Encart « La Voix des IA » (colonne de droite du Flux) */
.lvia-promo { margin-bottom: 18px; overflow: hidden; border-radius: var(--r-xl, 14px); border: 1px solid color-mix(in srgb, var(--lvia-red-hover) 35%, var(--line)); background: radial-gradient(120% 80% at 100% 0%, rgba(255, 42, 42, .12), transparent 60%), var(--ink-1); transition: border-color .15s, transform .15s; }
.lvia-promo:hover { border-color: color-mix(in srgb, var(--lvia-red-hover) 60%, var(--line)); transform: translateY(-2px); }
.lvia-promo-media { display: block; aspect-ratio: 744 / 391; background: #0a0a0a; }
.lvia-promo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lvia-promo-body { display: grid; gap: 7px; padding: 14px 16px 16px; }
.lvia-promo-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lvia-red-text); }
.lvia-promo-title { margin: 0; font-size: 17px; font-weight: 800; color: var(--fg-strong); }
.lvia-promo-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.lvia-promo-btn { justify-self: start; margin-top: 4px; padding: 8px 14px; border-radius: var(--r-md); background: var(--lvia-red); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.lvia-promo-btn:hover, .lvia-promo-btn:focus-visible { background: var(--lvia-red-hover); }
.lvia-promo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Encart The Black Room dans les listes de news (Flux, Discover, Google News) */
.tbr-ad { display: grid; gap: 14px; align-content: start; overflow: hidden; border-radius: var(--r-xl, 14px); border: 1px solid color-mix(in srgb, var(--tbr-red) 40%, var(--line)); background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 70% at 50% 0%, rgba(232, 51, 31, .16), transparent 65%), #08080a;
  color: #f4f4f5; transition: border-color .15s, transform .15s; }
.tbr-ad:hover { border-color: color-mix(in srgb, var(--tbr-red) 70%, var(--line)); transform: translateY(-2px); }
.tbr-ad-logo { display: block; width: 116px; }
.tbr-ad-logo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.tbr-ad-body { display: grid; gap: 8px; min-width: 0; }
.tbr-ad-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tbr-red-text); }
.tbr-ad-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; color: #fff; text-wrap: balance; }
.tbr-ad-text { margin: 0; font-size: 13px; line-height: 1.5; color: #a1a1aa; }
.tbr-ad-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.tbr-ad-skills li { padding: 3px 9px; border-radius: var(--r-full); border: 1px solid rgba(255, 255, 255, .12); font-size: 12px; font-weight: 600; color: #d4d4d8; }
.tbr-ad-btn { justify-self: start; padding: 9px 15px; border-radius: var(--r-md); background: var(--tbr-red); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
.tbr-ad-btn:hover, .tbr-ad-btn:focus-visible { background: var(--tbr-red-hover); }
.tbr-ad-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Carte : même gabarit que les news de la grille. */
.tbr-ad--card { padding: 22px 20px 20px; align-content: space-between; }
.tbr-ad--card .tbr-ad-logo { width: 132px; }
/* Bandeau : logo, texte, bouton sur une ligne ; empilé sur mobile. */
.tbr-ad--row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px; padding: 18px 22px; }
.tbr-ad--row .tbr-ad-title { font-size: 17px; }
@media (max-width: 760px) {
  .tbr-ad--row { grid-template-columns: 1fr; }
}

/* Coaching XXL en bandeau (Discover) : prix et bouton empilés à droite. */
.coach-row-cta { display: grid; gap: 10px; justify-items: end; }
.coach-row-cta .coach-ad-price { justify-content: flex-end; text-align: right; }
@media (max-width: 760px) {
  .coach-row-cta { justify-items: start; }
  .coach-row-cta .coach-ad-price { justify-content: flex-start; text-align: left; }
}

/* Coaching XXL : rectangle vertical, même fond que l'encart The Black Room. */
.coach-ad { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: var(--r-xl, 14px); border: 1px solid color-mix(in srgb, var(--tbr-red) 40%, var(--line)); background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(130% 60% at 50% 0%, rgba(232, 51, 31, .2), transparent 65%), #08080a;
  color: #f4f4f5; }
.coach-ad-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coach-ad-logo { display: block; width: 104px; height: auto; border-radius: 6px; }
.coach-ad-badge { padding: 4px 9px; border-radius: var(--r-full); border: 1px solid rgba(232, 51, 31, .5); color: var(--tbr-red-text); font: 700 12px/1.2 var(--font-mono); letter-spacing: .04em; white-space: nowrap; }
.coach-ad-kicker { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tbr-red-text); }
.coach-ad-title { margin: -6px 0 0; color: #fff; font-size: 22px; line-height: 1.2; font-weight: 800; text-wrap: balance; }
.coach-ad-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.coach-ad-figs li { display: grid; gap: 2px; padding: 10px 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); text-align: center; }
.coach-ad-figs b { color: #fff; font: 800 20px/1 var(--font-mono); }
.coach-ad-figs span { color: #a1a1aa; font-size: 12px; line-height: 1.25; }
.coach-ad-perks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.coach-ad-perks li { position: relative; padding-left: 22px; color: #d4d4d8; font-size: 13.5px; line-height: 1.4; }
.coach-ad-perks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px; border-left: 2px solid var(--tbr-red-text); border-bottom: 2px solid var(--tbr-red-text); transform: rotate(-45deg); }
.coach-ad-foot { display: grid; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.coach-ad-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.coach-ad-price b { color: #fff; font-size: 24px; font-weight: 800; }
.coach-ad-price span { color: #a1a1aa; font-size: 13px; }
.coach-ad-btn { justify-self: stretch; text-align: center; padding: 12px 16px; font-size: 14px; }
/* Dans une liste (mobile, tablette) : rectangle centré, pas étiré sur toute la largeur. */
.coach-ad--inline { width: 100%; max-width: 380px; margin: 6px auto; }
/* Carte de /gnews : deux rangées de la grille. */
.coach-ad--card { grid-row: span 2; align-content: space-between; }
/* Flux : la colonne de droite (rail puis Coaching) occupe toute la hauteur de la liste. Le rail défile
   normalement (collant, il dépassait l'écran et cachait ses derniers panneaux jusqu'en fin de page) ;
   le Coaching, dessous, reste collant jusqu'à la fin. En une colonne : Coaching dans la liste, rail au-dessus. */
.rail-col { display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.rail-col > .rail { position: static; }
.rail-col > .coach-ad { position: sticky; top: 130px; }
.coach-ad--inline.coach-ad--flux { display: none; }
@media (max-width: 1120px) {
  .rail-col { order: -1; }
  .coach-ad--rail.coach-ad--flux { display: none; }
  .coach-ad--inline.coach-ad--flux { display: grid; }
}

/* Header : lien vers The Black Room, collectif éditeur de Signalytics */
.nav-tbr { display: inline-flex; align-items: center; gap: 9px; margin-right: 14px; padding: 6px 13px 6px 7px; border-radius: var(--r-full); border: 1px solid var(--line); color: var(--fg-muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s; }
.nav-tbr img { display: block; height: 22px; width: auto; border-radius: 3px; }
.nav-tbr:hover, .nav-tbr:focus-visible { color: var(--fg-strong); border-color: color-mix(in srgb, var(--tbr-red) 55%, var(--line)); }
.nav-tbr:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 900px) {
  .nav-tbr { margin-right: 8px; padding: 5px; }
  .nav-tbr-text { display: none; }
}
/* Téléphone : plus de place pour le lien (il élargissait la page) ; « by The Black Room » reste sous le logo. */
@media (max-width: 600px) {
  .nav-tbr { display: none; }
}

/* Écrans tactiles : zones cliquables d'au moins 44 px de haut (recommandation WCAG / Apple / Android). */
@media (pointer: coarse) {
  .subnav-link, .seg button, .chip, .cp-btn, .gn-rubrique, .gn-sous-rubrique, .eg-month, .eg-catchip, .eg-body__link, .btn-primary, .btn-ghost { min-height: 44px; }
  .subnav-link { display: inline-flex; align-items: center; }
  .icon-btn { min-width: 44px; min-height: 44px; }
}

/* =====================================================================
   Style « salle de rédaction » (même direction que la page d'accueil) : quadrillage discret,
   aplats au lieu du dégradé violet-rose, rouge « signal » pour les accents, chiffres en mono.
   ===================================================================== */
:root { --brand-grad: var(--brand-2); }
body::before {
  background:
    linear-gradient(180deg, transparent 0, var(--ink-0) 900px) 0 0 / 100% 100% no-repeat,
    radial-gradient(760px 420px at 10% -6%, rgba(255, 106, 77, 0.09), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 48px 48px;
}
.btn-primary, .cp-btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -12px rgba(99, 102, 241, 0.7); }
.btn-primary:hover, .cp-btn-primary:hover { background: #7376f3; filter: none; }
.page-eyebrow, .tp-eyebrow, .eg-hero__eyebrow, .tpx-hero__eyebrow { color: var(--hot); }
.tp-eyebrow .dot { background: var(--hot); }
/* Mot mis en avant dans les titres : couleur « signal » pleine, soulignée comme au surligneur. */
.tp-title .accent, .eg-hero__title em {
  font-style: normal;
  color: var(--hot);
  -webkit-text-fill-color: var(--hot);
  background: linear-gradient(transparent 78%, rgba(255, 106, 77, 0.22) 78%);
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.kpi-val { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.04em; }

/* Flux : titres de section numérotés 01, 02… comme la visite guidée de l'accueil */
body[data-page="cockpit"] .cp-container { counter-reset: cp-sec; }
body[data-page="cockpit"] .cp-container > div > .sec-head .sec-title::before,
body[data-page="cockpit"] .layout .sec-head .sec-title::before {
  counter-increment: cp-sec;
  content: counter(cp-sec, decimal-leading-zero);
  margin-right: 10px; padding-right: 10px;
  border-right: 1px solid var(--line-3);
  font-family: var(--font-mono); color: var(--hot);
}

/* Flux : KPI en Bento, la première tuile (sujets chauds) mise en avant */
body[data-page="cockpit"] .kpi-row > .kpi:first-child {
  border-color: rgba(255, 106, 77, 0.35);
  background: radial-gradient(100% 90% at 100% 0%, rgba(255, 106, 77, 0.16), transparent 60%), var(--ink-2);
}
body[data-page="cockpit"] .kpi-row > .kpi:first-child .kpi-val { color: var(--hot); font-size: 46px; }
@media (min-width: 1201px) {
  body[data-page="cockpit"] .kpi-row { grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); }
  body[data-page="cockpit"] .kpi-label { letter-spacing: 0.08em; white-space: nowrap; }
}
/* 3 ou 2 colonnes : la tuile mise en avant prend deux colonnes, les autres complètent la grille sans trou. */
@media (max-width: 1200px) {
  body[data-page="cockpit"] .kpi-row > .kpi:first-child { grid-column: span 2; }
}

/* « Ce que les gens cherchent » (suggestions Google) : Flux et Sujets du jour */
.people-search { display: grid; gap: 10px; }
.ps-note { margin: 0; font-size: 13px; color: var(--fg-subtle); }
.ps-questions { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ps-questions li { display: flex; gap: 8px; align-items: baseline; }
.ps-questions li::before { content: "?"; flex-shrink: 0; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 106, 77, 0.14); color: var(--hot); font: 700 12px/1 var(--font-mono); }
.ps-q { color: var(--fg); font-size: 13.5px; text-decoration: none; }
.ps-q::first-letter { text-transform: uppercase; }
.ps-q:hover, .ps-q:focus-visible { color: var(--fg-strong); text-decoration: underline; }
.ps-searches { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-s { padding: 4px 10px; border-radius: var(--r-full); border: 1px solid var(--line-2); color: var(--fg-muted); font-size: 12.5px; text-decoration: none; }
.ps-s:hover, .ps-s:focus-visible { color: var(--fg-strong); border-color: var(--line-3); }
.ps-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ps-title { margin: 0; font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hot); }

/* ---------- Assistant éditorial (bouton flottant + panneau) ---------- */
.as-launch { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--brand-2); color: #fff; font: 700 14px/1 var(--font-sans); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px -10px rgba(99, 102, 241, .8); transition: transform .15s, background .15s; }
.as-launch:hover { background: #7376f3; transform: translateY(-2px); }
.as-launch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.as-panel { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; width: min(440px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px)); border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); overflow: hidden; }
.as-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(255, 106, 77, .12), transparent 60%), var(--ink-2); }
.as-head > div { flex: 1; min-width: 0; }
.as-title { margin: 0; font-weight: 800; color: var(--fg-strong); }
.as-sub { margin: 2px 0 0; font-size: 12px; color: var(--fg-subtle); }
.as-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg-muted); cursor: pointer; }
.as-icon:hover { color: var(--fg-strong); border-color: var(--line-3); }
.as-list { overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.as-msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.as-msg p { margin: 0 0 6px; }
.as-msg p:last-child { margin-bottom: 0; }
.as-msg--user { justify-self: end; background: var(--brand-2); color: #fff; border-bottom-right-radius: 4px; }
.as-msg--assistant { justify-self: start; background: var(--ink-2); border: 1px solid var(--line); color: var(--fg); border-bottom-left-radius: 4px; }
.as-md h4 { margin: 10px 0 4px; font-size: 14px; color: var(--fg-strong); }
.as-md h4:first-child { margin-top: 0; }
.as-md ul, .as-md ol { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.as-md a { color: var(--brand); }
.as-md strong { color: var(--fg-strong); }
.as-tools { margin-top: 8px !important; font-size: 12px; color: var(--fg-subtle); }
.as-wait p { color: var(--fg-muted); animation: as-pulse 1.4s ease-in-out infinite; }
@keyframes as-pulse { 50% { opacity: .45; } }
.as-intro { display: grid; gap: 12px; color: var(--fg-muted); font-size: 13.5px; }
.as-intro p { margin: 0; }
.as-suggest { display: grid; gap: 8px; }
.as-chip { text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--fg); font: 600 13px/1.35 var(--font-sans); cursor: pointer; }
.as-chip:hover, .as-chip:focus-visible { border-color: var(--brand); color: var(--fg-strong); }
.as-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.as-input { flex: 1; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-0); color: var(--fg); font: 14px/1.4 var(--font-sans); }
.as-input:focus { outline: none; border-color: var(--brand); }
.as-send { align-self: stretch; }
.as-send:disabled { opacity: .6; cursor: progress; }
.as-note { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--fg-subtle); }
@media (max-width: 600px) { .as-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); } .as-launch { right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .as-wait p { animation: none; } .as-launch { transition: none; } }

/* Flux, cartes « À la une » sans image : icône Signalytics atténuée (même repli que Discover) */
.hero-img--empty { display: grid; place-items: center; }
.hero-img--empty::before { content: ""; position: absolute; inset: 14% 0; background: url("/assets/signalytics-icon-160.png") center / contain no-repeat; filter: saturate(0.45) brightness(0.9); opacity: 0.55; }

/* ---------- Bandeau « Ça monte sur Google » sous la navigation ---------- */
.trend-ticker { border-bottom: 1px solid var(--line); background: var(--ink-1); }
.tt-inner { display: flex; align-items: center; height: 40px; max-width: var(--maxw, 1320px); margin: 0 auto; padding: 0 28px; overflow: hidden; }
.tt-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px 0 0; font: 700 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hot); background: var(--ink-1); box-shadow: 12px 0 16px -6px var(--ink-1); position: relative; z-index: 1; }
.tt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 106, 77, .6); animation: tt-pulse 2s infinite; }
@keyframes tt-pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 106, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 77, 0); } }
.tt-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.tt-track { display: flex; width: max-content; animation: tt-scroll var(--tt-duration, 60s) linear infinite; }
.trend-ticker:hover .tt-track, .trend-ticker:focus-within .tt-track { animation-play-state: paused; }
@keyframes tt-scroll { to { transform: translateX(-50%); } }
.tt-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; height: 40px; color: var(--fg); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); }
.tt-item:hover, .tt-item:focus-visible { color: var(--fg-strong); background: rgba(255, 255, 255, .03); }
.tt-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tt-vol { padding: 2px 7px; border-radius: 999px; background: rgba(255, 106, 77, .14); color: var(--hot); font-size: 12px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .tt-track { animation: none; }
  .tt-viewport { overflow-x: auto; mask-image: none; }
  .tt-track > [aria-hidden="true"] { display: none; }
  .tt-dot { animation: none; }
}
@media (max-width: 760px) { .tt-inner { padding: 0 16px; } }
@media (max-width: 600px) { .tt-label { padding: 0 10px 0 0; font-size: 0; gap: 0; } .tt-label .tt-dot { margin: 0 4px; } }

/* ---------- Bouton « Haut de page » (mobile et tablette, back-to-top.js) ---------- */
.to-top-marker { position: absolute; top: 120vh; left: 0; width: 1px; height: 1px; pointer-events: none; }
.to-top { display: none; }
@media (max-width: 900px) {
  .to-top { position: fixed; right: 12px; bottom: var(--to-top-bottom, 16px); z-index: 59; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-3); border-radius: 50%; background: rgba(20, 22, 30, 0.92); color: var(--fg-strong, #fff); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
  .to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
/* Application : aligné sur le bouton de l'assistant éditorial (20 px du bord, 12 px sous 600 px), juste au-dessus. */
@media (max-width: 900px) { .to-top { right: 20px; bottom: 72px; } }
@media (max-width: 600px) { .to-top { right: 12px; bottom: 64px; } }
