.signaux-page { padding: 48px 0 96px; }
/* Le .container partage (860px) est pense pour de la lecture d'article : trop
   etroit pour un tableau a 7 colonnes, qui finit ecrase sans place pour respirer.
   Cette page a besoin de plus large. */
.signaux-page .container { max-width: 1240px; }

.signaux-entete h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.signaux-entete h1::after { content: ""; display: block; width: 48px; height: 3px;
  background: var(--gold); margin-top: 14px; }
.signaux-sous-titre { color: var(--muted); margin-top: 10px; max-width: 640px; }
.signaux-maj { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }

.signaux-paywall { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px; margin-top: 32px;
  max-width: 560px; text-align: center; margin-left: auto; margin-right: auto; }
.signaux-paywall-titre { color: var(--gold); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 12px; }
.signaux-paywall p { color: var(--muted); line-height: 1.6; }
.signaux-paywall-btn { display: inline-block; margin-top: 20px; background: var(--gold);
  color: #111; font-weight: 700; padding: 12px 26px; border-radius: 8px;
  text-decoration: none; }
.signaux-paywall-btn:hover { filter: brightness(1.08); }
.signaux-paywall-connexion { margin-top: 14px; font-size: 0.85rem; }
.signaux-paywall-connexion a { color: var(--gold); }

