/* Partivest V2 — pages publiques du desk. S'appuie sur les jetons .pvh de home/home.css
   (chargé avant ce fichier) ; tout est scopé sous .pvd. */

.pvd-top { padding-top: clamp(104px, 11vw, 140px); padding-bottom: clamp(32px, 4vw, 56px); }
.pvd-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--p-leaf-text); margin-bottom: 16px;
}
.pvd-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-leaf); }
.pvd-top .pvh-actions { margin-top: 28px; }

/* ── Liste ─────────────────────────────────────────────────── */
.pvd-list { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 700px) { .pvd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pvd-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pvd-card {
    position: relative; display: flex; flex-direction: column; gap: 18px;
    background: var(--p-card); border: 1px solid var(--p-line); border-radius: 16px;
    padding: 22px; box-shadow: var(--p-shadow);
    transition: border-color .15s ease, transform .15s ease;
}
.pvd-card:hover { border-color: var(--p-line-2); }
@media (prefers-reduced-motion: no-preference) { .pvd-card:hover { transform: translateY(-2px); } }
.pvd-card-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pvd-card-head h2 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.012em; margin: 0; overflow-wrap: anywhere; }
.pvd-card-sub { color: var(--p-ink-3); font-size: .875rem; margin-top: 2px; }
.pvd-card .pvh-link { margin-top: auto; align-self: flex-start; }
.pvd-card .pvh-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }

.pvd-avatar {
    flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    background: var(--p-sky-tint); border: 2px solid var(--p-card); box-shadow: 0 0 0 1px var(--p-line);
}
.pvd-avatar--lg { width: 88px; height: 88px; }
.pvd-avatar--initial {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--p-sky-text); letter-spacing: -.02em;
}

.pvd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pvd-chip {
    display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
    border-radius: 999px; font-size: .8125rem; font-weight: 500;
    background: var(--p-sky-tint); color: var(--p-sky-text);
}
.pvd-badge {
    display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px;
    border-radius: 999px; font-size: .8125rem; font-weight: 600; border: 1px solid transparent;
}
.pvd-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pvd-badge--real { background: var(--p-leaf-tint); color: var(--p-leaf-text); }
.pvd-badge--demo { background: var(--p-ember-tint); color: var(--p-ember-text); }
.pvd-badge--none { background: transparent; color: var(--p-ink-3); border-color: var(--p-line); }

.pvd-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--p-line); border: 1px solid var(--p-line); border-radius: 12px; overflow: hidden; }
.pvd-fig { background: var(--p-card); padding: 12px 14px; min-width: 0; }
.pvd-fig-v { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pvd-fig-l { display: block; color: var(--p-ink-3); font-size: .8125rem; margin-top: 2px; }
.pvd-up { color: var(--p-leaf-text); }
.pvd-down { color: var(--p-ember-text); }

.pvd-nodata {
    border: 1px dashed var(--p-line-2); border-radius: 12px; padding: 14px 16px;
    color: var(--p-ink-2); font-size: .9375rem; background: var(--p-paper);
}
.pvd-nodata strong { display: block; color: var(--p-ink); margin-bottom: 2px; }

.pvd-empty {
    text-align: center; max-width: 560px; margin: 0 auto clamp(56px, 7vw, 96px);
    padding: 40px 24px; border: 1px dashed var(--p-line-2); border-radius: 16px; background: var(--p-card);
}
.pvd-empty h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; }
.pvd-empty p { color: var(--p-ink-2); }

/* ── Fiche ─────────────────────────────────────────────────── */
.pvd-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--p-ink-2); font-weight: 600; text-decoration: none; margin-bottom: 12px; }
.pvd-back:hover { color: var(--p-ink); }
.pvd-profile { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .pvd-profile { grid-template-columns: auto minmax(0, 1fr); gap: 28px; } }
.pvd-profile .pvh-h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: none; overflow-wrap: anywhere; }
.pvd-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 14px; color: var(--p-ink-3); font-size: .9375rem; }
.pvd-bio { color: var(--p-ink-2); max-width: 64ch; margin-top: 16px; white-space: pre-line; }
.pvd-tags { display: grid; gap: 10px; margin-top: 18px; }
.pvd-tags dt { font-size: .8125rem; color: var(--p-ink-3); font-weight: 600; margin-bottom: 4px; }
.pvd-tags dd { margin: 0; }
@media (min-width: 600px) { .pvd-tags { grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; align-items: center; } .pvd-tags dt { margin: 0; } }

.pvd-section { padding-block: clamp(28px, 4vw, 48px); }
.pvd-section h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }

.pvd-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--p-line); border: 1px solid var(--p-line); border-radius: 14px; overflow: hidden; }
@media (min-width: 700px) { .pvd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pvd-kpis .pvd-fig { padding: 16px 18px; }
.pvd-kpis .pvd-fig-v { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); }

.pvd-chart { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 14px; padding: 16px 16px 12px; }
.pvd-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 10px; }
.pvd-chart-head strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pvd-chart-plot { position: relative; width: 100%; height: clamp(170px, 34vw, 280px); }
.pvd-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pvd-c-grid { stroke: var(--p-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pvd-c-zero { stroke: var(--p-line-2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.pvd-c-line { fill: none; stroke: var(--p-leaf-ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pvd-c-line--down { stroke: var(--p-ember); }
.pvd-c-area { fill: var(--p-leaf); fill-opacity: .14; }
.pvd-c-area--down { fill: var(--p-ember); fill-opacity: .1; }
.pvd-c-label {
    position: absolute; right: 0; font-size: .75rem; line-height: 1; color: var(--p-ink-3);
    font-variant-numeric: tabular-nums; background: var(--p-card); padding: 2px 4px; border-radius: 4px;
}
.pvd-c-label--top { top: 0; }
.pvd-c-label--bottom { bottom: 0; }
.pvd-chart-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--p-ink-3); font-size: .8125rem; margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
    .pvd-c-line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: pvd-draw 1.4s ease-out forwards; }
    @keyframes pvd-draw { to { stroke-dashoffset: 0; } }
}

.pvd-table-wrap { overflow-x: auto; border: 1px solid var(--p-line); border-radius: 14px; background: var(--p-card); -webkit-overflow-scrolling: touch; }
.pvd-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; min-width: 560px; }
.pvd-table th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--p-ink-3); padding: 12px 14px; border-bottom: 1px solid var(--p-line); white-space: nowrap; }
.pvd-table td { padding: 12px 14px; border-bottom: 1px solid var(--p-line); white-space: nowrap; }
.pvd-table tr:last-child td { border-bottom: 0; }
.pvd-side { font-weight: 600; }
.pvd-side--buy { color: var(--p-leaf-text); }
.pvd-side--sell { color: var(--p-ember-text); }

.pvd-notes { display: grid; gap: 10px; padding-bottom: clamp(56px, 7vw, 96px); max-width: 80ch; }
