/* ============ Recommandations ============ */
.reco-tabs { overflow-x: auto; scrollbar-width: none; margin-bottom: 2px; }
.reco-tabs .seg { flex-wrap: nowrap; }
.reco-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13.5px; padding: 10px 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: reco-spin .8s linear infinite; flex: none; }
@keyframes reco-spin { to { transform: rotate(360deg); } }
.reco-h3 { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; }

/* actions */
.reco-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reco-act { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2, var(--hover)); border-left: 4px solid var(--ink-3); }
.reco-act.good { border-left-color: var(--good); } .reco-act.warn { border-left-color: var(--warn); } .reco-act.bad { border-left-color: var(--crit); } .reco-act.info { border-left-color: var(--info-ink, var(--accent)); }
.reco-act b { display: block; font-weight: 680; letter-spacing: -.01em; }
.reco-act small { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.reco-act .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 750; font-size: 12.5px; }
.reco-teaser header h2 { display: flex; align-items: center; gap: 8px; }
.reco-teaser header .btn { margin-inline-start: auto; }

/* profil */
.reco-settings { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; }
.reco-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.reco-inline select { width: auto; }
.reco-tmi { font-size: 12.5px; }
.reco-bar { height: 10px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.reco-bar i { display: block; height: 100%; border-radius: 99px; background: var(--good); transition: width .4s; }
.reco-barleg { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* allocation */
.reco-alloc { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: start; }
.reco-poches { display: flex; flex-direction: column; }
.reco-poche { border-bottom: 1px solid var(--line-2); }
.reco-poche:last-child { border-bottom: 0; }
.reco-poche summary, .reco-stock summary { list-style: none; display: grid; align-items: center; gap: 10px; padding: 11px 2px; cursor: pointer; }
.reco-poche summary::-webkit-details-marker, .reco-stock summary::-webkit-details-marker { display: none; }
.reco-poche summary { grid-template-columns: 10px minmax(0, 1fr) auto 104px 14px; }
.reco-poche summary > i { width: 10px; height: 10px; border-radius: 3px; }
.reco-poche .nm, .reco-stock .nm { min-width: 0; display: flex; flex-direction: column; font-weight: 640; }
.reco-poche .nm small, .reco-stock .nm small { font-weight: 450; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-poche .amt { text-align: end; display: flex; flex-direction: column; font-weight: 650; }
.reco-poche .amt small, .reco-stock .up small, .reco-stock .w small { font-weight: 450; color: var(--ink-3); font-size: 11.5px; }
details[open] > summary > svg:last-child { transform: rotate(180deg); }
.reco-poche summary > svg, .reco-stock summary > svg { color: var(--ink-3); transition: transform .2s; }
.why { padding: 2px 2px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.why ul { margin: 0 0 8px; padding-inline-start: 18px; }
.why .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.reco-delta { margin-top: 10px; font-size: 14px; }

/* bourse */
.reco-diag { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.reco-diag .reco-act { padding: 9px 12px; }
.reco-stocks { display: flex; flex-direction: column; }
.reco-stock { border-bottom: 1px solid var(--line-2); }
.reco-stock:last-child { border-bottom: 0; }
.reco-stock summary { grid-template-columns: minmax(0, 1fr) auto 76px 86px 14px; }
.reco-stock summary:not(:has(.w)) { grid-template-columns: minmax(0, 1fr) auto 76px 14px; }
.reco-stock .up, .reco-stock .w { text-align: end; display: flex; flex-direction: column; font-weight: 700; }
.reco-ipo { padding: 10px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 5px; }
.reco-ipo:last-of-type { border-bottom: 0; }
.reco-ipo .nm b { font-weight: 650; } .reco-ipo .nm small { display: block; color: var(--ink-3); font-size: 12.5px; }
.reco-ipo .tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* immobilier */
.reco-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.reco-num { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); min-width: 0; }
.reco-num.wide { grid-column: 1 / -1; }
.reco-num .in { position: relative; display: block; }
.reco-num .in input { width: 100%; padding-inline-end: 52px; }
.reco-num .in em { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; color: var(--ink-3); pointer-events: none; }
.reco-num select { width: 100%; }
.reco-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); grid-column: 1 / -1; }
.reco-check input { width: 18px; height: 18px; }
.reco-capout, .reco-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 8px; }
.reco-capout > div, .reco-kv > div { background: var(--surface-2, var(--hover)); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.reco-capout small, .reco-kv small { font-size: 12px; color: var(--ink-3); }
.reco-capout b, .reco-kv b { font-size: 18px; font-weight: 720; letter-spacing: -.02em; }
.reco-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.reco-filters select { width: auto; min-width: 170px; }
.reco-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.reco-topz { position: relative; background: var(--surface-2, var(--hover)); border-radius: 16px; padding: 14px 14px 12px 46px; display: flex; flex-direction: column; gap: 4px; }
.reco-topz .rk { position: absolute; left: 12px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 750; }
.reco-topz .big { font-size: 22px; font-weight: 760; letter-spacing: -.02em; }
.reco-topz .big small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.links a { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); text-decoration: none; font-weight: 600; }
.links a:hover { text-decoration: underline; }
.reco-ztable { overflow-x: auto; }
.reco-ztable td .sub { max-width: 360px; white-space: normal; }
.reco-ann { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.reco-annres { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 10px; }
.reco-annres .reco-kv { margin: 0; grid-template-columns: 1fr 1fr; }
.reco-annres .reco-kv b { font-size: 16px; }
.verdict { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; background: var(--hover); }
.verdict b { font-size: 19px; font-weight: 760; letter-spacing: -.02em; }
.verdict.good { background: var(--good-bg); color: var(--good-ink); } .verdict.warn { background: var(--warn-bg); color: var(--warn-ink); } .verdict.bad { background: var(--crit-bg); color: var(--crit-ink); }
.reco-pros { margin: 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.5; }
.reco-saved { margin-top: 10px; }

/* startups */
.reco-rules { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.reco-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.reco-plat { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border-radius: 14px; background: var(--surface-2, var(--hover)); color: var(--ink); text-decoration: none; }
.reco-plat:hover { filter: brightness(.97); }
.reco-plat b { display: flex; align-items: center; gap: 6px; font-weight: 680; }
.reco-plat small { color: var(--ink-3); font-size: 12.5px; }
.reco-plat .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.reco-news { display: flex; flex-direction: column; }
.reco-news a { padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.reco-news a:last-child { border-bottom: 0; }
.reco-news a small { color: var(--ink-3); font-size: 12px; }

/* assistant IA */
.reco-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.reco-quick .cat { padding: 7px 12px; font-size: 13px; text-align: start; }
.reco-ask { display: flex; gap: 10px; align-items: flex-end; }
.reco-ask textarea { flex: 1; min-height: 70px; resize: vertical; }
.reco-answer { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2, var(--hover)); }
.reco-md h3 { font-size: 15px; font-weight: 720; margin: 12px 0 4px; }
.reco-md h3:first-child { margin-top: 0; }
.reco-md p { margin: 6px 0; line-height: 1.55; }
.reco-md ul, .reco-md ol { margin: 4px 0 8px; padding-inline-start: 20px; line-height: 1.55; }

@media (max-width: 760px) {
  .reco-alloc { grid-template-columns: 1fr; justify-items: center; }
  .reco-alloc .reco-poches { width: 100%; }
  .reco-poche summary { grid-template-columns: 10px minmax(0, 1fr) auto 14px; }
  .reco-poche summary .amt { display: none; }
  .reco-ann { grid-template-columns: 1fr; }
  .reco-annres { position: static; }
  .reco-form { grid-template-columns: 1fr 1fr; }
  .reco-stock summary { grid-template-columns: minmax(0, 1fr) auto 64px 14px; }
  .reco-stock summary .w { display: none; }
  .reco-ask { flex-direction: column; align-items: stretch; }
  .reco-ztable th:nth-child(3), .reco-ztable td:nth-child(3), .reco-ztable th:nth-child(4), .reco-ztable td:nth-child(4), .reco-ztable th:nth-child(6), .reco-ztable td:nth-child(6) { display: none; }
}
.reco-tabs .sh { display: none; }
@media (max-width: 560px) {
  .reco-tabs .seg { display: flex; width: 100%; }
  .reco-tabs .seg button { flex: 1; justify-content: center; padding: 8px 6px; font-size: 14px; }
  .reco-tabs .lg { display: none; } .reco-tabs .sh { display: inline; }
}
.reco-sv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.reco-sv:last-child { border-bottom: 0; }
.reco-sv .nm { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reco-sv .nm small { color: var(--ink-3); font-size: 12.5px; }
.reco-sv .nm a { font-size: 12.5px; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.reco-sv .kpi2 { display: flex; flex-direction: column; text-align: end; }
.reco-sv .kpi2 small { font-size: 12px; }
.reco-sv .acts { display: flex; gap: 2px; }
@media (max-width: 560px) { .reco-sv { grid-template-columns: minmax(0, 1fr) auto; } .reco-sv .pill { justify-self: start; } .reco-sv .acts { justify-self: end; } }
.reco-iacard header h2 { display: flex; align-items: center; gap: 8px; }