.signaux-highlights { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.signaux-highlights-groupe { display: flex; flex-direction: column; gap: 10px; }
.signaux-highlights-titre {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0;
}
.signaux-highlights-titre.achat { color: #6fd694; }
.signaux-highlights-titre.vente { color: #e88a8a; }
.signaux-highlights-ligne {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.signaux-highlight-carte {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.signaux-highlight-carte h3 {
  font-size: 0.95rem; font-weight: 800; margin-bottom: 12px; display: flex;
  align-items: center; gap: 6px;
}
.signaux-highlight-info { color: var(--muted); font-weight: 400; cursor: help; font-size: 0.85rem; }
.signaux-highlight-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.signaux-highlight-liste li { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.signaux-highlight-detail { color: var(--muted); font-size: 0.78rem; }
.signaux-highlight-vide { color: var(--muted); font-size: 0.85rem; font-style: italic; }

.signaux-fenetre { color: var(--muted); font-size: 0.8rem; margin-top: 14px; }

.signaux-toggle-label {
  display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem;
  flex: 0 0 auto; cursor: pointer;
}
.signaux-toggle-label input { accent-color: var(--gold); cursor: pointer; }

.signaux-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; align-items: center; }
.signaux-filtres input,
.signaux-filtres select {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 11px 14px; font-size: 0.9rem; font-family: inherit;
}
.signaux-filtres > input[type="search"] { flex: 1 1 240px; }
.signaux-filtres select { flex: 0 0 auto; }
.signaux-filtres input:focus, .signaux-filtres select:focus {
  outline: none; border-color: var(--gold-dim);
}
.signaux-date-label {
  display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; flex: 0 0 auto;
}
.signaux-date-label input[type="date"] { padding: 9px 10px; font-size: 0.85rem; color-scheme: dark; }

.signaux-etat { color: var(--muted); margin-top: 24px; }

.signaux-table-wrap {
  margin-top: 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
}
.signaux-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.92rem; }
.signaux-table th {
  text-align: left; padding: 16px 18px; color: var(--muted); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.signaux-table td {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  overflow-wrap: break-word; line-height: 1.5;
}
.signaux-table tbody tr:last-child td { border-bottom: none; }
.signaux-table tbody tr:hover { background: var(--bg-card); }

/* Colonnes courtes (type/date/montant) : jamais besoin de retour a la ligne.
   Personne/Role/Actif/Source peuvent wrapper -- largeurs fixees, mais generreuses
   maintenant que le tableau a un conteneur plus large (voir .signaux-page .container).
   Scope sur l'ID #s-table : le tableau de detail (#s-detail-table) a une autre
   disposition de colonnes et ne doit pas heriter de ces largeurs. */
#s-table th:nth-child(1), #s-table td:nth-child(1) { width: 16%; }
#s-table th:nth-child(2), #s-table td:nth-child(2) { width: 15%; }
#s-table th:nth-child(3), #s-table td:nth-child(3) { width: 26%; }
#s-table th:nth-child(4), #s-table td:nth-child(4) { width: 9%; white-space: nowrap; }
#s-table th:nth-child(5), #s-table td:nth-child(5) { width: 10%; white-space: nowrap; }
#s-table th:nth-child(6), #s-table td:nth-child(6) { width: 12%; white-space: nowrap; }
#s-table th:nth-child(7), #s-table td:nth-child(7) { width: 12%; }

.st-ticker, .st-person {
  color: var(--gold); font-weight: 700; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--transition);
}
.st-ticker { margin-right: 6px; }
.st-ticker:hover, .st-person:hover { text-decoration-color: var(--gold); }
.st-person { color: var(--text); }
.st-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem;
  font-weight: 700;
}
.st-pill.achat { background: rgba(80, 200, 120, 0.15); color: #6fd694; }
.st-pill.vente { background: rgba(220, 90, 90, 0.15); color: #e88a8a; }
.st-pill.autre { background: rgba(150, 150, 150, 0.15); color: var(--muted); }
.st-source-link { color: var(--muted); text-decoration: none; }
.st-source-link:hover { color: var(--gold); }
.st-suspect {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; background: rgba(232, 197, 71, 0.15); color: var(--gold);
  cursor: help;
}
.st-plan {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; background: rgba(126, 168, 240, 0.15); color: #7ea8f0;
  cursor: help; text-transform: uppercase; letter-spacing: 0.03em;
}

/* ---- panneau de detail par actif ---- */
.signaux-detail { margin-top: 28px; }
.signaux-detail-fermer {
  background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 18px;
}
.signaux-detail-fermer:hover { color: var(--gold); }
.signaux-detail-entete h2 { font-size: 1.3rem; font-weight: 800; }
.signaux-detail-prix { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.signaux-detail-graphique-wrap {
  position: relative; height: 320px; margin-top: 20px; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
#s-detail-table th:nth-child(1), #s-detail-table td:nth-child(1) { width: 18%; }
#s-detail-table th:nth-child(2), #s-detail-table td:nth-child(2) { width: 16%; }
#s-detail-table th:nth-child(3), #s-detail-table td:nth-child(3) { width: 10%; }
#s-detail-table th:nth-child(4), #s-detail-table td:nth-child(4) { width: 11%; }
#s-detail-table th:nth-child(5), #s-detail-table td:nth-child(5) { width: 16%; }
#s-detail-table th:nth-child(6), #s-detail-table td:nth-child(6) { width: 16%; }
#s-detail-table th:nth-child(7), #s-detail-table td:nth-child(7) { width: 13%; }

/* ---- panneau de detail par personne ---- */
.signaux-detail-soustitre { font-size: 1rem; font-weight: 800; margin: 28px 0 4px; }
#sp-positions-table th:nth-child(1), #sp-positions-table td:nth-child(1) { width: 30%; }
#sp-positions-table th:nth-child(2), #sp-positions-table td:nth-child(2) { width: 12%; }
#sp-positions-table th:nth-child(3), #sp-positions-table td:nth-child(3) { width: 12%; }
#sp-positions-table th:nth-child(4), #sp-positions-table td:nth-child(4) { width: 18%; }
#sp-positions-table th:nth-child(5), #sp-positions-table td:nth-child(5) { width: 14%; }
#sp-positions-table th:nth-child(6), #sp-positions-table td:nth-child(6) { width: 14%; }
#sp-history-table th:nth-child(1), #sp-history-table td:nth-child(1) { width: 32%; }
#sp-history-table th:nth-child(2), #sp-history-table td:nth-child(2) { width: 14%; }
#sp-history-table th:nth-child(3), #sp-history-table td:nth-child(3) { width: 16%; }
#sp-history-table th:nth-child(4), #sp-history-table td:nth-child(4) { width: 20%; }
#sp-history-table th:nth-child(5), #sp-history-table td:nth-child(5) { width: 18%; }

.signaux-note { color: var(--muted); font-size: 0.8rem; margin-top: 14px; line-height: 1.5; }
.st-pos { color: #6fd694; font-weight: 700; }
.st-neg { color: #e88a8a; font-weight: 700; }

.signaux-disclaimer { color: var(--muted); font-size: 0.8rem; margin-top: 28px; max-width: 640px; }

@media (max-width: 900px) {
  .signaux-highlights-ligne { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .signaux-filtres { flex-direction: column; }
  .signaux-filtres input, .signaux-filtres select { flex: 1 1 auto; }

  /* Sur mobile, le tableau garde ses colonnes essentielles (personne, actif,
     type, montant) et retrouve une largeur naturelle -- role/date/source
     passent en scroll horizontal plutot que d'ecraser le contenu utile. */
  .signaux-table { table-layout: auto; font-size: 0.8rem; }
  .signaux-table th, .signaux-table td { padding: 10px 10px; white-space: nowrap; }
  #s-table th:nth-child(2), #s-table td:nth-child(2),
  #s-table th:nth-child(5), #s-table td:nth-child(5) { display: none; }
  #s-detail-table th:nth-child(2), #s-detail-table td:nth-child(2) { display: none; }
  #sp-positions-table th:nth-child(4), #sp-positions-table td:nth-child(4) { display: none; }
}
