/* scenario.css — habillage du « Sandbox scénarisé » (scenario-engine.js).
   Préfixe fsc- : aucune collision avec le Sandbox ni Horizon 2050.
   La page Sandbox est sombre uniquement : tokens sombres. */
:root {
  --fsc-bg: #0b1020;
  --fsc-panel: #111827;
  --fsc-panel-2: #1f2937;
  --fsc-line: #2b3546;
  --fsc-text: #f3f4f6;
  --fsc-muted: #9ca3af;
  --fsc-good: #34d399;
  --fsc-accent: #f59e0b;
}

/* ── HUD objectif (sous l'en-tête de la zone principale) ─────────────── */
.fsc-hud {
  display: grid; grid-template-columns: minmax(0, auto) minmax(120px, 1fr) auto;
  align-items: center; gap: 18px; flex-shrink: 0;
  margin: 12px 16px 0; padding: 10px 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--fsc-accent) 10%, transparent), color-mix(in srgb, var(--fsc-accent) 2%, transparent));
  border: 1px solid color-mix(in srgb, var(--fsc-accent) 28%, transparent); border-radius: 12px;
  color: var(--fsc-text);
}
html.cm .fsc-hud { display: none !important; }   /* téléphone : bandeau propre (scenario-mobile) */
.fsc-hud-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fsc-hud-emoji { font-size: 22px; line-height: 1; }
.fsc-hud-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fsc-accent); }
.fsc-hud-goal { font-size: 14px; color: var(--fsc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsc-hud-goal strong { font-variant-numeric: tabular-nums; }
.fsc-muted { color: var(--fsc-muted); font-size: 12px; }
.fsc-hud-bar { height: 8px; background: var(--fsc-panel-2); border-radius: 999px; overflow: hidden; }
.fsc-hud-fill { height: 100%; width: 0; background: var(--fsc-accent); border-radius: 999px; transition: width 0.6s ease; }
.fsc-hud-fill.fsc-done { background: var(--fsc-good); }
.fsc-hud-right { display: flex; align-items: center; gap: 10px; }
.fsc-hud-turn { font-size: 12px; color: var(--fsc-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fsc-hud-btn {
  font-size: 12px; font-weight: 600; color: var(--fsc-text);
  background: var(--fsc-panel-2); border: 1px solid var(--fsc-line);
  padding: 5px 10px; border-radius: 8px; cursor: pointer;
}
.fsc-hud-btn:hover { border-color: var(--fsc-accent); }
.fsc-hud-tip {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.45; color: #e5e7eb;
  background: rgba(17, 24, 39, 0.65); border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 9px; padding: 7px 10px; margin-top: -4px;
}
.fsc-hud-tip[hidden] { display: none; }
.fsc-hud-tip-ic { flex-shrink: 0; }
.fsc-hud-tip span:nth-child(2) { flex: 1; }
.fsc-hud-tip-x { background: none; border: 0; color: var(--fsc-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.fsc-hud-tip-x:hover { color: var(--fsc-text); }
@media (max-width: 900px) {
  .fsc-hud { grid-template-columns: 1fr; gap: 8px; }
  .fsc-hud-goal { white-space: normal; }
}

/* ── Modale ─────────────────────────────────────────────────────────── */
.fsc-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3, 7, 18, 0.78); backdrop-filter: blur(3px);
  animation: fsc-fade 0.18s ease-out;
}
.fsc-modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--fsc-panel); color: var(--fsc-text);
  border: 1px solid var(--fsc-line); border-top: 3px solid var(--fsc-accent);
  border-radius: 16px; padding: 24px 24px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: fsc-rise 0.22s ease-out;
}
.fsc-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fsc-accent); margin-bottom: 6px; }
.fsc-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 14px; }
.fsc-p { font-size: 15px; line-height: 1.6; color: #d1d5db; margin: 0 0 14px; }
.fsc-p strong { color: var(--fsc-text); }

.fsc-goalbox {
  background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.fsc-goal-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fsc-accent); }
.fsc-goal-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fsc-goal-value span { font-size: 15px; font-weight: 600; color: var(--fsc-muted); }
.fsc-goal-sub { font-size: 13px; color: var(--fsc-muted); }

.fsc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-bottom: 14px; }
.fsc-stat { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--fsc-line); }
.fsc-stat span { color: var(--fsc-muted); }
.fsc-stat strong { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 480px) { .fsc-stats { grid-template-columns: 1fr; } }

