.strat-page { padding: 48px 0 96px; }
.strat-page .container { max-width: 1180px; }

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

.strat-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; }
.strat-paywall-titre { color: var(--gold); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 12px; }
.strat-paywall p { color: var(--muted); line-height: 1.6; }
.strat-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; }
.strat-paywall-btn:hover { filter: brightness(1.08); }
.strat-paywall-connexion { margin-top: 14px; font-size: 0.85rem; }
.strat-paywall-connexion a { color: var(--gold); }

/* ---- onglets ---- */
.strat-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.strat-tab {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--muted);
  font-family: inherit; font-size: 0.85rem; font-weight: 600; padding: 9px 16px;
  border-radius: 8px; cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
.strat-tab:hover { color: var(--text); border-color: var(--gold-dim); }
.strat-tab.is-active { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }

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

.strat-panel { margin-top: 24px; }

/* ---- cartes ---- */
.strat-carte {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
}
.strat-carte h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.strat-carte h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; }
.strat-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }

.strat-muted, .strat-note { color: var(--muted); }
.strat-note { font-size: 0.82rem; line-height: 1.5; margin-top: 10px; }

/* ---- signal hero ---- */
.strat-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.strat-signal-badge {
  font-size: 1.6rem; font-weight: 800; padding: 14px 26px; border-radius: 12px;
  letter-spacing: 0.02em; white-space: nowrap;
  background: rgba(80, 200, 120, 0.12); color: #6fd694; border: 2px solid #6fd694;
}
.strat-signal-badge.defensif { background: rgba(232, 197, 71, 0.12); color: var(--gold); border-color: var(--gold); }
.strat-explain { font-size: 1rem; font-weight: 600; }

/* ---- tableaux ---- */
/* Une seule ligne par ligne de tableau (a l'identique du dashboard de
   reference) : les tableaux a plusieurs colonnes texte (sectoriel/style/
   regional, DMA) sont en carte PLEINE LARGEUR (pas de grid2 a 2 colonnes qui
   les aurait ecrases) -- le nowrap ne force donc plus de scroll horizontal. */
.strat-table-wrap { overflow-x: auto; }
.strat-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.85rem; white-space: nowrap; }
.strat-table-wrap th {
  text-align: left; padding: 9px 12px; color: var(--muted); font-weight: 600;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
}
.strat-table-wrap td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.strat-table-wrap tbody tr:last-child td { border-bottom: none; }
.strat-table-wrap tr.st-top { background: rgba(232, 197, 71, 0.06); }
.strat-table-wrap tr.st-top td:first-child { font-weight: 700; }
.st-pos { color: #6fd694; font-weight: 600; }
.st-neg { color: #e88a8a; font-weight: 600; }

.st-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
}
.st-badge.b-green { background: rgba(80, 200, 120, 0.15); color: #6fd694; }
.st-badge.b-red { background: rgba(220, 90, 90, 0.15); color: #e88a8a; }
.st-badge.b-gold { background: rgba(232, 197, 71, 0.15); color: var(--gold); }
.st-badge.b-blue { background: rgba(100, 150, 240, 0.15); color: #7ea8f0; }

/* ---- filtres ---- */
.strat-filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.strat-filtres label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.strat-filtres select, .strat-filtres input[type="search"],
.strat-select-inline select, #capital {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 8px 12px; font-size: 0.85rem; font-family: inherit;
}
.strat-select-inline { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }

/* ---- kpis (papabear/mamabear/dmr signal chips) ---- */
.strat-kpis { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; }
.strat-kpi { display: flex; flex-direction: column; gap: 2px; }
.strat-kpi .v { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.strat-kpi .l { color: var(--muted); font-size: 0.78rem; }

/* ---- allocations (donuts CSS) ---- */
.strat-alloc-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.strat-donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex-shrink: 0; }
.strat-donut::after { content: ""; position: absolute; inset: 24%; background: var(--bg-card); border-radius: 50%; }
.strat-legend { flex: 1; min-width: 220px; }
.strat-legend-row {
  display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.strat-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }
#alloc-profiles .strat-carte h3 { margin-top: 0; }

/* ---- rappel de methode (liste numerotee) ---- */
.strat-steps { list-style: none; counter-reset: st-step; }
.strat-steps li {
  position: relative; padding: 8px 0 8px 40px; font-size: 0.88rem; line-height: 1.5;
}
.strat-steps li::before {
  counter-increment: st-step; content: counter(st-step);
  position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #0a0a0a; font-weight: 700; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
}

.strat-disclaimer { color: var(--muted); font-size: 0.8rem; margin-top: 24px; max-width: 720px; }

@media (max-width: 640px) {
  .strat-hero { flex-direction: column; align-items: flex-start; }
  .strat-tabs { gap: 4px; }
  .strat-tab { font-size: 0.78rem; padding: 8px 12px; }
}
