/* Parcours de démarrage et écrans de l'application (mobile d'abord, puis ordinateur). */

/* ---------- Champs ---------- */
input, select, textarea { font-size: 16px; }                 /* pas de zoom automatique sur iPhone */
input::placeholder, textarea::placeholder { color: #a3adbb; }
.input-unit { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.input-unit:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.input-unit input { border: 0; outline: 0 !important; background: transparent; min-width: 0; flex: 1; }
.input-unit span { padding: 0 12px 0 4px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
details.more { border: 1px dashed var(--line); border-radius: 10px; margin: 6px 0 18px; }
details.more > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--brand); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px;
  border-radius: 6px; background: var(--brand-soft); font-weight: 800; }
details.more[open] > summary::before { content: "−"; }
details.more > summary .muted { font-weight: 500; font-size: .85rem; }
.more-body { padding: 0 14px 4px; }
.segmented { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented legend { font-weight: 600; font-size: .85rem; margin-bottom: 6px; padding: 0; }
.segmented label { margin: 0; position: relative; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: grid; justify-items: start; gap: 2px; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.segmented span .i { width: 22px; height: 22px; color: var(--muted); margin-bottom: 4px; }
.segmented small { color: var(--muted); font-size: .8rem; }
.segmented input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.segmented input:checked + span .i { color: var(--brand); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Démarrage ---------- */
.onb { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }
.onb.onb-wide { max-width: 1040px; }
.onb-head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.onb-count { font-size: .85rem; font-weight: 700; color: var(--muted); }
.onb-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px; }
.onb-progress span { height: 5px; border-radius: 99px; background: var(--line); transition: background .4s; }
.onb-progress span.done { background: var(--amber); }
.onb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow); }
.onb-card h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); margin-bottom: .3em; }
.onb-kicker { margin: 0 0 6px; font-weight: 800; color: var(--amber); font-size: .9rem; }
.onb-lead { color: var(--muted); margin-bottom: 20px; }
.onb-back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.onb-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.onb-actions { margin-top: 18px; }
.onb-foot { text-align: center; margin-top: 18px; }
.onb-split { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .onb-card { padding: 32px; }
  .onb-split { grid-template-columns: 1fr 1fr; align-items: start; }
  .onb-preview { position: sticky; top: 24px; }
}
/* Mobile : bouton principal toujours sous le pouce */
@media (max-width: 640px) {
  .onb-card { border: 0; box-shadow: none; padding: 8px 0 0; background: transparent; }
  .onb-actions { position: sticky; bottom: 0; margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
}

/* Aperçu de la quittance (étape 3) */
.receipt-paper { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: 8px; padding: 18px;
  box-shadow: 0 20px 50px rgb(19 35 58 / .12); font-size: .88rem; }
.rp-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.rp-head strong { color: var(--brand); letter-spacing: .03em; }
.rp-head span { color: var(--muted); text-transform: capitalize; }
.rp-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.rp-parties > div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.rp-parties small { font-size: .65rem; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.rp-parties span { color: var(--muted); font-size: .8rem; white-space: pre-line; overflow-wrap: anywhere; }
.rp-text { color: var(--ink); line-height: 1.5; }
.rp-lines div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rp-lines .tot { border: 0; background: var(--brand-soft); color: var(--brand); font-weight: 800; padding: 8px 10px; border-radius: 6px; margin-top: 6px; }
.rp-sign { text-align: right; margin: 12px 0 0; color: var(--muted); }
.rp-sign i { font-family: var(--serif); color: var(--brand); font-size: 1.05rem; }
[data-live].empty { color: #b3bcc8; }
[data-live] { transition: color .2s; }

/* ---------- Application ---------- */
.mobile-top .plan-chip { margin-left: auto; }
.plan-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--accent-ink);
  background: var(--amber-soft); border-radius: 8px; padding: 6px 10px; text-decoration: none; }
.sidebar .plan-chip { margin: 0 8px 10px; }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-soft); color: var(--brand);
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .9rem; }
.banner span { flex: 1 1 200px; }
.banner a, .banner .linkbtn { font-weight: 700; color: inherit; }
.banner.warm { background: var(--amber-soft); color: var(--accent-ink); }
.page-head h1 { font-size: clamp(1.5rem, 5vw, 1.9rem); }
.welcome { display: flex; gap: 14px; align-items: flex-start; border-color: transparent; background: var(--brand); color: #fff; margin-bottom: 14px; }
.welcome h2 { color: #fff; margin: 0 0 4px; }
.welcome p { margin: 0; color: #d4deec; }
.welcome-ico { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--amber); }
.welcome-ico .i { width: 24px; height: 24px; }

.todo { margin-bottom: 18px; }
.panel-title { display: flex; align-items: center; gap: 8px; }
.count-badge { background: var(--amber); color: #fff; font-weight: 800; font-size: .75rem; border-radius: 99px; min-width: 22px; height: 22px;
  display: inline-grid; place-items: center; padding: 0 6px; }
.todo-list { list-style: none; margin: 4px 0 0; padding: 0; }
.todo-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.todo-item:first-child { border-top: 0; }
.todo-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); grid-row: span 2; align-self: start; }
.todo-ico .i { width: 19px; height: 19px; }
.todo-ico.ok { background: #e2f1e7; color: var(--good); grid-row: auto; }
.todo-item.late .todo-ico { background: var(--bad-soft); color: var(--bad); }
.todo-main { display: grid; gap: 2px; min-width: 0; }
.todo-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (min-width: 720px) {
  .todo-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .todo-ico { grid-row: auto; }
}
.todo-empty { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.inline-form { display: inline; }
.good-btn { background: var(--good); }
.good-btn:hover { background: #21613f; }
.icon-btn { min-width: 38px; font-size: 1.1rem; line-height: 1; padding-left: 10px; padding-right: 10px; }

.month-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.month-head h2 { font-size: 1.2rem; margin: 0; }
.month-summary { margin-bottom: 12px; }
.ms-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ms-top b { font: 800 1.35rem var(--serif); color: var(--good); }
.ms-bottom { display: flex; justify-content: space-between; color: var(--muted); margin-top: 8px; }
.rent-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.rent-line:hover { border-color: #b9c6d8; transform: translateY(-1px); }
.rent-line.late { border-left: 4px solid var(--bad); }
.rent-line.partial { border-left: 4px solid var(--amber); }
.rl-main { display: grid; gap: 2px; min-width: 0; }
.rl-side { display: grid; justify-items: end; gap: 4px; }
.rl-side b { font-family: var(--serif); }
.stat-card { display: grid; gap: 4px; }
.stat-card b { font: 800 1.6rem var(--serif); }
.bad-card { border-color: #f0c3bc; background: var(--bad-soft); color: var(--bad); }
.bad-card a { color: var(--bad); font-weight: 700; }
.quick { display: grid; gap: 2px; }
.quick h2 { font-size: 1.05rem; }
.quick a { display: flex; gap: 10px; align-items: center; padding: 9px 4px; color: var(--ink); text-decoration: none; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.quick a:hover { background: var(--surface-2); }
.quick a .i { color: var(--amber); }
.onboard .tick:empty { border-style: dashed; }

/* Navigation mobile : 4 onglets + feuille « Plus » */
@media (max-width: 820px) {
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .mobile-nav button { background: none; border: 0; font: inherit; color: var(--muted); font-size: .7rem; padding: 4px 0; cursor: pointer; }
  .mobile-nav button span { display: block; font-size: 1.25rem; }
  .mobile-nav button.active { color: var(--brand); font-weight: 700; }
  .mobile-nav a span .i, .mobile-nav button span .i { width: 22px; height: 22px; }
}
.sheet { border: 0; border-radius: 16px; padding: 18px 20px 20px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgb(0 0 0 / .25); color: var(--ink); }
.sheet::backdrop { background: rgb(19 35 58 / .45); }
.sheet h2 { font-size: 1.3rem; margin: 0 0 2px; }
.sheet > a { display: flex; gap: 12px; align-items: center; padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.sheet > a .i { color: var(--brand); width: 20px; height: 20px; }
.sheet > form { padding: 12px 4px; }
.sheet-grip { display: none; width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: -6px auto 12px; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
@media (max-width: 640px) {
  .sheet { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .sheet-grip { display: block; }
  .sheet[open] { animation: sheet-up .28s cubic-bezier(.2,.9,.3,1); }
  .sheet-actions .btn { flex: 1; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }

/* Fiche du bail : en-tête de synthèse */
.lease-summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.lease-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.lease-summary small { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.lease-summary b { font-family: var(--serif); font-size: 1.15rem; }
.lease-summary > div { min-width: 0; } .lease-summary span { overflow-wrap: anywhere; }

/* ---------- Espace locataire ---------- */
.portal { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.portal-head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.portal .card { margin-bottom: 14px; }
.portal h1 { font-size: clamp(1.6rem, 6vw, 2rem); margin: 6px 0 8px; }
.portal h2 { font-size: 1.15rem; }
.portal-hero { border-top: 5px solid var(--brand); }
.portal-balance { font: 800 1.9rem var(--serif); margin: 0 0 8px; letter-spacing: -.02em; }
.portal-balance span { font: 600 .95rem var(--sans); }
.declare { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.declare-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.portal-list { list-style: none; margin: 0; padding: 0; }
.portal-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.portal-list li:first-child { border-top: 0; }
.portal-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.portal-foot { text-align: center; }
input[type=file] { padding: 8px; font-size: .9rem; }

/* ---------- Nouveautés : coffre-fort, dépenses, état des lieux ---------- */
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: .85rem; background: var(--surface-2); }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.chips-row .chip { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 12px; font: 600 .86rem var(--sans); color: var(--ink); text-decoration: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.doc-list li { align-items: center; }
.fin { margin: 0; display: grid; }
.fin div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fin dt { color: var(--muted); }
.fin dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.fin .tot { border: 0; font-size: 1.05rem; }
.fin-card h2 { font-size: 1.05rem; }
.tax-card h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tax-grid > div { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.tax-grid small { font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; }
.tax-grid b { font: 800 1.25rem var(--serif); }
.tax-grid .best { border-color: var(--good); background: #e2f1e7; }
.tax-grid .best small::after { content: " · le plus avantageux"; color: var(--good); }

.edl-bar { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; background: var(--bg);
  padding: 10px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.edl-bar .field input { min-height: 38px; padding: 6px 10px; }
.edl-progress { flex: 1 1 160px; display: grid; gap: 4px; }
.room-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.room-nav a { white-space: nowrap; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--brand); background: var(--brand-soft);
  border-radius: 8px; padding: 6px 10px; }
.room { scroll-margin-top: 90px; }
.room-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.room-name { font: 700 1.15rem var(--serif); border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 4px 0; min-height: 0; background: transparent; }
.edl-item { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 8px; }
.edl-item-head { display: flex; gap: 8px; align-items: center; }
.item-name { border: 0; padding: 2px 0; min-height: 0; font-weight: 700; background: transparent; flex: 1; }
.item-note { min-height: 38px; padding: 6px 10px; font-size: .9rem; }
.state-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.state-chips label { margin: 0; position: relative; }
.state-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.state-chips span { display: block; text-align: center; padding: 8px 2px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .78rem;
  font-weight: 700; color: var(--muted); cursor: pointer; background: var(--surface); }
.state-chips input:focus-visible + span { outline: 2px solid var(--brand); }
.state-chips .st-neuf input:checked + span { background: #e2f1e7; border-color: var(--good); color: var(--good); }
.state-chips .st-bon input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.state-chips .st-usage input:checked + span { background: var(--amber-soft); border-color: var(--amber); color: var(--accent-ink); }
.state-chips .st-mauvais input:checked + span { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photo-del { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 6px; background: rgb(19 35 58 / .7); color: #fff; cursor: pointer; padding: 2px 6px; }
.photo-add { width: 92px; height: 92px; border: 2px dashed var(--line); border-radius: 8px; display: grid; place-items: center; align-content: center; gap: 2px;
  color: var(--brand); font-weight: 700; font-size: .8rem; cursor: pointer; margin: 0; position: relative; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sig-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 12px; }
.sig-pad { width: 100%; height: 150px; border: 1.5px dashed var(--line); border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.sig-grid figure { margin: 0; }
.sig-grid img { max-width: 100%; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.changes-card h2 { font-size: 1.05rem; display: flex; gap: 6px; align-items: center; }
form[inert] { opacity: .75; }
.eyebrow-dark { display: inline-block; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin-bottom: 8px; }
.features.highlight .feature { border-top: 3px solid var(--amber); }

/* ---------- Coffre-fort par locataire ---------- */
.vault-intro { max-width: 60em; }
.vault-property { margin-bottom: 26px; }
.vault-prop-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 1.2rem; margin: 6px 0 12px; }
.vault-prop-title .i { color: var(--amber); align-self: center; }
.vault-tenant, .vault-private { margin-bottom: 12px; }
.vault-tenant { border-left: 4px solid var(--brand); }
.vault-private { border-left: 4px solid #b9c3d0; background: #fafbfc; }
.vt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vt-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand);
  color: #fff; font: 800 1.15rem var(--serif); }
.vt-avatar.private { background: #e3e8ef; color: var(--muted); }
.vt-avatar .i { width: 20px; height: 20px; }
.vt-who { display: grid; gap: 1px; flex: 1 1 200px; min-width: 0; }
.vt-who .muted { overflow-wrap: anywhere; }
.vt-state { font-size: .78rem; font-weight: 700; border-radius: 99px; padding: 4px 10px; background: var(--surface-2); color: var(--muted); }
.vt-state.on { background: #e2f1e7; color: var(--good); }
.vt-empty { margin: 12px 0 4px; }
.vt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 12px; }
.vt-upload > summary { list-style: none; }
.vt-upload > summary::-webkit-details-marker { display: none; }
.vt-upload[open] { flex-basis: 100%; }
.vault-private .vt-upload { margin-top: 12px; }
.vt-upload-form { margin-top: 10px; background: var(--surface-2); border-radius: 10px; padding: 12px; }
.vdocs { list-style: none; margin: 12px 0 0; padding: 0; }
.vdoc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.vdoc-ico { width: 38px; height: 44px; flex: none; border-radius: 6px; display: grid; place-items: center; font: 800 .62rem var(--sans);
  letter-spacing: .04em; color: #fff; background: var(--bad); position: relative; }
.vdoc-ico.img { background: #4a7ab0; }
.vdoc-ico::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 9px 9px 0;
  border-color: transparent var(--surface) rgb(0 0 0 / .18) transparent; }
.vdoc-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.vdoc-main a { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.vdoc-main a:hover { text-decoration: underline; }
.vdoc-side { display: flex; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.tag .i { width: 13px; height: 13px; }
.tag.shared { background: var(--brand-soft); color: var(--brand); }
.tag.private { background: var(--surface-2); color: var(--muted); }
.tag.from { background: var(--amber-soft); color: var(--accent-ink); }
.vdoc-menu { position: relative; }
.vdoc-menu > summary { list-style: none; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.vdoc-menu > summary::-webkit-details-marker { display: none; }
.vdoc-menu > div { position: absolute; right: 0; top: 36px; z-index: 10; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 210px; }
.vdoc-menu > div a, .vdoc-menu > div .linkbtn { display: block; padding: 9px 10px; text-align: left; text-decoration: none; color: var(--ink); border-radius: 6px; width: 100%; }
.vdoc-menu > div .linkbtn.bad { color: var(--bad); }
.vdoc-menu > div a:hover, .vdoc-menu > div .linkbtn:hover { background: var(--surface-2); }
@media (max-width: 520px) { .vdoc-side .tag { display: none; } .vdoc-side .tag.from { display: inline-flex; } }
.vault-past > summary { cursor: pointer; color: var(--muted); font-weight: 700; margin: 4px 0 10px; }

/* Parcours de partage */
.share-wrap { max-width: 640px; }
.share-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.share-head h1 { font-size: clamp(1.4rem, 5vw, 1.8rem); margin: 0; }
.share-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.share-steps li { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted);
  border-top: 4px solid var(--line); padding-top: 8px; }
.share-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .78rem; flex: none; }
.share-steps li.current { color: var(--ink); border-color: var(--amber); }
.share-steps li.current span { background: var(--amber); color: #fff; }
.share-steps li.done { border-color: var(--good); }
.share-steps li.done span { background: var(--good); color: #fff; }
.share-card h2 { font-size: 1.3rem; }
.pick-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  font-weight: 400; margin: 0; position: relative; transition: border-color .15s, background .15s; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pick-main strong { overflow-wrap: anywhere; }
.pick-tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; font-weight: 800; flex: none; }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pick:has(input:checked) .pick-tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.add-doc legend { font-size: .95rem; }
.drop { display: flex; gap: 12px; align-items: center; border: 2px dashed var(--line); border-radius: 10px; padding: 14px; margin: 4px 0 12px;
  cursor: pointer; font-weight: 400; position: relative; }
.drop .i { width: 26px; height: 26px; color: var(--brand); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.share-actions { display: grid; gap: 10px; justify-items: center; }
.share-back { color: var(--muted); }
.mail-preview { display: grid; gap: 4px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 10px; padding: 14px; margin: 8px 0 10px; background: #fff; }
.mp-btn { justify-self: start; margin-top: 6px; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; border-radius: 8px; padding: 8px 12px; }
.share-done { text-align: center; }
.share-done .copy-row { max-width: 460px; margin: 0 auto; }
.done-burst { width: 72px; height: 72px; margin: 6px auto 12px; border-radius: 50%; background: #e2f1e7; color: var(--good); display: grid; place-items: center;
  animation: pop-in .6s cubic-bezier(.3,1.6,.5,1); }
.done-burst .i { width: 32px; height: 32px; }
@keyframes pop-in { from { transform: scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .done-burst { animation: none; } }