.fsc-stars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fsc-star { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fsc-muted); }
.fsc-star span { font-size: 18px; width: 20px; text-align: center; color: #4b5563; }
.fsc-star.on { color: var(--fsc-text); }
.fsc-star.on span { color: var(--fsc-accent); }

.fsc-rules { margin: 0 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--fsc-muted); }
.fsc-rules li { margin-bottom: 4px; }
.fsc-tips { margin-top: 4px; }
.fsc-tips-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fsc-muted); margin-bottom: 6px; }
.fsc-tip {
  font-size: 13.5px; line-height: 1.5; color: #e5e7eb;
  background: var(--fsc-panel-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px;
}

.fsc-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  position: sticky; bottom: -20px; margin: 8px -24px -20px; padding: 12px 24px 20px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), var(--fsc-panel) 30%);
}
.fsc-btn {
  font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  background: var(--fsc-panel-2); color: var(--fsc-text); border: 1px solid var(--fsc-line);
  transition: border-color 0.15s, transform 0.12s;
}
.fsc-btn:hover { border-color: #4b5563; }
.fsc-btn:focus-visible { outline: 2px solid var(--fsc-accent); outline-offset: 2px; }
.fsc-btn-primary { background: var(--fsc-accent); color: #111827; border-color: transparent; }
.fsc-btn-primary:hover { transform: translateY(-1px); border-color: transparent; }

/* ── Tutoriel : visite guidée avec projecteur ──────────────────────── */
.fsc-tour { position: fixed; inset: 0; z-index: 10001; animation: fsc-fade 0.18s ease-out; }
.fsc-tour-hole {
  position: fixed; border-radius: 12px; pointer-events: none;
  border: 2px solid var(--fsc-accent);
  box-shadow: 0 0 0 9999px rgba(3, 7, 18, 0.74), 0 0 24px rgba(245, 158, 11, 0.35);
  transition: left 0.28s ease, top 0.28s ease, width 0.28s ease, height 0.28s ease;
}
.fsc-tour-center { background: rgba(3, 7, 18, 0.74); }
/* Le temps qu'une fenêtre de démonstration s'ouvre : on ne montre ni carte ni projecteur */
.fsc-tour-wait .fsc-tour-card, .fsc-tour-wait .fsc-tour-hole { opacity: 0; }
.fsc-tour-card, .fsc-tour-hole { transition-property: left, top, width, height, opacity; }
.fsc-tour-center .fsc-tour-hole { display: none; }
.fsc-tour-card {
  position: fixed; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--fsc-panel); color: var(--fsc-text);
  border: 1px solid var(--fsc-line); border-top: 3px solid var(--fsc-accent);
  border-radius: 14px; padding: 18px 20px 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transition: left 0.28s ease, top 0.28s ease;
}
.fsc-tour-top { display: flex; justify-content: space-between; align-items: baseline; }
.fsc-tour-count { font-size: 12px; color: var(--fsc-muted); font-variant-numeric: tabular-nums; }
.fsc-tour-title { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin: 2px 0 10px; }
.fsc-tour-body { font-size: 14px; line-height: 1.6; color: #d1d5db; }
.fsc-tour-body p { margin: 0 0 10px; }
.fsc-tour-body strong { color: var(--fsc-text); }
.fsc-tour-list { margin: 0 0 10px; padding-left: 18px; }
.fsc-tour-list li { margin-bottom: 7px; }
.fsc-tour-where {
  font-size: 12.5px; color: var(--fsc-muted); background: var(--fsc-panel-2);
  border-radius: 8px; padding: 6px 10px;
}
.fsc-tour-table { width: 100%; border-collapse: collapse; margin: 2px 0 8px; font-size: 13.5px; }
.fsc-tour-table td { padding: 7px 0; border-bottom: 1px solid var(--fsc-line); vertical-align: top; }
.fsc-tour-table td:last-child { text-align: right; font-weight: 700; color: var(--fsc-text); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.fsc-tour-table small { display: block; font-size: 11.5px; font-weight: 400; color: var(--fsc-muted); }
.fsc-tour-note { font-size: 12.5px; color: var(--fsc-muted); }
.fsc-tour-progress { height: 3px; background: var(--fsc-panel-2); border-radius: 999px; margin: 12px 0; overflow: hidden; }
.fsc-tour-progress span { display: block; height: 100%; background: var(--fsc-accent); transition: width 0.28s ease; }
.fsc-tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fsc-tour-nav { display: flex; gap: 8px; }
.fsc-tour-skip { background: none; border: 0; color: var(--fsc-muted); font-size: 13px; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.fsc-tour-skip:hover { color: var(--fsc-text); }
.fsc-tour-skip:focus-visible { outline: 2px solid var(--fsc-accent); outline-offset: 2px; }

/* ── Gestion immobilière (module fiscalité, barre latérale) ─────────── */
.fsc-nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--fsc-accent); color: #111827;
}
.fsc-nav-badge[hidden] { display: none; }
.fsc-gi {
  width: 100%; max-width: 1180px; height: min(880px, calc(100vh - 32px));
  display: flex; flex-direction: column;
  background: var(--fsc-panel); color: var(--fsc-text);
  border: 1px solid var(--fsc-line); border-top: 3px solid var(--fsc-accent);
  border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: fsc-rise 0.22s ease-out; overflow: hidden;
}
.fsc-gi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 0; }
.fsc-gi-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.fsc-gi-close {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 16px;
  background: var(--fsc-panel-2); color: var(--fsc-muted); border: 1px solid var(--fsc-line);
}
.fsc-gi-close:hover { color: var(--fsc-text); border-color: #4b5563; }
.fsc-gi-tabs { display: flex; gap: 4px; padding: 14px 24px 0; border-bottom: 1px solid var(--fsc-line); overflow-x: auto; scrollbar-width: none; }
.fsc-gi-tab {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--fsc-muted); margin-bottom: -1px;
}
.fsc-gi-tab:hover { color: var(--fsc-text); }
.fsc-gi-tab.on { color: var(--fsc-text); border-bottom-color: var(--fsc-accent); }
.fsc-gi-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.fsc-gi-close:focus-visible, .fsc-gi-tab:focus-visible, .fsc-gi-btn:focus-visible, .fsc-gi-choice:focus-visible { outline: 2px solid var(--fsc-accent); outline-offset: 2px; }

.fsc-gi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.fsc-gi-tile { background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.fsc-gi-tile-l { font-size: 12px; color: var(--fsc-muted); font-weight: 600; }
.fsc-gi-tile-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.fsc-gi-tile-s { font-size: 11.5px; color: var(--fsc-muted); line-height: 1.4; }
.fsc-gi-tile.accent { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
.fsc-gi-tile.accent .fsc-gi-tile-v { color: var(--fsc-accent); }
.fsc-gi-tile.good .fsc-gi-tile-v { color: var(--fsc-good); }
.fsc-gi-tile.bad .fsc-gi-tile-v { color: #f87171; }

.fsc-gi-sec { margin-bottom: 20px; }
.fsc-gi-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fsc-gi-sec-h h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fsc-muted); margin: 0; }
.fsc-gi-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fsc-gi-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 900px) { .fsc-gi-2, .fsc-gi-cols { grid-template-columns: 1fr; } }

.fsc-gi-occ { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--fsc-panel-2); }
.fsc-gi-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--fsc-muted); }
.fsc-gi-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fsc-gi-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fsc-gi-legend strong { color: var(--fsc-text); font-variant-numeric: tabular-nums; }
.fsc-gi-occ-loue { background: #34d399; }
.fsc-gi-occ-annonce { background: #60a5fa; }
.fsc-gi-occ-vide { background: #f87171; }
.fsc-gi-occ-travaux { background: #fbbf24; }
.fsc-gi-occ-vente { background: #a78bfa; }

.fsc-gi-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.fsc-gi-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--fsc-line); font-size: 13.5px; }
.fsc-gi-kv span { color: var(--fsc-muted); }
.fsc-gi-kv strong { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.fsc-gi-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fsc-gi-alerts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--fsc-panel-2); border-left: 3px solid #60a5fa; }
.fsc-gi-alerts li.warn { border-left-color: var(--fsc-accent); }
.fsc-gi-alerts p { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.45; color: #e5e7eb; }

.fsc-gi-btn {
  font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  background: var(--fsc-panel); color: var(--fsc-text); border: 1px solid var(--fsc-line);
}
.fsc-gi-btn:hover:not(:disabled) { border-color: #6b7280; }
.fsc-gi-btn.primary { background: var(--fsc-accent); color: #111827; border-color: transparent; }
.fsc-gi-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.fsc-gi-actions { margin-top: 12px; }
.fsc-gi-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fsc-bg); border: 1px solid var(--fsc-line); }
.fsc-gi-seg .fsc-gi-btn { border: 0; background: none; padding: 4px 9px; font-size: 12px; color: var(--fsc-muted); }
.fsc-gi-seg .fsc-gi-btn.primary { background: var(--fsc-accent); color: #111827; }

.fsc-gi-tablewrap { overflow-x: auto; border: 1px solid var(--fsc-line); border-radius: 12px; }
.fsc-gi-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 920px; }
.fsc-gi-table.compact { min-width: 560px; }
.fsc-gi-table th { position: sticky; top: 0; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fsc-muted); background: var(--fsc-panel-2); padding: 9px 8px; white-space: nowrap; }
.fsc-gi-table td { padding: 9px 8px; border-top: 1px solid var(--fsc-line); vertical-align: middle; }
.fsc-gi-table small, .fsc-gi-calc small { display: block; font-size: 11.5px; color: var(--fsc-muted); margin-top: 2px; }
.fsc-gi-table .n, .fsc-gi-calc .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fsc-gi-table .pos { color: var(--fsc-good); }
.fsc-gi-table .neg { color: #f87171; }
.fsc-gi-table tfoot td { font-weight: 700; background: rgba(255, 255, 255, 0.02); }
.fsc-gi-table tr.best td { background: rgba(52, 211, 153, 0.08); }
.fsc-gi-table tr.best td:first-child { box-shadow: inset 3px 0 0 var(--fsc-good); }
.fsc-gi-name { min-width: 160px; }
.fsc-gi-name strong { font-weight: 600; }
.fsc-gi-row-focus td { background: rgba(245, 158, 11, 0.10); }
.fsc-gi-status { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--fsc-panel-2); }
.fsc-gi-status.loue { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.fsc-gi-status.annonce { color: #60a5fa; background: rgba(96, 165, 250, 0.12); }
.fsc-gi-status.vide { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.fsc-gi-status.travaux { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.fsc-gi-status.vente { color: #a78bfa; background: rgba(167, 139, 250, 0.12); }
.fsc-gi-chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--fsc-panel-2); color: #d1d5db; border: 1px solid var(--fsc-line); white-space: nowrap; }
.fsc-gi-chip.sci { color: var(--fsc-accent); border-color: rgba(245, 158, 11, 0.4); }

.fsc-gi-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .fsc-gi-choices { grid-template-columns: 1fr; } }
.fsc-gi-choice {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 12px; color: var(--fsc-text);
  background: var(--fsc-panel-2); border: 1px solid var(--fsc-line);
}
.fsc-gi-choice:hover:not(:disabled) { border-color: #6b7280; }
.fsc-gi-choice:disabled { cursor: default; }
.fsc-gi-choice:disabled:not(.on) { opacity: 0.5; }
.fsc-gi-choice.on { border-color: var(--fsc-accent); background: rgba(245, 158, 11, 0.08); }
.fsc-gi-choice-h { font-size: 14px; font-weight: 700; }
.fsc-gi-choice-h em { font-style: normal; font-size: 11px; font-weight: 700; color: #111827; background: var(--fsc-accent); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.fsc-gi-choice-v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fsc-gi-choice-v small { font-size: 13px; color: var(--fsc-muted); font-weight: 600; margin-left: 2px; }
.fsc-gi-choice-d { font-size: 12.5px; line-height: 1.5; color: var(--fsc-muted); }

.fsc-gi-calc { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--fsc-panel-2); border-radius: 12px; overflow: hidden; }
.fsc-gi-calc caption { caption-side: top; text-align: left; font-size: 13px; font-weight: 700; padding: 0 0 6px; color: var(--fsc-text); }
.fsc-gi-calc td { padding: 7px 12px; border-top: 1px solid var(--fsc-line); }
.fsc-gi-calc tr:first-child td { border-top: 0; }
.fsc-gi-calc tr.tot td { font-weight: 700; color: var(--fsc-text); }
.fsc-gi-calc td:first-child { color: var(--fsc-muted); }
.fsc-gi-calc tr.tot td:first-child { color: var(--fsc-text); }

.fsc-gi-gauge { margin-bottom: 12px; }
.fsc-gi-gauge-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.fsc-gi-gauge-h span { color: var(--fsc-muted); }
.fsc-gi-gauge-h strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.fsc-gi-gauge small { font-size: 12px; color: var(--fsc-accent); }
.fsc-gi-bar { height: 8px; border-radius: 999px; background: var(--fsc-panel-2); overflow: hidden; }
.fsc-gi-bar span { display: block; height: 100%; background: #60a5fa; border-radius: 999px; }
.fsc-gi-bar span.over { background: var(--fsc-accent); }

.fsc-gi-list { list-style: disc; margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: #d1d5db; }
.fsc-gi-list li { margin-bottom: 6px; }
.fsc-gi-note { font-size: 12.5px; line-height: 1.55; color: var(--fsc-muted); margin: 10px 0 0; }
.fsc-gi-note strong { color: #d1d5db; }
.fsc-gi-empty { font-size: 14px; line-height: 1.55; color: var(--fsc-muted); background: var(--fsc-panel-2); border: 1px dashed var(--fsc-line); border-radius: 12px; padding: 18px; text-align: center; }
.fsc-gi-empty strong { color: var(--fsc-text); }

@media (max-width: 640px) {
  .fsc-gi-overlay { padding: 0; }
  .fsc-gi { height: 100vh; max-width: none; border-radius: 0; }
  .fsc-gi-head, .fsc-gi-body { padding-left: 16px; padding-right: 16px; }
  .fsc-gi-tabs { padding-left: 16px; padding-right: 16px; }
}

@keyframes fsc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fsc-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fsc-overlay, .fsc-modal, .fsc-tour, .fsc-gi { animation: none; }
  .fsc-hud-fill, .fsc-tour-hole, .fsc-tour-card, .fsc-tour-progress span { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Tempête (module tempete) — préfixe fsc-tp-
   ══════════════════════════════════════════════════════════════════════ */
.fsc-tp-arch { display: flex; gap: 12px; align-items: flex-start; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.fsc-tp-arch-emoji { font-size: 26px; line-height: 1; }
.fsc-tp-arch-name { font-size: 15px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fsc-tp-arch-pitch { font-size: 13px; line-height: 1.5; color: var(--fsc-muted); margin-top: 4px; }
.fsc-tp-code { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--fsc-accent); border: 1px solid var(--fsc-accent); border-radius: 6px; padding: 1px 6px; }
.fsc-tp-goal { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.28); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.fsc-tp-goal .fsc-goal-value { font-size: 24px; }
.fsc-tp-goal strong { color: #fca5a5; font-variant-numeric: tabular-nums; }
.fsc-tp-h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fsc-muted); margin: 16px 0 8px; display: flex; align-items: center; justify-content: space-between; }
.fsc-tp-score { font-size: 13px; color: var(--fsc-text); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

.fsc-tp-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--fsc-panel-2); margin-bottom: 8px; }
.fsc-tp-seg { height: 100%; }
.fsc-tp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--fsc-muted); margin-bottom: 12px; }
.fsc-tp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fsc-tp-legend strong { color: var(--fsc-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fsc-tp-legend em { font-style: normal; }
.fsc-tp-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.fsc-tp-immo { background: #34d399; }
.fsc-tp-actions { background: #60a5fa; }
.fsc-tp-etf { background: #a78bfa; }
.fsc-tp-oblig { background: #f472b6; }
.fsc-tp-livret { background: #fbbf24; }
.fsc-tp-compte { background: #94a3b8; }

.fsc-tp-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.fsc-tp-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--fsc-panel-2); border-radius: 10px; }
.fsc-tp-ic { font-size: 18px; width: 22px; text-align: center; }
.fsc-tp-item-main { flex: 1; min-width: 0; }
.fsc-tp-item-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsc-tp-item-sub { font-size: 12px; color: var(--fsc-muted); }
.fsc-tp-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 13px; font-variant-numeric: tabular-nums; }
.fsc-tp-tag { font-size: 10.5px; font-weight: 700; color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border-radius: 6px; padding: 1px 6px; }
.fsc-tp-tag.bad { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }
.fsc-tp-rows .fsc-stat em { font-style: normal; }

.fsc-tp-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
@media (max-width: 480px) { .fsc-tp-gauges { grid-template-columns: 1fr; } }
.fsc-tp-gauge { background: var(--fsc-panel-2); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; }
.fsc-tp-gauge.weak { border-color: rgba(248, 113, 113, 0.55); }
.fsc-tp-gauge-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.fsc-tp-gauge-top strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.fsc-tp-gauge-top strong span { font-size: 11px; color: var(--fsc-muted); font-weight: 500; }
.fsc-tp-gauge-bar { height: 6px; background: var(--fsc-bg); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.fsc-tp-gauge-bar span { display: block; height: 100%; background: var(--fsc-accent); border-radius: 999px; }
.fsc-tp-gauge.weak .fsc-tp-gauge-bar span { background: #f87171; }
.fsc-tp-gauge-help { font-size: 11.5px; line-height: 1.4; color: var(--fsc-muted); }

.fsc-tp-treso { font-weight: 600; font-variant-numeric: tabular-nums; }
.fsc-tp-treso.warn { color: #fbbf24; }
.fsc-tp-treso.red { color: #f87171; }

/* Tempête — cartes d'imprévus */
.fsc-tp-card { border-top-width: 4px; }
.fsc-tp-lines { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fsc-tp-lines li { font-size: 14px; line-height: 1.5; color: #e5e7eb; background: var(--fsc-panel-2); border-radius: 10px; padding: 8px 12px; }
.fsc-tp-lines li strong { color: var(--fsc-text); font-variant-numeric: tabular-nums; }
.fsc-tp-due { font-size: 13.5px; line-height: 1.5; color: #fde68a; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.fsc-tp-cover { font-size: 13.5px; line-height: 1.5; color: #a7f3d0; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.fsc-tp-card .fsc-actions { flex-wrap: wrap; }

/* Tempête — menu Protection */
.fsc-tp-protect { max-width: 640px; }
.fsc-tp-prow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--fsc-panel-2); border-radius: 10px; margin-bottom: 6px; }
.fsc-tp-prow-main { flex: 1; min-width: 0; }
.fsc-tp-prow-name { font-size: 13.5px; font-weight: 600; }
.fsc-tp-prow-sub { font-size: 12px; line-height: 1.4; color: var(--fsc-muted); }
.fsc-tp-prow-sub em { color: #fca5a5; font-style: normal; }
.fsc-tp-prow-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fsc-tp-prow-price { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--fsc-muted); min-width: 70px; text-align: right; }
.fsc-tp-status { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.fsc-tp-status.on { color: #6ee7b7; background: rgba(52, 211, 153, 0.14); }
.fsc-tp-status.wait { color: #fde68a; background: rgba(251, 191, 36, 0.14); }
.fsc-tp-status.off { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }
.fsc-tp-pbtn { padding: 6px 12px; font-size: 12.5px; }
@media (max-width: 560px) { .fsc-tp-prow { flex-direction: column; align-items: stretch; } .fsc-tp-prow-side { justify-content: space-between; } }

/* Tempête — chrono du tour (au-dessus de « Terminer le tour ») */
.fsc-tp-chrono { border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.08); border-radius: 10px; padding: 8px 10px; transition: border-color .2s, background .2s; }
.fsc-tp-chrono-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #cbd5e1; }
.fsc-tp-chrono-top strong { font-size: 18px; font-variant-numeric: tabular-nums; color: #f8fafc; }
.fsc-tp-chrono-bar { height: 5px; margin-top: 6px; border-radius: 99px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.fsc-tp-chrono-bar span { display: block; height: 100%; background: #38bdf8; border-radius: inherit; transition: width .25s linear; }
.fsc-tp-chrono.calm { border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.06); }
.fsc-tp-chrono.calm strong { font-size: 12px; color: #94a3b8; }
.fsc-tp-chrono.calm .fsc-tp-chrono-bar span { background: rgba(148, 163, 184, 0.45); }
.fsc-tp-chrono.paused { opacity: .7; }
.fsc-tp-chrono.warn { border-color: rgba(251, 191, 36, 0.55); background: rgba(251, 191, 36, 0.1); }
.fsc-tp-chrono.warn .fsc-tp-chrono-bar span { background: #fbbf24; }
.fsc-tp-chrono.urgent { border-color: rgba(248, 113, 113, 0.7); background: rgba(248, 113, 113, 0.14); }
.fsc-tp-chrono.urgent strong { color: #fca5a5; }
.fsc-tp-chrono.urgent .fsc-tp-chrono-bar span { background: #f87171; }
.fsc-tp-chrono.urgent:not(.paused) { animation: fsc-tp-pulse 1s ease-in-out infinite; }
@keyframes fsc-tp-pulse { 50% { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18); } }

/* Tempête — compte à rebours d'une carte à choix */
.fsc-tp-countdown { margin-top: 12px; border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); border-radius: 10px; padding: 9px 12px; }
.fsc-tp-countdown-top { display: flex; justify-content: space-between; font-size: 13px; color: #fde68a; }
.fsc-tp-countdown-top strong { font-variant-numeric: tabular-nums; }
.fsc-tp-countdown-bar { height: 5px; margin-top: 6px; border-radius: 99px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.fsc-tp-countdown-bar span { display: block; width: 100%; height: 100%; background: #fbbf24; border-radius: inherit; transition: width .25s linear; }
.fsc-tp-countdown-sub { margin-top: 6px; font-size: 12px; color: #cbd5e1; }
.fsc-tp-countdown.urgent { border-color: rgba(248, 113, 113, 0.7); background: rgba(248, 113, 113, 0.12); }
.fsc-tp-countdown.urgent .fsc-tp-countdown-bar span { background: #f87171; }
@media (prefers-reduced-motion: reduce) { .fsc-tp-chrono.urgent:not(.paused) { animation: none; } .fsc-tp-chrono-bar span, .fsc-tp-countdown-bar span { transition: none; } }

/* ══════════════════════════════════════════════════════════════════════
   Rentier II (module marchand) — préfixe fsc-mb-
   ══════════════════════════════════════════════════════════════════════ */
.fsc-mb-stars { letter-spacing: 0.12em; color: var(--fsc-accent); }
.fsc-mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
@media (max-width: 640px) { .fsc-mb-grid { grid-template-columns: 1fr; } }
.fsc-mb-card { display: flex; flex-direction: column; gap: 10px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: 14px; padding: 14px; min-width: 0; }
.fsc-mb-card.fsc-mb-adj { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.06); }
.fsc-mb-card-h { display: flex; gap: 10px; align-items: flex-start; }
.fsc-mb-photo { margin: -14px -14px 0; height: 150px; overflow: hidden; border-radius: 13px 13px 0 0; background: var(--fsc-panel); }
.fsc-mb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fsc-mb-photo.fsc-mb-photo-wide { margin: 0 0 14px; height: 170px; border-radius: 12px; }
.fsc-mb-thumb { float: left; width: 42px; height: 42px; object-fit: cover; border-radius: 8px; margin-right: 10px; }
.fsc-mb-emoji { font-size: 26px; line-height: 1; }
.fsc-mb-card-t { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.fsc-mb-card-s { font-size: 12px; color: var(--fsc-muted); margin-top: 2px; }
.fsc-mb-card-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.fsc-mb-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fsc-mb-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--fsc-line); font-size: 13px; }
.fsc-mb-kv > div:last-child { border-bottom: 0; }
.fsc-mb-kv span { color: var(--fsc-muted); }
.fsc-mb-kv strong { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.fsc-mb-kv small { color: var(--fsc-muted); font-weight: 400; }
.fsc-mb-big { font-size: 16px; font-weight: 800; }
.fsc-mb-good { color: var(--fsc-good); }
.fsc-mb-bad { color: #f87171; }
.fsc-mb-note { font-size: 13px; line-height: 1.5; color: #d1d5db; margin: 0; }
.fsc-mb-note strong { color: var(--fsc-text); }
.fsc-mb-err { font-size: 13px; line-height: 1.5; color: #fca5a5; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
.fsc-mb-bilan { background: var(--fsc-bg); border: 1px solid var(--fsc-line); border-radius: 10px; padding: 8px 12px; }
.fsc-mb-bilan-h { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fsc-muted); margin-bottom: 2px; }
.fsc-mb-nego { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fsc-mb-nego .fsc-gi-btn { padding: 4px 8px; font-size: 12px; }
.fsc-gi-chip.fsc-mb-stock { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.4); }
.fsc-mb-table { min-width: 1040px; }
.fsc-mb-table .fsc-mb-actions { flex-wrap: nowrap; justify-content: flex-end; }
/* Mes biens : bascule Patrimoine / Loyers & impôt (la vue loyers reprend l'ex-Gestion immobilière) */
.fsc-mb-vuebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 14px; }
.fsc-mb-vuebar ~ .fsc-gi-legend { margin-bottom: 16px; }
.fsc-mb-table .fsc-gi-seg { white-space: nowrap; }
.fsc-mb-pitch p { font-size: 14px; line-height: 1.6; color: #d1d5db; margin: 0 0 10px; }
.fsc-mb-pitch .fsc-mb-actions { margin-top: 12px; }
.fsc-mb-journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fsc-mb-journal li { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; padding: 6px 10px; border-radius: 8px; background: var(--fsc-panel-2); }
.fsc-mb-journal span { flex-shrink: 0; width: 42px; color: var(--fsc-muted); font-variant-numeric: tabular-nums; }
.fsc-mb-journal p { margin: 0; color: #e5e7eb; }

/* Fenêtres secondaires (au-dessus du tableau de bord) */
.fsc-mb-layer { z-index: 10002; }
.fsc-mb-modal { max-width: 620px; }
.fsc-mb-plan { max-width: 760px; }
.fsc-mb-layer .fsc-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.fsc-mb-h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fsc-muted); margin: 4px 0 8px; }
.fsc-mb-choices { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fsc-mb-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); cursor: pointer; font-size: 13.5px; }
.fsc-mb-radio:has(input:checked) { border-color: var(--fsc-accent); background: rgba(245, 158, 11, 0.08); }
.fsc-mb-radio input { margin-top: 3px; accent-color: var(--fsc-accent); }
.fsc-mb-radio small { display: block; color: var(--fsc-muted); font-size: 12px; margin-top: 2px; }
.fsc-mb-radio.off { opacity: 0.55; cursor: not-allowed; }
.fsc-mb-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 12px 0 6px; cursor: pointer; }
.fsc-mb-check input { accent-color: var(--fsc-accent); }

/* Planificateur de division */
.fsc-mb-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.fsc-mb-step { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--fsc-line); }
.fsc-mb-step strong { font-size: 14px; }
.fsc-mb-step small { display: block; font-size: 12px; color: var(--fsc-muted); }
.fsc-mb-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--fsc-bg); border: 1px solid var(--fsc-line); border-radius: 10px; padding: 2px; }
.fsc-mb-stepper button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--fsc-panel-2); color: var(--fsc-text); font-size: 18px; font-weight: 700; cursor: pointer; }
.fsc-mb-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.fsc-mb-stepper button:focus-visible { outline: 2px solid var(--fsc-accent); outline-offset: 1px; }
.fsc-mb-stepper span { min-width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.fsc-mb-surface { margin: 12px 0 8px; }
.fsc-mb-surface small { display: block; font-size: 12px; color: var(--fsc-muted); margin-top: 6px; line-height: 1.45; }
.fsc-mb-lots { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.fsc-mb-plan .fsc-gi-2 { gap: 12px; margin-top: 8px; }

/* Salle des ventes en direct */
.fsc-mb-salle { max-width: 600px; }
.fsc-mb-arena { text-align: center; background: var(--fsc-bg); border: 1px solid var(--fsc-line); border-radius: 14px; padding: 16px 14px 12px; margin: 12px 0 10px; }
.fsc-mb-arena-l { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fsc-muted); }
.fsc-mb-price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; margin: 4px 0; }
.fsc-mb-leader { font-size: 13.5px; color: #d1d5db; min-height: 20px; }
.fsc-mb-leader.me { color: var(--fsc-good); font-weight: 700; }
.fsc-mb-bougie { height: 6px; border-radius: 999px; background: var(--fsc-panel-2); overflow: hidden; margin: 12px auto 6px; max-width: 360px; }
.fsc-mb-bougie span { display: block; height: 100%; width: 100%; background: var(--fsc-accent); border-radius: inherit; transition: width 0.2s linear; }
.fsc-mb-bougie-l { font-size: 12px; color: var(--fsc-muted); min-height: 16px; }
.fsc-mb-log { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 3px; min-height: 30px; }
.fsc-mb-log li { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--fsc-panel-2); }
.fsc-mb-log li:first-child { outline: 1px solid var(--fsc-line); }
.fsc-mb-log li.me { color: var(--fsc-good); }
.fsc-mb-log strong { font-variant-numeric: tabular-nums; }
.fsc-mb-plafond { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; font-size: 13px; }
.fsc-mb-plafond input { min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--fsc-line); background: var(--fsc-bg); color: var(--fsc-text); font-variant-numeric: tabular-nums; }
.fsc-mb-plafond input:focus-visible { outline: 2px solid var(--fsc-accent); outline-offset: 1px; }
.fsc-mb-plafond small { grid-column: 1 / -1; color: var(--fsc-muted); font-size: 12px; }
.fsc-mb-result { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); font-size: 14px; }
.fsc-mb-result.win { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.08); }
.fsc-mb-result p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #d1d5db; }
@media (prefers-reduced-motion: reduce) { .fsc-mb-bougie span { transition: none; } }
.fsc-mb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; border: 1.5px solid var(--fsc-accent); vertical-align: 1px; }
.fsc-mb-dot.on { background: var(--fsc-accent); }
.fsc-mb-stars b { font-weight: 700; letter-spacing: 0; }

/* ── Rentier II : Marché / Mon empire, poches de détention, guide ───────── */
.fsc-mb-head-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fsc-mb-howto { background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.fsc-mb-howto > p { font-size: 13.5px; line-height: 1.55; color: #d1d5db; margin: 0 0 10px; }
.fsc-mb-howto > p strong { color: var(--fsc-text); }
.fsc-mb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 720px) { .fsc-mb-steps { grid-template-columns: 1fr; } }
.fsc-mb-steps li { display: flex; gap: 10px; align-items: flex-start; background: var(--fsc-bg); border: 1px solid var(--fsc-line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; color: var(--fsc-muted); }
.fsc-mb-steps b { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--fsc-accent); color: #111827; font-size: 12px; font-weight: 800; }
.fsc-mb-steps strong { display: block; color: var(--fsc-text); font-size: 13.5px; margin-bottom: 2px; }
.fsc-mb-details { margin-top: 16px; border: 1px solid var(--fsc-line); border-radius: 12px; padding: 0 14px; background: var(--fsc-panel-2); }
.fsc-mb-details summary { cursor: pointer; padding: 11px 0; font-size: 13.5px; font-weight: 700; color: var(--fsc-text); }
.fsc-mb-details summary:focus-visible { outline: 2px solid var(--fsc-accent); outline-offset: 2px; border-radius: 6px; }
.fsc-mb-details[open] summary { border-bottom: 1px solid var(--fsc-line); margin-bottom: 10px; }
.fsc-mb-details .fsc-gi-list { padding-bottom: 12px; }
.fsc-mb-lead { font-size: 14px; line-height: 1.6; color: #d1d5db; margin: 0 0 14px; }
.fsc-mb-lead strong { color: var(--fsc-text); }
.fsc-mb-poches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 820px) { .fsc-mb-poches { grid-template-columns: 1fr; } }
.fsc-mb-poche { display: flex; flex-direction: column; gap: 8px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-top: 3px solid var(--fsc-muted); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.fsc-mb-poche-sci { border-top-color: var(--fsc-accent); }
.fsc-mb-poche-stock { border-top-color: #7dd3fc; }
.fsc-mb-poche-h { display: flex; gap: 10px; align-items: flex-start; }
.fsc-mb-poche-h > span { font-size: 24px; line-height: 1; }
.fsc-mb-poche-h strong { display: block; font-size: 15px; }
.fsc-mb-poche-h small { display: block; font-size: 12.5px; color: var(--fsc-muted); margin-top: 2px; }
.fsc-mb-poche .fsc-mb-kv > div { font-size: 12.5px; flex-direction: column; align-items: flex-start; gap: 1px; }
.fsc-mb-poche .fsc-mb-kv strong { font-weight: 500; text-align: left; }
.fsc-mb-rule .fsc-gi-btn { margin-left: 8px; }
.fsc-mb-poche-f { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--fsc-line); font-size: 13px; color: #d1d5db; }
.fsc-mb-poche-rule { font-size: 12.5px; line-height: 1.5; color: var(--fsc-muted); margin: -4px 0 10px; }
.fsc-mb-rule { font-size: 13px; line-height: 1.5; color: #d1d5db; background: rgba(245, 158, 11, 0.07); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 10px; padding: 9px 12px; margin: 4px 0 16px; }
.fsc-mb-rule strong { color: var(--fsc-text); }
.fsc-mb-transfert { max-width: 620px; }
.fsc-mb-transfert .fsc-mb-note { margin: 10px 0; }
.fsc-mb-guide { max-width: 860px; }
.fsc-mb-guide .fsc-body { max-height: min(62vh, 640px); overflow-y: auto; }
.fsc-mb-guide-duo, .fsc-mb-guide-credits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 12px; }
.fsc-mb-guide-credits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .fsc-mb-guide-duo, .fsc-mb-guide-credits { grid-template-columns: 1fr; } }
.fsc-mb-guide-duo > div, .fsc-mb-guide-credits > div { background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: 12px; padding: 12px 14px; }
.fsc-mb-guide-duo strong, .fsc-mb-guide-credits strong { font-size: 14.5px; }
.fsc-mb-guide-duo p, .fsc-mb-guide-credits p { font-size: 13px; line-height: 1.5; color: #d1d5db; margin: 6px 0; }
.fsc-mb-guide-start { margin-top: 14px; }
.fsc-mb-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; }
.fsc-mb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--fsc-line); }
.fsc-mb-dots i.on { background: var(--fsc-accent); width: 18px; border-radius: 999px; }

/* ── Le Ticket d'Or (module ticketor) ─────────────────────────────────────── */
/* Cartes d'événement et HUD : grammaire sombre des scénarios */
.fsc-to-card { max-width: 600px; }
.fsc-to-card:focus { outline: none; }
.fsc-to-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.fsc-to-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; cursor: pointer;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--fsc-text);
  background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); border-radius: 12px; padding: 12px 14px; transition: border-color 0.15s;
}
.fsc-to-opt:hover:not([disabled]) { border-color: var(--fsc-accent); }
.fsc-to-opt:focus-visible { outline: 2px solid var(--fsc-accent); outline-offset: 2px; }
.fsc-to-opt em { font-size: 12.5px; font-weight: 500; font-style: normal; color: var(--fsc-muted); font-variant-numeric: tabular-nums; }
.fsc-to-opt[disabled] { opacity: 0.5; cursor: not-allowed; }
.fsc-to-msg { border-left: 3px solid #60a5fa; }
.fsc-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.fsc-to-hud-b strong, .fsc-to-hud-v, .fsc-to-hud-r { font-variant-numeric: tabular-nums; }
.fsc-to-hud-b.good strong { color: #34d399; }
.fsc-to-hud-b.bad strong { color: #f87171; }
.fsc-to-hud-v { color: #34d399; }
.fsc-to-hud-r { color: #f87171; }
.fsc-to-score { text-align: center; border-radius: 14px; padding: 14px; margin-bottom: 12px; background: color-mix(in srgb, var(--fsc-accent) 10%, var(--fsc-panel-2)); border: 1px solid color-mix(in srgb, var(--fsc-accent) 40%, transparent); }
.fsc-to-score .fsc-goal-value { font-size: 40px; }
.fsc-to-ending { border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); }
.fsc-to-ending-t { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.fsc-to-ending p { font-size: 14px; line-height: 1.5; color: #d1d5db; margin: 0; }
.fsc-to-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fsc-to-badges span { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: var(--fsc-panel-2); border: 1px solid var(--fsc-line); }

/* Fenêtres DA 2027 (fv-modals.css) : départ en or, plaisirs en rose, placements = Bourse, entreprises = violet */
.fvm.fvm--or {
  --fvm-a: #b45309; --fvm-a2: #f59e0b; --fvm-deep: #6b2f06;
  --fvm-tint: #fffaf0; --fvm-soft: #fcefd2;
  --fvm-line: rgba(180, 83, 9, .13); --fvm-line2: rgba(180, 83, 9, .22);
  --fvm-ring: rgba(180, 83, 9, .14); --fvm-shadow: rgba(180, 83, 9, .28);
  --fvm-glow: rgba(245, 158, 11, .22);
  --fvm-brush: #fcd34d; --fvm-brush2: #fff1c2;
  --fvm-ink: #2a1a05; --fvm-ink2: #4a2f0e; --fvm-mut: #7a5b36; --fvm-dim: #a88c6a;
}
.fvm.fvm--plaisir {
  --fvm-a: #be185d; --fvm-a2: #ec4899; --fvm-deep: #5f0f36;
  --fvm-tint: #fff5f9; --fvm-soft: #fde3ef;
  --fvm-line: rgba(190, 24, 93, .12); --fvm-line2: rgba(190, 24, 93, .2);
  --fvm-ring: rgba(190, 24, 93, .13); --fvm-shadow: rgba(190, 24, 93, .28);
  --fvm-glow: rgba(236, 72, 153, .22);
  --fvm-brush: #f9a8d4; --fvm-brush2: #fce7f3;
  --fvm-ink: #2a0c1a; --fvm-ink2: #4a1d33; --fvm-mut: #7a5266; --fvm-dim: #a88a99;
}
.to-shell { width: min(1160px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; animation: fsc-rise 0.22s ease-out; }
.to-shell > .fvm-ban { flex: none; }
.to-shell > .to-main { flex: 1; overflow-y: auto; min-height: 0; max-height: none; margin: 0; padding: 0; }
.to-main > .fvm-body { padding-bottom: 22px; }
.to-foot { flex: none; border-top: 1px solid var(--fvm-line); background: #fff; padding-top: 14px; padding-bottom: 14px; }
.to-cart { order: -3; margin-right: auto; font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 14px; font-weight: 700; color: var(--fvm-ink); font-variant-numeric: tabular-nums; }
.to-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; margin-top: 10px; }
.to-grid--homes { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.to-pc { transition: border-color .15s, box-shadow .15s, transform .15s; }
.to-pc.is-on { border-color: var(--fvm-a); box-shadow: 0 0 0 4px var(--fvm-ring), 0 10px 28px rgba(13, 18, 51, .08); }
.to-ph { height: 140px; background: linear-gradient(140deg, var(--fvm-deep), var(--fvm-a) 60%, var(--fvm-a2)); }
.to-ph img { position: absolute; inset: 0; }
.to-ph-emo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; padding-bottom: 28px; }
.to-thumb { position: relative; background: linear-gradient(140deg, var(--fvm-deep), var(--fvm-a2)); }
.to-thumb .to-ph-emo { font-size: 28px; padding: 0; }
.to-thumb img { position: absolute; inset: 0; }
.to-small { font-size: 13px; font-weight: 600; color: var(--fvm-mut); letter-spacing: 0; margin-left: 2px; }
.to-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.45; color: var(--fvm-ink2); }
.to-vider { display: flex; justify-content: flex-end; }
.to-vider .fvm-q { flex: 0 0 auto; margin: 0; }
.to-shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.to-tabs { align-self: flex-start; }
.to-place { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.to-place-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 920px) { .to-place { grid-template-columns: 1fr; } .to-place-side { position: static; } }
.to-slider input[type=range] { width: 100%; margin: 4px 0 6px; }
.to-slider .fvm-lv { margin-bottom: 10px; }
.to-val { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 16px; font-weight: 800; color: var(--fvm-ink); font-variant-numeric: tabular-nums; }
.to-don { display: flex; align-items: center; gap: 12px; }
.to-vert { display: flex; flex-direction: column; gap: 4px; }
.to-vert.is-ok { border-color: rgba(5, 150, 105, .3); background: #f1fbf6; }
.to-vert.is-bad { border-color: rgba(214, 31, 69, .3); background: #fff3f5; }
.to-vert-v { font-size: 34px; line-height: 1.1; }
.to-vert.is-ok .to-vert-v { color: #047857; }
.to-vert.is-bad .to-vert-v { color: #d61f45; }
.to-bad { color: #ffc9cc; }
.to-envs { align-items: stretch; }
.to-env { display: flex; flex-direction: column; gap: 12px; }
.to-env-top { padding: 0; }
.to-env-role { margin: 0 !important; }
.to-env-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.to-env-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.to-rente { padding: 8px 12px; }
.to-link { background: none; border: 0; padding: 0; color: var(--fvm-a); cursor: pointer; text-decoration: underline; font: inherit; }
.to-own { padding: 10px 12px; }
.to-own-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.to-own-side .fvm-num { font-size: 16px; }
.to-donform { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.to-donform .fvm-lbl { flex-direction: column; align-items: flex-start; margin: 0; }
.to-select { height: 48px; min-width: 180px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--fvm-line2); background: #fff; color: var(--fvm-ink); font: 600 15px Inter, sans-serif; }
.to-joy > i { background: linear-gradient(90deg, #fb7185, #fbbf24 45%, #34d399) !important; }
.to-biz { padding: 0; }
.to-biz-st { display: block; margin-top: 6px; }
.to-biz-stats { margin-top: 12px; }
@media (max-width: 640px) { .to-grid { grid-template-columns: 1fr; } .to-don { flex-direction: column; align-items: stretch; } .to-don .fvm-inp--xs { width: 100%; } }

/* ── Objectif Million (module million) : PEA & Compte-titres ─────────────── */
.om-shell { width: min(1080px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; animation: fsc-rise 0.22s ease-out; }
.om-shell > .fvm-ban { flex: none; }
.om-shell > .om-main { flex: 1; overflow-y: auto; min-height: 0; max-height: none; margin: 0; padding: 0; }
.om-main > .fvm-body { padding-bottom: 22px; }
.om-foot { flex: none; border-top: 1px solid var(--fvm-line); background: #fff; padding-top: 14px; padding-bottom: 14px; }
.om-tabs { align-self: flex-start; }
.om-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--fvm-mut); }
.om-env { display: flex; flex-direction: column; gap: 12px; }
.om-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.om-amt { display: flex; gap: 8px; align-items: center; }
.om-amt .fvm-inp { width: 150px; }
.om-prod.is-out { opacity: .55; }
.om-emo { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--fvm-soft); }
.om-risk { flex: none; align-self: center; }
.om-buy { margin-top: 10px; }
.om-ligne .om-actions { margin-top: 10px; }
.om-h { margin-top: 6px; }
.om-log { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--fvm-ink2); }
.om-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 10px; }
.om-form .fvm-lbl { flex-direction: column; align-items: flex-start; margin: 0; gap: 6px; }
.om-form select { height: 44px; min-width: 200px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--fvm-line2); background: #fff; color: var(--fvm-ink); font: 600 14px Inter, sans-serif; }
.om-rules { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--fvm-ink2); }
.om-src { font-size: 12px; line-height: 1.5; margin-top: 10px; }
.om-skip-k { font-size: 11px; font-weight: 500; opacity: .7; margin-left: 6px; }
#om-skip[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 640px) { .om-amt { width: 100%; } .om-amt .fvm-inp { flex: 1; width: auto; } .om-form select { min-width: 0; width: 100%; } }
.om-nav-k { font-size: 11px; font-weight: 600; color: #6ee7b7; opacity: .8; }

/* Tableau de bord : 3 cartes simples (portefeuille, PEA, compte-titres), même
   habillage que les blocs du Sandbox (gris 900, bordure gris 800). La zone se
   fond dans la grille du Sandbox : portefeuille à côté du bloc joueur, puis
   PEA | compte-titres et les actualités sur toute la largeur. */
.om-zone { display: contents; }
.om-envs, .om-news { grid-column: 1 / -1; }
.om-envs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.om-envs .om-card-f { margin-top: auto; }
@media (max-width: 1100px) { .om-envs { grid-template-columns: 1fr; } }
#om-carte .om-map { flex: 1 0 220px; height: auto; }
.om-card { container: omcard / inline-size; background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 18px; color: #e5e7eb; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.om-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.om-card-h h3 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.om-sub { margin: 3px 0 0; font-size: 12.5px; color: #9ca3af; line-height: 1.45; }
.om-card-v { margin-left: auto; text-align: right; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.om-card-v b { font-size: 18px; color: #fff; }
.om-card-v span { font-size: 12.5px; font-weight: 600; }
.om-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.om-dot.is-pea, .om-split .is-pea { background: #10b981; }
.om-dot.is-cto, .om-split .is-cto { background: #60a5fa; }
.om-up { color: #34d399; }
.om-down { color: #f87171; }
.om-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.om-btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #374151; background: #1f2937; color: #e5e7eb; font: 600 13px Inter, sans-serif; cursor: pointer; transition: background .15s; }
.om-btn:hover { background: #273244; }
.om-btn--pri { background: #059669; border-color: #059669; color: #fff; }
.om-btn--pri:hover { background: #047857; }
.om-btn:focus-visible, .om-tile:focus-visible, .om-row:focus-visible, .om-une2-btn:focus-visible, .om-prono-o button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.om-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.om-stat { background: #0b1220; border: 1px solid #1f2937; border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-stat span { font-size: 11.5px; color: #9ca3af; }
.om-stat b { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-stat b.om-up { color: #34d399; }
.om-stat b.om-down { color: #f87171; }
.om-stat small { font-size: 11.5px; font-weight: 500; }
.om-split { display: flex; flex-direction: column; gap: 6px; }
.om-split-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: #1f2937; gap: 2px; }
.om-split-bar i { display: block; height: 100%; }
.om-split-leg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.om-split-leg span { display: inline-flex; align-items: center; gap: 6px; }
.om-split-leg i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.om-map { position: relative; height: 220px; border-radius: 8px; overflow: hidden; background: #0b1220; }
.om-map-cut { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #e5e7eb; opacity: .5; pointer-events: none; }
.om-tile { position: absolute; box-sizing: border-box; border: 2px solid #0b1220; border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px;
  text-align: left; color: #fff; background-color: #374151; cursor: pointer; overflow: hidden; font-family: Inter, sans-serif; }
.om-tile:hover { filter: brightness(1.15); }
.om-tile.is-cash { background: repeating-linear-gradient(135deg, #374151 0 6px, #2b3442 6px 12px); color: #d1d5db; }
.om-tile-n { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.om-tile-v { font-size: 11.5px; opacity: .9; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-tile.is-narrow { padding: 4px 5px; }
.om-tile.is-narrow .om-tile-n { font-size: 10.5px; }
.om-tile.is-narrow .om-tile-v, .om-tile.is-tiny > span { display: none; }
.om-note { margin: 0; font-size: 11.5px; color: #6b7280; line-height: 1.45; }
.om-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #60a5fa; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.om-link:hover { color: #93c5fd; }
.om-link:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; border-radius: 2px; }
/* Boule de neige : carte à la place de « Rente immobilière » + graphique par année (onglet « Boule de neige ») */
.om-boule-card { display: block; width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; background: linear-gradient(135deg, #0284c7, #0e7490); }
.om-boule-card:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.om-boule-card-k { color: #e0f2fe; }
.om-boule-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.om-boule-leg span { display: inline-flex; align-items: center; gap: 6px; }
.om-boule-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.om-boule-leg .is-a, .om-sb .is-a { background: #64748b; }
.om-boule-leg .is-g, .om-sb .is-g { background: #047857; }
.om-boule-leg .is-gg, .om-sb .is-gg { background: #34d399; }
.om-sb { display: flex; align-items: flex-end; gap: 3px; height: 180px; margin: 10px 0 4px; padding-bottom: 1px; border-bottom: 1px solid #374151; }
.om-sb-col { flex: 1 1 0; min-width: 2px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.om-sb-col.is-futur { height: 6px; align-self: flex-end; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(100, 116, 139, .35) 0 3px, transparent 3px 6px); }
.om-sb-col i { display: block; width: 100%; }
.om-sb-col i:first-child { border-radius: 3px 3px 0 0; }
.om-sb-col.is-now { opacity: .65; }
.om-sb-x { display: flex; justify-content: space-between; font-size: 11.5px; color: #6b7280; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
/* Ligne d'exemple du PRU (tutoriel + « Comprendre le PRU ») */
.om-pru-ex { margin: 4px 0 12px; padding: 12px 14px; border-radius: 10px; background: #0b1220; border: 1px solid #1f2937; font-size: 12.5px; line-height: 1.45; color: #9ca3af; font-variant-numeric: tabular-nums; }
.om-pru-ex b { color: #fff; }
.om-pru-ex b.om-up { color: #34d399; }
.om-pru-ex-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.om-pru-ex-h b { font-size: 13.5px; }
.om-pru-ex-buys { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.om-pru-ex-calc { margin: 4px 0 12px; color: #d1d5db; }
.om-pru-ex-bar { position: relative; height: 8px; margin: 0 6px; border-radius: 999px; background: #1f2937; }
.om-pru-ex-bar i { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.om-pru-ex-bar .om-pru-ex-gap { transform: translateY(-50%); height: 8px; border-radius: 999px; background: rgba(16, 185, 129, .45); }
.om-pru-ex-buy { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; display: inline-block; }
.om-pru-ex-pru { width: 4px; height: 18px; border-radius: 2px; background: #60a5fa; display: inline-block; }
.om-pru-ex-cours { width: 14px; height: 14px; border-radius: 50%; background: #10b981; border: 2px solid #0b1220; display: inline-block; }
.om-pru-ex-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 8px; }
.om-pru-ex-leg span { display: inline-flex; align-items: center; gap: 6px; }
.om-pru-ex-leg .om-pru-ex-pru { height: 12px; }
.om-pru-ex-leg .om-pru-ex-cours { width: 10px; height: 10px; border: 0; }
.om-pru-ex-res { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid #1f2937; color: #d1d5db; }
.om-pru-ex-pts { margin-top: 6px; font-size: 11.5px; }
.om-vide { margin: 0; padding: 14px; border-radius: 8px; background: #0b1220; border: 1px dashed #374151; font-size: 13px; color: #9ca3af; line-height: 1.5; }
.om-vide b { color: #e5e7eb; }
.om-table { display: flex; flex-direction: column; }
.om-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 84px 108px; align-items: center; gap: 8px; width: 100%; padding: 9px 4px;
  border: 0; border-top: 1px solid #1f2937; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.om-row:hover { background: #172033; }
.om-row--h { cursor: default; border-top: 0; padding-top: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.om-row--h:hover, .om-row.is-cash:hover { background: transparent; }
.om-row--h span:not(:first-child), .om-row-c { text-align: right; }
.om-row.is-cash { cursor: default; opacity: .8; }
.om-row-n { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.om-row-n b { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-row-n small { font-size: 11.5px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-row-c { font-size: 12.5px; color: #d1d5db; font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-row-c small { font-size: 11px; opacity: .85; }
.om-row-v { color: #fff; font-weight: 600; }
.om-card-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
@container omcard (max-width: 620px) {
  .om-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .om-row--h { display: none; }
  .om-row { grid-template-columns: auto 1fr auto; grid-template-areas: 'n n v' 'pru cours gain'; row-gap: 3px; column-gap: 12px; }
  .om-row .om-row-n { grid-area: n; }
  .om-row [data-l="Valeur"] { grid-area: v; }
  .om-row [data-l="PRU"] { grid-area: pru; text-align: left; font-size: 11.5px; }
  .om-row [data-l="Cours"] { grid-area: cours; text-align: left; font-size: 11.5px; }
  .om-row [data-l="Gain"] { grid-area: gain; }
  .om-row [data-l="PRU"]::before, .om-row [data-l="Cours"]::before { content: attr(data-l) ' '; color: #6b7280; }
}

/* Actualités du mois : fil défilant, « à la une » en effet domino, pronostic, mouvements */
.om-news { container: omnews / inline-size; background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 18px; color: #e5e7eb; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.om-news-h { display: flex; align-items: center; gap: 10px; }
.om-news-h h3 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.om-news-date { padding: 2px 9px; border-radius: 999px; background: rgba(91,124,250,.18); color: #a5b4fc; font-size: 11.5px; font-weight: 700; }
.om-ico { width: 18px; height: 18px; flex: none; }
.om-fil { display: flex; align-items: stretch; border: 1px solid #1f2937; border-radius: 10px; overflow: hidden; background: #0b1220; }
.om-fil-k { flex: none; display: flex; align-items: center; padding: 0 14px; background: #3b5bdb; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.om-fil-v { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.om-fil-track { display: flex; width: max-content; animation: om-fil 40s linear infinite; }
.om-fil:hover .om-fil-track { animation-play-state: paused; }
.om-fil-run { display: flex; gap: 28px; padding: 10px 28px 10px 14px; white-space: nowrap; font-size: 12.5px; color: #9ca3af; }
.om-fil-run > span::before { content: '•'; margin-right: 7px; color: #4b5563; }
.om-fil-run b { color: #fff; font-weight: 600; }
.om-fil-run em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes om-fil { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .om-fil-track { animation: none; }
  .om-fil-v { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .om-fil-run[aria-hidden] { display: none; }
}
.om-news-g { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
@container omnews (max-width: 760px) { .om-news-g { grid-template-columns: 1fr; } }
.om-une2 { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px; border: 1px solid rgba(129,140,248,.35);
  background: radial-gradient(120% 80% at 100% 100%, rgba(139,92,246,.45), transparent 60%), linear-gradient(160deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%); }
.om-une2-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.om-une2-tag { padding: 3px 9px; border-radius: 999px; background: #fbbf24; color: #1f1300; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.om-une2-k { font-size: 12px; color: #c7d2fe; }
.om-une2-t { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.om-une2-x { margin: 0; font-size: 13.5px; line-height: 1.5; color: #c7d2fe; }
.om-cause { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(5,6,15,.45); border: 1px solid rgba(255,255,255,.08); }
.om-cause-i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.35); }
.om-cause-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.om-cause-x b { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.45; }
.om-cause-x small { font-size: 11.5px; color: #a5b4fc; }
.om-cause-v { flex: none; font-size: 13.5px; font-weight: 700; color: #fbbf24; font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-domino-a { align-self: center; display: flex; color: #a5b4fc; margin: -6px 0; }
.om-dominos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.om-domino { padding: 10px 12px; border-radius: 12px; background: rgba(5,6,15,.4); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.om-domino span { font-size: 12px; color: #c7d2fe; }
.om-domino b { font-size: 15px; font-weight: 800; }
.om-domino small { font-size: 11.5px; color: #9ca3af; line-height: 1.35; }
.om-une2-btn { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 0; background: #fff; color: #111827; font: 700 13.5px Inter, sans-serif; cursor: pointer; transition: background .15s; }
.om-une2-btn:hover { background: #e0e7ff; }
.om-une2-btn .om-ico { width: 16px; height: 16px; }
.om-news-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.om-prono { padding: 16px; border-radius: 14px; background: #0b1220; border: 1px solid #1f2937; display: flex; flex-direction: column; gap: 10px; }
.om-prono-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.om-prono-h > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.om-prono-s { padding: 2px 8px; border-radius: 999px; background: rgba(251,191,36,.15); color: #fbbf24; font-size: 11px; font-weight: 800; white-space: nowrap; }
.om-prono-q { margin: 0; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.45; }
.om-prono-o { display: flex; flex-direction: column; gap: 6px; }
.om-prono-o button { min-height: 40px; padding: 8px 14px; text-align: left; border-radius: 10px; border: 1px solid #263044; background: #111827; color: #e5e7eb; font: 600 13.5px Inter, sans-serif; cursor: pointer; transition: border-color .15s, background .15s; }
.om-prono-o button:hover:not([disabled]) { border-color: #5b7cfa; background: #151d33; }
.om-prono-o button.is-on { border-color: #5b7cfa; background: rgba(91,124,250,.18); color: #fff; }
.om-prono-o button[disabled] { cursor: default; }
.om-prono-o button[disabled]:not(.is-on) { opacity: .45; }
.om-prono-r { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; }
.om-prono-r.is-ok { background: rgba(16,185,129,.12); color: #6ee7b7; }
.om-prono-r.is-ko { background: rgba(239,68,68,.12); color: #fca5a5; }
.om-prono-n { margin: 0; font-size: 11.5px; color: #9ca3af; line-height: 1.45; }
.om-mvt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #0b1220; border: 1px solid #1f2937; }
.om-mvt-i { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.om-mvt-i.is-up { background: rgba(139,92,246,.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,.3); }
.om-mvt-i.is-down { background: rgba(249,115,22,.12); color: #fdba74; border: 1px solid rgba(249,115,22,.3); }
.om-mvt-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.om-mvt-x b { font-size: 13.5px; font-weight: 600; color: #fff; }
.om-mvt-x small { font-size: 11.5px; color: #9ca3af; }
.om-mvt-v { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Fenêtre de janvier : l'actualité de l'année */
.om-une { border-left: 3px solid var(--fvm-a); }
.om-une-c { margin-top: 8px; }

/* Menus de la Bourse : choix de l'enveloppe */
.om-envsel { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--fvm-line2); }
.om-envsel .fvm-lbl { margin: 0; }
.om-envseg { align-self: flex-start; }
.om-envseg > button[disabled] { opacity: .4; cursor: not-allowed; }
.om-envinfo { font-size: 12.5px; line-height: 1.5; color: var(--fvm-ink2); }
.om-elig { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
.om-elig.is-pea { background: #dcfce7; color: #166534; }
.om-elig.is-cto { background: #fef3c7; color: #92400e; }
/* Dividendes dans les menus d'achat : badge des listes + encadré de la fenêtre d'achat */
.om-div { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.om-div.is-dist { background: #e0f2fe; color: #075985; }
.om-div.is-cap { background: #ede9fe; color: #5b21b6; }
.om-div.is-none { background: #f3f4f6; color: #4b5563; }
.om-divinfo { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; border: 1px solid rgba(100, 116, 139, .3); background: rgba(100, 116, 139, .08); }
.om-divinfo.is-dist { border-color: rgba(14, 165, 233, .4); background: rgba(14, 165, 233, .1); }
.om-divinfo.is-cap { border-color: rgba(139, 92, 246, .4); background: rgba(139, 92, 246, .1); }
.fvm-opt.om-out { opacity: .45; cursor: not-allowed; }
select.om-dca-env { height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--fvm-line2); background: #fff; color: var(--fvm-ink); font: 600 12.5px Inter, sans-serif; flex: none; }

/* ── Le Challenge Financé (module challenge-ui) : poste de trading ─────────── */
.tc-desk { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; color: #e5e7eb; font-variant-numeric: tabular-nums; }
.tc-card { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 16px; min-width: 0; }
.tc-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #f9fafb; }
.tc-card h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: #d1d5db; }
.tc-mut { color: #9ca3af; font-size: 13px; line-height: 1.5; }
.tc-pos { color: #34d399; }
.tc-neg { color: #f87171; }
.tc-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.tc-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1180px) { .tc-grid, .tc-grid--even { grid-template-columns: minmax(0, 1fr); } }

/* Bandeau : argent réel | compte + jauges | horloge */
.tc-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: stretch; background: #111827; border: 1px solid #1f2937; border-top: 3px solid #10b981; border-radius: 12px; padding: 14px 16px; }
.tc-reel-k, .tc-side-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6ee7b7; }
.tc-reel-v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tc-reel-s, .tc-side-s { font-size: 12px; color: #9ca3af; }
.tc-bar-mid { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; min-width: 0; }
.tc-acc { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc-acc-v { font-size: 16px; font-weight: 700; }
.tc-acc-s { font-size: 11px; color: #9ca3af; }
.tc-badge { align-self: flex-start; font-size: 11px; font-weight: 700; color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .35); border-radius: 999px; padding: 2px 8px; }
.tc-empty { grid-column: 1 / -1; color: #9ca3af; font-size: 14px; }
.tc-link { background: none; border: 0; color: #34d399; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
.tc-clock { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; font-size: 13px; color: #9ca3af; white-space: nowrap; }
.tc-clock b { color: #f9fafb; font-size: 16px; }
.tc-clock span { font-size: 11px; }
.tc-gauge { min-width: 0; }
.tc-gauge-top { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 6px; font-size: 12px; color: #9ca3af; }
.tc-gauge-top span { white-space: nowrap; }
.tc-gauge-top b { color: #f3f4f6; font-weight: 700; white-space: nowrap; margin-left: auto; }
.tc-gauge-bar { height: 7px; background: #1f2937; border-radius: 999px; overflow: hidden; margin: 5px 0 3px; }
.tc-gauge-bar i { display: block; height: 100%; border-radius: inherit; transition: width .3s ease; }
.tc-gauge--goal .tc-gauge-bar i { background: #10b981; }
.tc-gauge--warn .tc-gauge-bar i { background: #f59e0b; }
.tc-gauge--bad .tc-gauge-bar i { background: #ef4444; }
.tc-gauge-sub { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1280px) { .tc-bar { grid-template-columns: minmax(0, 1fr) auto; } .tc-bar-mid { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Boutons de séance */
.tc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tc-actions--mi { background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .4); border-radius: 12px; padding: 10px 12px; }
.tc-mi { flex: 1; min-width: 220px; font-size: 13px; color: #d1d5db; }
.tc-mi b { color: #fbbf24; margin-right: 6px; }
.tc-btn { background: #1f2937; color: #e5e7eb; border: 1px solid #374151; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.tc-btn:hover:not([disabled]) { border-color: #4b5563; background: #263244; }
.tc-btn:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }
.tc-btn[disabled] { opacity: .45; cursor: not-allowed; }
.tc-btn--pri { background: #10b981; border-color: transparent; color: #04120c; }
.tc-btn--pri:hover:not([disabled]) { background: #34d399; border-color: transparent; transform: translateY(-1px); }
.tc-btn--wide { width: 100%; margin-top: 4px; }

/* Graphique */
.tc-insts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.tc-inst { flex: 1 0 auto; min-width: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: #0b1220; border: 1px solid #1f2937; border-radius: 10px; padding: 7px 10px; color: #e5e7eb; cursor: pointer; text-align: left; }
.tc-inst.on { border-color: #10b981; box-shadow: inset 0 0 0 1px #10b981; }
.tc-inst-n { font-size: 12px; font-weight: 700; color: #d1d5db; }
.tc-inst-p { font-size: 14px; font-weight: 700; }
.tc-inst-v { font-size: 11px; color: #9ca3af; }
.tc-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.tc-chart-opts { margin-left: auto; display: inline-flex; gap: 12px; }
.tc-chart canvas { display: block; width: 100%; height: 300px; }
.tc-key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 2px; }
.tc-key--mm20 { background: #60a5fa; }
.tc-key--mm50 { background: #c084fc; }
.tc-key--news { width: 0; height: 0; border-radius: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #fbbf24; margin-right: 6px; }
.tc-chart-leg { font-size: 11px; color: #6b7280; margin-top: 6px; }

/* Signaux sous le graphique */
.tc-sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 12px; }
.tc-sig { display: flex; flex-direction: column; gap: 4px; background: #0b1220; border: 1px solid #1f2937; border-left: 3px solid #374151; border-radius: 10px; padding: 9px 11px; }
.tc-sig--up { border-left-color: #10b981; }
.tc-sig--down { border-left-color: #ef4444; }
.tc-sig--warn { border-left-color: #f59e0b; }
.tc-sig-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #9ca3af; }
.tc-sig-top b { color: #f3f4f6; white-space: nowrap; }
.tc-sig p { margin: 0; font-size: 12px; line-height: 1.45; color: #9ca3af; }
.tc-sig-f { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
.tc-sig-f--ok { background: rgba(16, 185, 129, .12); color: #34d399; }
.tc-sig-f--mut { background: #1f2937; color: #9ca3af; }
.tc-sig-btn { align-self: flex-start; margin-top: 2px; background: rgba(16, 185, 129, .12); color: #34d399; border: 1px solid rgba(16, 185, 129, .35); border-radius: 8px; font-size: 12px; font-weight: 600; padding: 5px 9px; cursor: pointer; }
.tc-sig-btn:hover { background: rgba(16, 185, 129, .2); }
.tc-quick .tc-quick-pro { color: #34d399; border-color: rgba(16, 185, 129, .35); }

/* Objectif atteint, pas encore validé */
.tc-goalhit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .4); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #d1d5db; line-height: 1.5; }
.tc-goalhit > div { flex: 1; min-width: 220px; }
.tc-goalhit b:first-child { color: #34d399; margin-right: 6px; }

/* Ticket d'ordre */
.tc-ticket { display: flex; flex-direction: column; gap: 10px; }
.tc-ticket h3 { margin-bottom: 2px; }
.tc-seg { display: flex; background: #0b1220; border: 1px solid #1f2937; border-radius: 10px; padding: 3px; gap: 3px; }
.tc-seg button { flex: 1; background: none; border: 0; border-radius: 8px; padding: 8px 6px; color: #9ca3af; font-weight: 600; font-size: 13px; cursor: pointer; }
.tc-seg button.on { background: #1f2937; color: #f9fafb; }
.tc-seg button.on.buy { background: rgba(16, 185, 129, .18); color: #6ee7b7; }
.tc-seg button.on.sell { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.tc-seg button[disabled] { opacity: .45; cursor: not-allowed; }
.tc-seg--sm button { padding: 6px; font-size: 12px; }
.tc-field { display: flex; flex-direction: column; gap: 4px; position: relative; font-size: 12px; color: #9ca3af; }
.tc-field input, .tc-field select { background: #0b1220; border: 1px solid #374151; border-radius: 8px; color: #f3f4f6; padding: 8px 28px 8px 10px; font-size: 14px; font-variant-numeric: tabular-nums; width: 100%; }
.tc-field select { padding-right: 10px; }
.tc-field input:focus, .tc-field select:focus { outline: none; border-color: #10b981; }
.tc-field input[disabled] { opacity: .45; }
.tc-field em { position: absolute; right: 10px; bottom: 9px; font-style: normal; color: #6b7280; font-size: 13px; }
.tc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-quick { display: flex; gap: 6px; }
.tc-quick button { flex: 1; background: #0b1220; border: 1px solid #1f2937; border-radius: 8px; color: #9ca3af; font-size: 12px; padding: 5px 0; cursor: pointer; }
.tc-quick button:hover { color: #e5e7eb; border-color: #374151; }
.tc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; cursor: pointer; }
.tc-check input { accent-color: #10b981; }
.tc-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: #0b1220; border: 1px solid #1f2937; border-radius: 10px; padding: 10px; font-size: 12px; }
.tc-calc div { display: flex; flex-direction: column; gap: 1px; color: #9ca3af; }
.tc-calc b { color: #f3f4f6; font-size: 13px; }
.tc-risk { grid-column: 1 / -1; border-radius: 8px; padding: 6px 8px; }
.tc-risk--ok { background: rgba(16, 185, 129, .1); }
.tc-risk--warn { background: rgba(245, 158, 11, .12); }
.tc-risk--bad { background: rgba(239, 68, 68, .12); }
.tc-risk--bad b { color: #fca5a5; }
.tc-hint { margin: 0; font-size: 12px; color: #9ca3af; line-height: 1.45; }

/* Tableaux */
.tc-tablewrap { overflow-x: auto; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tc-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; padding: 6px 8px; border-bottom: 1px solid #1f2937; white-space: nowrap; }
.tc-table td { padding: 8px; border-bottom: 1px solid #1a2333; vertical-align: top; white-space: nowrap; }
.tc-table td small { display: block; font-size: 11px; color: #9ca3af; }
.tc-table tr.tc-sub td { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; padding-top: 12px; }
.tc-acts { display: flex; gap: 4px; flex-wrap: wrap; }
.tc-acts button { background: #0b1220; border: 1px solid #374151; border-radius: 6px; color: #d1d5db; font-size: 11px; padding: 4px 7px; cursor: pointer; }
.tc-acts button:hover { border-color: #10b981; color: #fff; }

/* Actualités */
.tc-news { display: flex; flex-direction: column; gap: 10px; }
.tc-news h3 { margin-bottom: 0; }
.tc-cal { display: flex; flex-direction: column; gap: 4px; background: #0b1220; border: 1px solid #1f2937; border-radius: 10px; padding: 8px 10px; font-size: 12px; }
.tc-cal span { display: inline-block; min-width: 108px; color: #fbbf24; font-weight: 600; }
.tc-new { border-left: 3px solid #374151; padding: 2px 0 2px 10px; }
.tc-new b { font-size: 13px; color: #f3f4f6; }
.tc-new small { margin-left: 6px; font-size: 11px; color: #6b7280; }
.tc-new p { margin: 3px 0 0; font-size: 12px; color: #9ca3af; line-height: 1.45; }
.tc-new--warn { border-color: #f59e0b; }
.tc-new--bad { border-color: #ef4444; }
.tc-new--ok { border-color: #10b981; }

/* Notes, biais, plateforme */
.tc-note { background: #0b1220; border: 1px solid #1f2937; border-left: 3px solid #60a5fa; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: #d1d5db; margin: 10px 0; }
.tc-note--warn { border-left-color: #f59e0b; }
.tc-note--bad { border-left-color: #ef4444; }
.tc-note--ok { border-left-color: #10b981; }
.tc-bias { border-left: 3px solid #f59e0b; padding: 4px 0 4px 10px; margin-bottom: 10px; }
.tc-bias b { font-size: 13px; }
.tc-bias p { margin: 3px 0 0; font-size: 12px; color: #9ca3af; }
.tc-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.tc-tier { display: flex; flex-direction: column; gap: 4px; background: #0b1220; border: 1px solid #1f2937; border-radius: 12px; padding: 14px; }
.tc-tier.lock { opacity: .55; }
.tc-tier-cap { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tc-tier-k { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.tc-tier-p { font-size: 15px; font-weight: 700; color: #6ee7b7; margin-top: 4px; }
.tc-tier-r { font-size: 11px; color: #9ca3af; line-height: 1.5; margin-bottom: 6px; }
.tc-tier-lock { font-size: 11px; color: #9ca3af; }
.tc-stop { margin-top: 6px; }
.tc-src { margin-top: 12px; font-size: 11px; }

/* Barre latérale */
.tc-side { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tc-side-card { background: #0b1220; border: 1px solid #1f2937; border-top: 3px solid #10b981; border-radius: 10px; padding: 12px; margin-bottom: 4px; }
.tc-side-v { font-size: 22px; font-weight: 800; color: #f9fafb; font-variant-numeric: tabular-nums; }
.tc-side-btn { width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; color: #d1d5db; font-weight: 500; padding: 10px 12px; cursor: pointer; }
.tc-side-btn:hover { background: #1f2937; }
.tc-side-btn.on { background: rgba(16, 185, 129, .12); color: #6ee7b7; font-weight: 700; }

/* Fenêtres et bilan */
.tc-modal .tc-field { margin-bottom: 10px; }
.tc-fin { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #0b1220; border: 1px solid #1f2937; border-left: 4px solid #9ca3af; }
.tc-fin b { font-size: 16px; }
.tc-fin p { margin: 4px 0 0; font-size: 14px; color: #d1d5db; }
.tc-fin--ok { border-left-color: #10b981; }
.tc-fin--bad { border-left-color: #ef4444; }
.tc-fin-bias { font-size: 13px; color: #fbbf24; margin: 10px 0; }
.tc-sim { margin-top: 14px; padding-top: 12px; border-top: 1px solid #1f2937; }
.tc-sim h4 { margin: 0 0 6px; font-size: 15px; color: #f9fafb; }
.tc-sim p { font-size: 13px; color: #d1d5db; line-height: 1.55; }
.tc-srcs { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #9ca3af; line-height: 1.5; }
.tc-duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: #0b1220; border: 1px solid #1f2937; border-radius: 12px; padding: 14px; margin-bottom: 12px; text-align: center; }
.tc-duel span { display: block; font-size: 12px; color: #9ca3af; }
.tc-duel b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tc-duel-vs { font-size: 14px; font-weight: 700; color: #f3f4f6; }
.tc-duel-vs small { display: block; font-size: 11px; font-weight: 500; color: #6b7280; }

/* ── Module art (Ticket d'Or) : galerie Art Collection ───────────────────────
   Fenêtre claire, à la manière de la galerie partenaire (logo noir sur blanc). */
.fsc-art { --a-ink: #111; --a-mute: #5f5f5f; --a-line: #e4e4e4; --a-bg: #fafafa; --a-up: #0f7a4a;
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--a-bg); color: var(--a-ink); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); font-family: Inter, system-ui, sans-serif; }
.fsc-art-head { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--a-ink); }
.fsc-art-logo { flex: none; display: block; }
.fsc-art-logo img { height: 52px; width: auto; display: block; }
.fsc-art-intro { flex: 1; min-width: 0; }
.fsc-art-intro h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.fsc-art-intro p { margin: 0; color: var(--a-mute); font-size: 13px; line-height: 1.45; }
.fsc-art-x { flex: none; align-self: flex-start; background: none; border: 0; color: var(--a-ink); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.fsc-art-tabs { display: flex; gap: 22px; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--a-line); flex-wrap: wrap; }
.fsc-art-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--a-mute); padding: 12px 0 10px; cursor: pointer; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.fsc-art-tabs button.is-on { color: var(--a-ink); border-bottom-color: var(--a-ink); font-weight: 600; }
.fsc-art-cash { margin-left: auto; color: var(--a-mute); font-size: 12px; }
.fsc-art-cash b { color: var(--a-ink); }
.fsc-art-main { padding: 20px 24px 28px; overflow-y: auto; }
.fsc-art .fsc-muted { color: var(--a-mute); font-size: 12px; margin: 0; }
.fsc-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.fsc-art-card { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.fsc-art-ph { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--a-bg); border: 0; padding: 0; cursor: zoom-in; }
.fsc-art-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fsc-art-badge { position: absolute; top: 10px; left: 10px; background: var(--a-ink); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.fsc-art-badge--u { background: #fff; color: var(--a-ink); border: 1px solid var(--a-ink); }
.fsc-art-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fsc-art-body h4, .fsc-art-fiche-tx h3 { margin: 0; font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.25; }
.fsc-art-artist { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.fsc-art-price { margin: 2px 0 0; font-size: 18px; }
.fsc-art-price small { display: block; font-size: 10px; color: var(--a-mute); text-transform: uppercase; letter-spacing: .04em; }
.fsc-art-tech { margin: 0; font-size: 12px; color: var(--a-mute); line-height: 1.45; }
.fsc-art-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--a-mute); }
.fsc-art-up { color: var(--a-up); font-weight: 600; }
.fsc-art-own { margin: 0; font-size: 12px; font-weight: 600; }
.fsc-art-sel { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--a-mute); text-transform: uppercase; letter-spacing: .04em; }
.fsc-art-sel select { background: #fff; color: var(--a-ink); border: 1px solid #cfcfcf; border-radius: 10px; padding: 8px 10px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.fsc-art-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.fsc-art-btn { background: var(--a-ink); color: #fff; border: 1px solid var(--a-ink); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 500; cursor: pointer; }
.fsc-art-btn:hover:not(:disabled) { background: #333; }
.fsc-art-btn--ghost { background: #fff; color: var(--a-ink); }
.fsc-art-btn--ghost:hover:not(:disabled) { background: #f0f0f0; }
.fsc-art-btn:disabled { opacity: .35; cursor: not-allowed; }
.fsc-art-link { color: var(--a-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.fsc-art-back { background: none; border: 0; color: var(--a-ink); font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 14px; }
.fsc-art-fiche-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.fsc-art-fiche-ph { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; aspect-ratio: 4 / 3; overflow: hidden; }
.fsc-art-fiche-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fsc-art-fiche-tx { display: flex; flex-direction: column; gap: 10px; }
.fsc-art-fiche-tx > p { margin: 0; font-size: 14px; line-height: 1.6; text-align: justify; }
.fsc-art-bio, .fsc-art-game { border-top: 1px solid var(--a-ink); padding-top: 10px; font-size: 13px; line-height: 1.55; }
.fsc-art-bio b, .fsc-art-game b { text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.fsc-art-bio p { margin: 6px 0 0; }
.fsc-art-game ul { margin: 6px 0 0; padding-left: 18px; color: var(--a-mute); }
.fsc-art-prop { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.fsc-art-prop header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fsc-art-prop h4 { margin: 0; font-size: 15px; font-weight: 600; }
.fsc-art-prop header span { color: var(--a-mute); font-size: 12px; }
.fsc-art-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.fsc-art-row em { width: 44px; font-style: normal; color: var(--a-mute); font-size: 12px; }
.fsc-art-slot { display: inline-flex; flex-direction: column; align-items: center; min-width: 76px; max-width: 130px; padding: 6px 8px; border: 1px dashed #c9c9c9; border-radius: 10px; color: #9a9a9a; font-size: 18px; background: transparent; }
.fsc-art-slot span { font-size: 10px; line-height: 1.2; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fsc-art-slot.is-on { border: 1px solid var(--a-ink); color: var(--a-ink); cursor: pointer; background: #f4f4f4; }
.fsc-art-bonus { margin: 8px 0 6px; font-size: 13px; }
.fsc-art-bonus b { color: var(--a-up); }
.fsc-art-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fsc-art-table th { text-align: left; color: var(--a-mute); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--a-ink); }
.fsc-art-table td { padding: 10px 8px; border-bottom: 1px solid var(--a-line); vertical-align: top; }
.fsc-art-table small { color: var(--a-mute); }
.fsc-art .fsc-pos { color: var(--a-up); } .fsc-art .fsc-neg { color: #c0392b; }
@media (max-width: 720px) {
  .fsc-art-head { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
  .fsc-art-logo img { height: 40px; }
  .fsc-art-intro { order: 3; flex-basis: 100%; }
  .fsc-art-x { margin-left: auto; }
  .fsc-art-tabs, .fsc-art-main { padding-left: 16px; padding-right: 16px; }
  .fsc-art-tabs { gap: 14px; }
  .fsc-art-tabs button { font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
  .fsc-art-cash { margin-left: 0; flex-basis: 100%; padding-bottom: 8px; }
  .fsc-art-grid { grid-template-columns: 1fr; }
  .fsc-art-fiche-in { grid-template-columns: 1fr; }
}
.fsc-art-kv b { white-space: nowrap; }
.fsc-art-kv small { font-weight: 400; }
