/* CRM PARIMM : feuille de style unique */
:root {
  --bg: #f1f4fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #17223b;
  --muted: #61708a;
  --border: #e1e7f0;
  /* Couleur de la marque PARIMM (la préférée de Jerry) et ses nuances */
  --primary: #2f5496;
  --primary-hover: #26457b;
  --primary-dark: #1f3864;
  --primary-weak: #e9effa;
  /* Couleurs d'accent */
  --gold: #c08a2d;
  --gold-weak: #fbf3e2;
  --success: #12805c;
  --success-weak: #e3f5ee;
  --warning: #9a5b00;
  --warning-weak: #fff3dc;
  --danger: #c4321f;
  --danger-weak: #fdebe8;
  --corail: #e8573d;
  --corail-weak: #fdeee9;
  --ambre: #e59a1a;
  --ambre-weak: #fff5e0;
  --violet: #6e56cf;
  --violet-weak: #f0edfc;
  --turquoise: #0f9488;
  --turquoise-weak: #e1f5f2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 34, 59, .04), 0 3px 10px rgba(23, 34, 59, .05);
  --shadow-lg: 0 18px 40px rgba(23, 34, 59, .22);
  --sidebar: 232px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.45rem; font-weight: 650; }
h2 { font-size: 1.05rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 650; }
p { margin: 0 0 .6rem; }
img { max-width: 100%; display: block; }
.boot, .loading { padding: 48px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-word; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }

/* ---------- mise en page */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: none; background: var(--primary); color: #e6ecf6; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 16px 16px; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; }
.logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.logo img { width: 150%; height: 150%; max-width: none; }
a.brand, a.brand:hover { text-decoration: none; color: #fff; }
a.brand:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 10px; }
.brand small { display: block; font-weight: 400; font-size: .72rem; color: #c9d6ec; letter-spacing: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 8px; color: #e3e9f4; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .10); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .2); color: #fff; }
.nav .badge-count { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; }
.sidebar-foot button { margin-top: 6px; color: #c9d6ec; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.sidebar-foot button:hover { color: #fff; }
.main { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1280px; }
.topbar, .bottomnav { display: none; }
.badge-count {
  background: #e0453a; color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.badge-count:empty, .badge-count[data-zero] { display: none; }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { padding: 74px 14px 92px; }
  .topbar {
    display: flex; position: fixed; inset: 0 0 auto 0; height: 58px; z-index: 40; background: var(--primary); color: #fff;
    align-items: center; justify-content: space-between; padding: 0 14px; padding-top: env(safe-area-inset-top);
  }
  .topbar .brand { padding: 0; font-size: 1rem; }
  .topbar .logo { width: 34px; height: 34px; border-radius: 8px; }
  .topbar a { color: #fff; display: flex; padding: 8px; }
  .bottomnav {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 40; background: #fff; border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .7rem;
    color: var(--muted); position: relative;
  }
  .bottomnav a.active { color: var(--primary); font-weight: 600; }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav .badge-count { position: absolute; top: 3px; left: 54%; height: 17px; min-width: 17px; font-size: .65rem; }
}

/* ---------- en-têtes et cartes */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1080px) { .grid-2, .grid-main { grid-template-columns: minmax(0, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow); color: var(--text); display: block; }
.stat:hover { text-decoration: none; border-color: #c4cdd8; }
.stat .n { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.stat.hot .n { color: #c4362c; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--primary-weak); border: 1px solid #cbd7ee; color: var(--primary-dark); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.banner.warn { background: var(--warning-weak); border-color: #f2d7a6; color: #6b4000; }
.banner.ok { background: var(--success-weak); border-color: #bfe3cf; color: #145536; }
.banner.danger { background: var(--danger-weak); border-color: #f4c3bf; color: #7d1a14; }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); }

/* ---------- boutons et formulaires */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); padding: 8px 13px; font: inherit; font-weight: 550; font-size: .9rem; cursor: pointer;
  line-height: 1.2; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid #7a98d1; outline-offset: 1px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { filter: brightness(.95); }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.danger { color: var(--danger); border-color: #f0c4c0; }
.btn.danger:hover { background: var(--danger-weak); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.sm { padding: 5px 9px; font-size: .83rem; }
.btn.icon-only { padding: 6px; }
.btn.copied { background: var(--success-weak); border-color: #a9d8bd; color: var(--success); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; color: inherit; border: 1px solid #cfd6df; border-radius: var(--radius-sm); padding: 8px 10px; background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); }
label.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.choix-documents { display: grid; gap: 10px; margin-top: 12px; }
.choix-documents select { width: auto; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; min-width: 0; }
.field > span { font-weight: 550; font-size: .87rem; }
.field .hint { color: var(--muted); font-size: .8rem; }
.field > label.btn, .field > .btn { align-self: flex-start; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 650; padding: 0; margin-bottom: 10px; color: var(--primary); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .search, .search.big { flex: 1; min-width: 200px; position: relative; }
.toolbar .search input, .search.big input { padding-left: 34px; }
.toolbar .search .icon, .search.big .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar select { width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 9px 13px; color: var(--muted); font-weight: 550; border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; white-space: nowrap; }
.tabs a.active, .tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: .76rem; font-weight: 600; background: #eef1f5; color: #475467; white-space: nowrap; }
.badge.blue { background: var(--primary-weak); color: var(--primary); }
.badge.green { background: var(--success-weak); color: var(--success); }
.badge.amber { background: var(--warning-weak); color: var(--warning); }
.badge.red { background: var(--danger-weak); color: var(--danger); }
.badge.gold { background: var(--gold-weak); color: #8a5f17; }
.badge.seloger { background: #fde8ec; color: #b4123a; }
.badge.leboncoin { background: #fff0e6; color: #c2410c; }
.badge.luxe { background: #f2ecf9; color: #5b2a91; }
.score { font-weight: 700; color: var(--success); }

/* ---------- listes */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 13px 18px; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list > li.clickable { cursor: pointer; }
.list > li.clickable:hover { background: var(--surface-2); }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.row-title { font-weight: 600; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .87rem; align-items: center; }
.row-meta a { display: inline-flex; align-items: center; gap: 5px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.quote { margin-top: 7px; padding: 8px 11px; background: var(--surface-2); border-left: 3px solid #c9d3de; border-radius: 0 6px 6px 0; white-space: pre-wrap; word-break: break-word; font-size: .9rem; }
.quote.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
@media (max-width: 860px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--border); padding: 8px 4px; }
  .table td { border: 0; padding: 3px 12px; }
}
.more { display: flex; justify-content: center; padding: 14px; }

/* ---------- biens */
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos-grid + .btn-row { margin-top: 12px; }
.photo-tile { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #e7ebf0; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tile .num { position: absolute; top: 6px; left: 6px; background: rgba(31, 56, 100, .88); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.photo-tile .tools { display: flex; justify-content: space-between; padding: 4px; background: #fff; border-top: 1px solid var(--border); }
.galerie { display: flex; flex-direction: column; gap: 22px; }
.galerie figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.galerie figcaption { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; gap: 10px; }
.portail-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.portail-option { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.portail-option:hover { border-color: var(--primary); text-decoration: none; }
.portail-option h2 { font-size: 1.15rem; }
.apercu { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; white-space: pre-wrap; word-break: break-word; font-size: .9rem; max-height: 340px; overflow: auto; }
.bloc-copie { margin-bottom: 16px; }
.bloc-copie-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.manquants li { color: var(--danger); }

/* ---------- historique */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-weak); color: var(--primary); }
.timeline .dot.email { background: var(--primary-weak); color: var(--primary); }
.timeline .dot.appel { background: var(--success-weak); color: var(--success); }
.timeline .dot.demande { background: var(--gold-weak); color: #8a5f17; }
.timeline .dot.systeme { background: #f1f3f6; color: #7b8794; }
.timeline .t-title { font-weight: 600; font-size: .92rem; }
.timeline .t-date { color: var(--muted); font-size: .8rem; }

/* ---------- fenêtres, notifications */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px 20px; overflow-y: auto; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); }
.modal.lg { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 16px 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
#toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--primary-dark); color: #fff; padding: 11px 15px; border-radius: 9px; box-shadow: var(--shadow-lg); display: flex; gap: 9px; align-items: center; font-size: .92rem; animation: toast-in .18s ease-out; }
.toast.ok .icon { color: #7ee0a8; }
.toast.err { background: #8c1d16; }
@keyframes toast-in { from { transform: translateY(-8px); } to { transform: none; } }
.copy-buffer { position: fixed; top: -1000px; left: 0; opacity: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #eef1f5; border-radius: 999px; padding: 3px 10px; font-size: .85rem; }
.chip.warn { background: var(--warning-weak); color: var(--warning); }
.auth { max-width: 420px; margin: 9vh auto; padding: 0 16px; }
.auth .brand { color: var(--primary); flex-direction: column; justify-content: center; font-size: 1.35rem; padding: 0 0 18px; gap: 8px; }
.auth .logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.error-text { color: var(--danger); font-size: .9rem; margin: 6px 0; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 8px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; background: #f1f3f6; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.settings-nav a { padding: 8px 11px; border-radius: 7px; color: var(--text); }
.settings-nav a.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.settings-nav a:hover { text-decoration: none; background: rgba(0, 0, 0, .04); }
@media (max-width: 860px) { .settings { grid-template-columns: minmax(0, 1fr); } .settings-nav { position: static; flex-direction: row; overflow-x: auto; } .settings-nav a { white-space: nowrap; } }
.list-editor .item { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.list-editor .item input, .list-editor .item select { flex: 1; }
.modele { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }

/* ---------- recherche rapide et bouton « Ajouter » */
.sidebar-tools { display: flex; flex-direction: column; gap: 8px; padding: 2px 12px 10px; }
.sidebar-search { display: flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .14); border-radius: 8px; padding: 0 10px; color: #dbe4f3; }
.sidebar-search:focus-within { background: #fff; color: var(--muted); }
.sidebar-search input[type=search] { background: transparent; border: 0; color: inherit; padding: 8px 0; outline: none; }
.sidebar-search:focus-within input { color: var(--text); }
.sidebar-search input::placeholder { color: #c9d6ec; }
.sidebar-search:focus-within input::placeholder { color: var(--muted); }
.btn.add { background: #fff; color: var(--primary); border-color: #fff; width: 100%; }
.btn.add:hover { background: var(--primary-weak); }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.topbar-actions button { color: #fff; background: none; border: 0; padding: 8px; display: flex; cursor: pointer; }
.search.big { margin-bottom: 18px; }
.search.big input { font-size: 1.05rem; padding-top: 12px; padding-bottom: 12px; }
.choix-liste { display: flex; flex-direction: column; gap: 10px; }
.choix { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.choix:hover { border-color: var(--primary); background: var(--primary-weak); text-decoration: none; }
.choix strong { display: block; }
.choix small { color: var(--muted); }
.choix-icone { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-weak); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- guide de démarrage */
.etapes { list-style: none; margin: 0; padding: 6px 18px 10px; }
.etapes li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.etapes li:last-child { border-bottom: 0; }
.etapes li > :nth-child(2) { flex: 1; }
.etapes .puce { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c4cdd8; display: flex; align-items: center; justify-content: center; flex: none; }
.etapes li.fait { color: var(--muted); text-decoration: line-through; }
.etapes li.fait .puce { background: var(--success); border-color: var(--success); color: #fff; }

/* ---------- liste compacte sur téléphone */
@media (max-width: 860px) {
  .table.compacte tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 11px 14px; }
  .table.compacte td { width: auto; padding: 0; }
  .table.compacte td:first-child { flex: 1 1 60%; }
  .table.compacte td.mobile-cache { display: none; }
  .row-actions .btn { padding: 8px 12px; }
}

/* ---------- sélection des demandes */
.selection-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.toast-action { margin-left: 6px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: 4px 10px; font: inherit; font-weight: 600; cursor: pointer; }
.toast-action:hover { background: rgba(255, 255, 255, .28); }
.list > li.avec-case { position: relative; padding-left: 92px; }
.case-traitee { position: absolute; left: 14px; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; font-size: .74rem; color: var(--muted); cursor: pointer; text-align: center; }
.case-traitee input { width: 24px; height: 24px; cursor: pointer; accent-color: var(--success); }
.list > li.est-traitee { background: #f6faf7; }
.list > li.est-traitee .case-traitee { color: var(--success); font-weight: 600; }
.list > li.est-traitee .row-title a { color: var(--muted); }
@media (max-width: 860px) { .list > li.avec-case { padding-left: 64px; } .case-traitee { left: 6px; width: 54px; } }
.choix input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin: 0; }
label.choix { cursor: pointer; align-items: flex-start; }
label.choix small { display: block; margin-top: 3px; }
.choix.actif { border-color: var(--primary); background: var(--primary-weak); }

/* ---------- formulaire bien : choix rapides et détails repliables */
.segments { display: flex; flex-wrap: wrap; gap: 6px; }
.segments label { position: relative; cursor: pointer; }
.segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segments span { display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid #cfd6df; border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 500; user-select: none; }
.segments label:hover span { border-color: var(--primary); }
.segments input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.segments input:focus-visible + span { outline: 2px solid #7a98d1; outline-offset: 1px; }
.segments.large span { padding: 10px 26px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-sm); }
.plus-details summary { padding: 14px 18px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.plus-details summary::-webkit-details-marker { display: none; }
.plus-details summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.plus-details[open] summary::before { transform: rotate(90deg); }
.plus-details[open] summary { border-bottom: 1px solid var(--border); }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.form-actions .btn { padding: 10px 18px; font-size: .95rem; }
@media (max-width: 860px) {
  .form-actions { bottom: calc(56px + env(safe-area-inset-bottom)); }
  .form-bien .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- équipe : qui a fait quoi */
.deja { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 550; color: #8a4b00; background: #fff4e0; border: 1px solid #f6dcae; border-radius: 999px; padding: 2px 10px 2px 8px; margin-top: 4px; max-width: 100%; }
.deja.moi { color: var(--primary-dark); background: var(--primary-weak); border-color: #cbd7ee; }
.deja.long { font-size: .9rem; padding: 4px 12px; margin: 0; }
.banner.info-equipe { background: #fff8ec; border-color: #f2d7a6; color: #6b4000; }
.suivi-par { display: inline-flex; align-items: center; gap: 6px; }
.suivi-par select { width: auto; padding: 4px 8px; font-size: .85rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.sidebar-foot .moi { display: flex; align-items: center; gap: 10px; color: #fff; }
.sidebar-foot .moi:hover { text-decoration: none; }
.sidebar-foot .moi small { display: block; color: #c9d6ec; font-size: .74rem; }
.sidebar-foot .avatar { background: rgba(255, 255, 255, .18); color: #fff; }
.case-traitee small { font-size: .68rem; color: var(--success); font-weight: 500; }
.list > li.inactif { opacity: .6; }
.table td.activite .deja { margin-top: 0; }

/* ---------- publication : parcours en étapes */
.onglets-portails { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.onglets-portails a { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); color: var(--text); }
.onglets-portails a:hover { text-decoration: none; border-color: #b9c6dc; }
.onglets-portails a.active { border-color: var(--primary); background: var(--primary-weak); }
.etape .etape-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.etape-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.etape.faite .etape-num { background: var(--success); }
.ok-ligne { display: flex; align-items: flex-start; gap: 8px; color: var(--success); font-weight: 600; }
.ok-ligne > .icon { margin-top: 3px; }
.btn.grand { padding: 11px 18px; font-size: 1rem; }
.apercu.clamp { max-height: 120px; overflow: hidden; position: relative; cursor: pointer; }
.apercu.clamp::after { content: 'Afficher tout'; position: absolute; inset: auto 0 0 0; padding: 22px 12px 8px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--primary); background: linear-gradient(to bottom, rgba(248, 249, 251, 0), var(--surface-2) 60%); }
.photos-bande { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.photo-mini { position: relative; flex: none; width: 110px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.photo-mini img { width: 110px; height: 82px; object-fit: cover; }
.photo-mini .num { position: absolute; top: 4px; left: 4px; background: rgba(31, 56, 100, .88); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 5px; padding: 0 6px; }
.autres-statuts { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 10px; }
.autres-statuts summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.etape .btn-row + .bloc-copie { margin-top: 18px; }


/* =====================================================================
   Esthétique 2 : couleurs, profondeur, confort sur téléphone
   ===================================================================== */
body { background: radial-gradient(1200px 500px at 100% -10%, #e3ebfa 0%, transparent 60%), var(--bg); background-attachment: fixed; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
.sidebar { background: linear-gradient(180deg, #1c3360 0%, #2f5496 100%); box-shadow: 2px 0 18px rgba(23, 34, 59, .12); }
.nav a { border-radius: 10px; transition: background .15s; }
.nav a.active { background: rgba(255, 255, 255, .95); color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.nav a.active .icon { color: var(--primary); }
.sidebar-search { border: 1px solid rgba(255, 255, 255, .18); }
.btn.add { background: linear-gradient(135deg, #f3c56b, #e0a43c); border-color: transparent; color: #3a2606; font-weight: 700; box-shadow: 0 3px 10px rgba(224, 164, 60, .35); }
.btn.add:hover { filter: brightness(1.04); background: linear-gradient(135deg, #f3c56b, #e0a43c); }
.card { border-color: #e6ebf3; box-shadow: var(--shadow); }
.card-head { padding: 15px 18px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.btn { border-radius: var(--radius-sm); transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #3762ad, #2f5496); border-color: #2a4d8b; box-shadow: 0 2px 6px rgba(47, 84, 150, .28); }
.btn.primary:hover { background: linear-gradient(180deg, #3159a0, #284a86); }
.btn.success { background: linear-gradient(180deg, #16936b, #12805c); border-color: #0f7151; box-shadow: 0 2px 6px rgba(18, 128, 92, .25); }
.btn.success:hover { filter: brightness(1.05); }
.btn.gold { background: linear-gradient(180deg, #d09a3a, #c08a2d); border-color: #ad7b25; box-shadow: 0 2px 6px rgba(192, 138, 45, .28); }
.tabs a.active, .tabs button.active { font-weight: 650; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], input[type=url], select, textarea { border-radius: var(--radius-sm); border-color: #d3dbe7; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #7a98d1; box-shadow: 0 0 0 3px rgba(47, 84, 150, .14); }

/* Tuiles de l'accueil : une couleur par sujet */
.stat { display: flex; align-items: center; gap: 14px; border-radius: var(--radius); padding: 16px; border-color: #e6ebf3; transition: transform .12s, box-shadow .12s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23, 34, 59, .08); }
.stat-icone { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.stat-icone .icon { width: 22px; height: 22px; }
.stat .n { font-size: 1.75rem; }
.stat.ton-corail .stat-icone { background: var(--corail-weak); color: var(--corail); }
.stat.ton-ambre .stat-icone { background: var(--ambre-weak); color: var(--ambre); }
.stat.ton-violet .stat-icone { background: var(--violet-weak); color: var(--violet); }
.stat.ton-turquoise .stat-icone { background: var(--turquoise-weak); color: var(--turquoise); }
.stat.ton-corail.actif .n { color: var(--corail); }
.stat.ton-ambre.actif .n { color: #c27c06; }
.stat.ton-violet.actif .n { color: var(--violet); }
.stat.ton-turquoise .n { color: var(--turquoise); }

/* Biens : cartes plus vivantes */

/* Historique : couleurs par type */
.timeline .dot.appel { background: var(--success-weak); color: var(--success); }
.timeline .dot.email { background: var(--violet-weak); color: var(--violet); }
.timeline .row-top .btn.icon-only { margin-left: auto; }

/* Écran de connexion */
.auth { position: relative; }
body:has(.auth) { background: radial-gradient(900px 500px at 10% -10%, #3f68b5 0%, transparent 60%), linear-gradient(160deg, #1c3360, #2f5496 70%, #3a63a8); min-height: 100vh; }
.auth .brand { color: #fff; }
.auth .card { box-shadow: var(--shadow-lg); border: 0; }

/* Téléphone : barre du haut et menu du bas */
@media (max-width: 860px) {
  .topbar { background: linear-gradient(90deg, #1c3360, #2f5496); box-shadow: 0 2px 10px rgba(23, 34, 59, .18); }
  .bottomnav { box-shadow: 0 -4px 16px rgba(23, 34, 59, .08); border-top-color: #e6ebf3; }
  .bottomnav a.active { color: var(--primary); }
  .bottomnav a.active .icon { background: var(--primary-weak); border-radius: 10px; padding: 3px 12px; width: 44px; height: 26px; box-sizing: border-box; }
}

/* ---------- corrections de l'audit */
.lien-icone { display: inline-flex; align-items: center; gap: 5px; }
.table-scroll { overflow-x: auto; }
.hide-mobile { }
.menu-conteneur { position: relative; }
.menu-plus { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.menu-plus[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px; color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-item.danger { color: var(--danger); }
.btn-filtres { display: none; }
.filtres { display: contents; }
@media (max-width: 1250px) and (min-width: 861px) {
  .table.compacte td.mobile-cache:nth-child(2), .table.compacte th:nth-child(2) { display: none; }
}
@media (max-width: 860px) {
  .hide-mobile { display: none !important; }
  .btn.sm { min-height: 36px; padding: 6px 11px; }
  .btn.icon-only { min-width: 38px; min-height: 38px; justify-content: center; }
  .tabs a, .tabs button { padding: 11px 13px; }
  /* Téléphone : libellé et valeur sur la même ligne (fiches deux fois moins longues). */
  .kv { grid-template-columns: minmax(84px, 36%) minmax(0, 1fr); gap: 7px 12px; }
  .kv dt { font-size: .82rem; margin-top: 0; }
  .photos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .photo-tile .tools { padding: 2px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .menu-conteneur { margin-left: auto; }
  .menu-plus { right: 0; scroll-margin: 70px 0 90px; }
  .btn-filtres { display: inline-flex; }
  .toolbar .search { flex: 1 1 60%; min-width: 0; }
  .filtres { display: none; }
  .toolbar.ouvert .filtres { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
  .toolbar.ouvert .filtres select { flex: 1 1 45%; }
  .card-head .actions .btn { padding: 6px 10px; }
}
@media (max-width: 860px) { .suivi-par select { min-height: 36px; } }
.auth { margin: 0 auto; padding: 9vh 16px 40px; }
@media (max-width: 860px) {
  .btn-plus .libelle-plus { display: none; }
  .btn-plus { min-width: 42px; }
  .page-head .actions .menu-conteneur { margin-left: 0; }
}
.segments.petits { margin-top: 6px; } .segments.petits span { padding: 3px 10px; font-size: .78rem; }
.mt { margin-top: 12px; } .texte-alerte { color: var(--warning); }

/* ---------- statistiques */
.mobile-seulement { display: none !important; }
@media (max-width: 860px) { .mobile-seulement { display: inline-flex !important; } }
.seg-lien { display: inline-flex; padding: 7px 14px; border: 1px solid #cfd6df; border-radius: 999px; background: #fff; color: var(--text); font-weight: 550; font-size: .9rem; }
.seg-lien:hover { text-decoration: none; border-color: var(--primary); }
.seg-lien.actif { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-stats .stat { display: block; }
.page-stats .stat .n { font-size: 1.9rem; }
.page-stats .stat.ton-corail .n { color: var(--corail); }
.page-stats .stat.ton-ambre .n { color: #b87300; }
.page-stats .stat.ton-violet .n { color: var(--violet); }
.page-stats .stat.ton-turquoise .n { color: var(--turquoise); }
.barres-h { display: flex; flex-direction: column; gap: 8px; }
.bh-ligne { display: grid; grid-template-columns: minmax(90px, 32%) 1fr 44px; align-items: center; gap: 10px; color: var(--text); padding: 3px 4px; border-radius: 8px; }
a.bh-ligne:hover { background: var(--surface-2); text-decoration: none; }
.bh-label { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-piste { height: 14px; background: #eef2f8; border-radius: 0 4px 4px 0; overflow: hidden; }
.bh-barre { display: block; height: 100%; background: var(--primary); border-radius: 0 4px 4px 0; min-width: 2px; }
.bh-valeur { font-weight: 650; font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }
.empile { display: flex; height: 100%; gap: 2px; }
.empile .seg { display: block; height: 100%; min-width: 3px; }
.empile .seg:last-child { border-radius: 0 4px 4px 0; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.legende > span { display: inline-flex; align-items: center; gap: 6px; }
.pastille { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.colonnes { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 18px; border-bottom: 1px solid var(--border); }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; min-width: 0; outline: none; }
.col-barre { width: 70%; max-width: 38px; background: var(--primary); border-radius: 4px 4px 0 0; }
.col:hover .col-barre, .col:focus .col-barre { background: var(--primary-dark); }
.col-valeur { font-size: .74rem; font-weight: 650; color: var(--muted); margin-bottom: 3px; opacity: 0; }
.col:hover .col-valeur, .col:focus .col-valeur { opacity: 1; }
.col-label { position: absolute; bottom: -22px; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.colonnes + * { margin-top: 30px; }
.page-stats .colonnes { margin-bottom: 26px; }
.table.chiffres td, .table.chiffres th { text-align: right; white-space: nowrap; }
.table.chiffres td:first-child, .table.chiffres th:first-child { text-align: left; }
@media (max-width: 860px) {
  .table.chiffres thead { display: table-header-group; }
  .table.chiffres, .table.chiffres tbody { display: table; width: 100%; }
  .table.chiffres tr { display: table-row; }
  .table.chiffres td { display: table-cell; width: auto; padding: 6px 8px; }
  .col-label { font-size: .6rem; }
  .colonnes .col:nth-child(even) .col-label { display: none; }
}
.fiches-equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 12px; }
.fiche-collegue { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.fiche-collegue dl.chiffres { margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.fiche-collegue dl.chiffres > div { display: flex; justify-content: space-between; gap: 10px; }
.fiche-collegue dl.chiffres > div.sous { padding-left: 14px; color: var(--muted); font-size: .84rem; }
.fiche-collegue dt { display: inline-flex; align-items: center; gap: 6px; }
.fiche-collegue dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
h3.mt { margin-top: 18px; margin-bottom: 10px; }

/* ---------- mentions légales */
.liens-legaux { text-align: center; font-size: .82rem; color: rgba(255, 255, 255, .8); margin-top: 18px; }
.liens-legaux a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.main .liens-legaux, .card .liens-legaux { color: var(--muted); text-align: left; }
.main .liens-legaux a, .card .liens-legaux a { color: var(--primary); }
.auth.large { max-width: 760px; }
.texte-legal h2 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--primary-dark); }
.texte-legal p { line-height: 1.6; }
.sidebar-foot .lien-legal { display: block; margin-top: 8px; font-size: .74rem; color: #aebfdd; }
.banner.info-import { background: var(--violet-weak); border-color: #d9d1f7; color: #3b2a8c; }
.banner.info-import .check { display: flex; margin-top: 10px; font-weight: 600; }
.etapes-import { margin: 8px 0 0; padding-left: 20px; }
.etapes-import li { margin: 3px 0; }
.import-etape2 { margin-top: 6px; }
.import-etape2 .btn-row { margin: 12px 0; }

/* ---------- import d'une liste de biens */
.import-ligne { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.import-coche input { width: 20px; height: 20px; margin-top: 2px; }
.import-ligne .row-top strong { font-size: .95rem; }
.diffs { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; }
.diffs s { color: var(--muted); }
.import-cp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.import-cp input, .import-cp select { width: auto; max-width: 220px; padding: 5px 8px; }
input.cp-court { width: 110px; }

/* ---------- clients potentiels d'un bien */
.banner.clients-potentiels { background: linear-gradient(135deg, #fff7e6, #fdf0d8); border-color: #ecd3a0; color: #5a3d06; align-items: center; }
.banner.clients-potentiels strong { font-size: 1.05rem; color: #3a2606; }
.list > li.deja-envoye { background: #f6faf7; }
.signature-apercu { font-size: .88rem; line-height: 1.6; border-left: 3px solid var(--primary); }
.signature-perso { margin: 4px 0 14px; }
.signature-perso summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }

/* ---------- sélection de contacts et choix d'un bien */
.barre-selection { position: sticky; top: 8px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius); background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); }
.barre-selection .btn.primary { background: #fff; color: var(--primary); border-color: #fff; box-shadow: none; }
.barre-selection .btn.ghost { color: #fff; }
.table .col-coche { width: 36px; padding-right: 0; }
.coche-ligne { display: flex; padding: 4px; cursor: pointer; }
.coche-ligne input, .table th.col-coche input { width: 18px; height: 18px; }
.aide-bas { margin-top: 4px; }
.choix-biens { max-height: 55vh; overflow-y: auto; margin-top: 4px; }
.texte-ok { color: var(--success); font-weight: 600; }
@media (max-width: 860px) {
  .barre-selection { top: calc(64px + env(safe-area-inset-top, 0px)); }
  .table.compacte.table-contacts tr { position: relative; padding-left: 44px; }
  .table.compacte.table-contacts td.col-coche { position: absolute; left: 10px; top: 12px; width: auto; }
}
.nav-secondaire { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
.nav-secondaire a { font-size: .9rem; padding-top: 7px; padding-bottom: 7px; color: #c9d6ec; }
.pastilles-pub { display: flex; gap: 6px; flex-wrap: wrap; }
.pastille-pub { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: #8a94a6; }
.pastille-pub::before { content: '○ '; }
.pastille-pub.ok { background: var(--success-weak); color: var(--success); }
.pastille-pub.ok::before { content: '● '; }
.pastille-pub.encours { background: var(--warning-weak); color: var(--warning); }
.pastille-pub.encours::before { content: '◐ '; }
.settings.seul { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
input[type=file] { padding: 9px 0; font: inherit; max-width: 100%; }
/* Liste des biens : une ligne par bien, sans photo */
.ligne-bien { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; }
.ligne-bien .lb-info { min-width: 0; flex: 1; }
.ligne-bien .row-top { margin-bottom: 3px; }
.lb-prix { color: var(--primary-dark); font-size: .95rem; }
.lb-etat { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
@media (max-width: 860px) {
  .ligne-bien { flex-direction: column; align-items: stretch; }
  .lb-etat { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
/* Aperçu d'un email tel que le client le reçoit */
.apercu-objet { margin: 10px 0 8px; font-size: .92rem; }
.apercu-cadre { display: block; width: 100%; height: 560px; border: 1px solid var(--border); border-radius: 10px; background: #f4f6fa; }
.fin-compte { justify-content: space-between; align-items: center; margin: 4px 0 24px; }
/* Listes déroulantes de l'en-tête (statut, suivi par) : compactes et identiques */
.page-head .sub select { width: auto; min-height: 32px; padding: 4px 28px 4px 9px; font-size: .86rem; }
@media (max-width: 860px) { .page-head .sub select { min-height: 36px; } .kv dt:first-child { margin-top: 0; } }
.avertissements { margin: 4px 0 12px; padding-left: 18px; color: var(--muted); }

/* ============================================================== Lot 5 : vente / gestion, agenda, accueil */
.badge.teal { background: var(--turquoise-weak); color: var(--turquoise); }
.stat.ton-bleu .stat-icone { background: var(--primary-weak); color: var(--primary); }
.stat.ton-bleu.actif .n { color: var(--primary); }
.stat.ton-turquoise:not(.actif) .n { color: var(--text); }
.aide-haut { margin: -4px 0 14px; max-width: 760px; }

/* En-tête des espaces Vente et Gestion locative : un surtitre, un titre, des onglets en pastilles */
.entete-espace .page-head { margin-bottom: 12px; }
.surtitre { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 2px; }
.espace-location .surtitre { color: var(--turquoise); }
.onglets-espace { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin: 0 0 16px; padding-bottom: 2px; scrollbar-width: none; }
.onglets-espace::-webkit-scrollbar { display: none; }
.onglets-espace a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; transition: background .15s, border-color .15s; }
.onglets-espace a:hover { text-decoration: none; border-color: var(--primary); }
.onglets-espace a.actif { background: var(--primary); border-color: var(--primary); color: #fff; }
.espace-location .onglets-espace a:hover { border-color: var(--turquoise); }
.espace-location .onglets-espace a.actif { background: var(--turquoise); border-color: var(--turquoise); }
.onglets-espace .compte { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--corail); color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; }
.onglets-espace .compte.neutre { background: #8a94a6; }
.onglets-espace a.actif .compte { background: rgba(255, 255, 255, .28); }
.gestion-meta { margin-top: 3px; }
.btn.deplacer { color: var(--muted); }

/* Accueil : la phrase du jour */
.bonjour { background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; border-radius: calc(var(--radius) + 4px); padding: 26px 28px; margin-bottom: 18px; box-shadow: 0 14px 34px rgba(47, 84, 150, .25); position: relative; overflow: hidden; }
.bonjour h1 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; }
.phrase-du-jour { margin: 0; font-size: 1.08rem; line-height: 1.6; max-width: 720px; position: relative; z-index: 1; }
.phrase-du-jour strong { color: #fff; }
.lien-ici { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: rgba(255, 255, 255, .16); padding: 1px 8px; border-radius: 6px; }
.lien-ici:hover { background: rgba(255, 255, 255, .28); }
a.banner { text-decoration: none; }

/* Agenda : liste « À faire » */
.barre-agenda { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.barre-agenda select { width: auto; }
.agenda-liste { max-width: 860px; }
.resume-jour { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.gros-chiffre { font-size: 2.3rem; font-weight: 800; color: var(--primary); min-width: 46px; text-align: center; line-height: 1; }
.demandes-a-traiter { display: grid; gap: 8px; margin-bottom: 14px; }
.tache-demandes { display: flex; align-items: center; gap: 12px; background: var(--primary-weak); border: 1px solid #cbd7ee; color: var(--primary-dark); border-radius: var(--radius); padding: 12px 16px; }
.tache-demandes:hover { text-decoration: none; border-color: var(--primary); }
.tache-demandes > span { flex: 1; }
.ajout-rapide { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px dashed #c9d3e3; border-radius: var(--radius); padding: 4px 6px 4px 14px; margin-bottom: 18px; color: var(--muted); }
.ajout-rapide input { border: 0; box-shadow: none; background: transparent; padding: 10px 4px; }
.ajout-rapide input:focus { outline: none; box-shadow: none; }
.groupe-taches { margin-bottom: 18px; }
.groupe-taches h2 { display: flex; align-items: center; gap: 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px 4px; }
.groupe-taches h2 .compte { background: #e9edf3; color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: .72rem; }
.groupe-taches.retard h2 { color: var(--danger); }
.groupe-taches.retard h2 .compte { background: var(--danger-weak); color: var(--danger); }
.groupe-taches.aujourdhui h2 { color: var(--primary); }
.groupe-taches.aujourdhui h2 .compte { background: var(--primary-weak); color: var(--primary); }
.liste-taches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-taches.accueil { padding: 12px 14px; }
.tache { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 11px 12px 11px 12px; box-shadow: var(--shadow); transition: opacity .25s, transform .15s; }
.tache:hover { transform: translateY(-1px); }
.tache.ton-turquoise { border-left-color: var(--turquoise); }
.tache.ton-violet { border-left-color: var(--violet); }
.tache.ton-ambre { border-left-color: var(--ambre); }
.tache.ton-or { border-left-color: var(--gold); }
.tache.en-retard { background: #fffafa; }
.tache.faite { opacity: .55; }
.tache.faite .tache-titre > span:last-child { text-decoration: line-through; }
.tache-coche { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: 1px; color: var(--primary); }
.tache-coche input { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; }
.tache-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-weight: 600; line-height: 1.4; }
.tache-heure { background: var(--primary); color: #fff; border-radius: 6px; padding: 1px 7px; font-size: .78rem; font-weight: 700; }
.tache-type { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tache.ton-violet .tache-type { color: var(--violet); }
.tache.ton-turquoise .tache-type { color: var(--turquoise); }
.tache.ton-ambre .tache-type { color: #b87a0a; }
.tache-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.tache-meta a { display: inline-flex; align-items: center; gap: 4px; }
.tache-droite { display: flex; align-items: center; gap: 6px; }
.chip-agence { font-size: .7rem; font-weight: 700; background: var(--gold-weak); color: #8a5f17; border-radius: 999px; padding: 2px 8px; }
.avatar.mini { width: 24px; height: 24px; font-size: .72rem; }
.faites-recemment { margin-top: 10px; }
.faites-recemment summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 8px 4px; }

/* Agenda : semaine et mois */
.nav-calendrier { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.nav-calendrier strong { font-size: 1.05rem; min-width: 200px; text-align: center; }
.semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.jour { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-height: 180px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.jour.passe { background: #fafbfd; }
.jour.aujourdhui { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-weak), var(--shadow); }
.jour-tete { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.jour-tete strong { font-size: 1.15rem; color: var(--text); }
.jour.aujourdhui .jour-tete strong { color: #fff; background: var(--primary); border-radius: 999px; min-width: 28px; text-align: center; padding: 1px 6px; }
.jour-corps { padding: 6px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.puce { display: block; text-align: left; width: 100%; border: 0; border-left: 3px solid var(--primary); background: var(--primary-weak); color: var(--primary-dark); border-radius: 6px; padding: 4px 7px; font: inherit; font-size: .78rem; line-height: 1.35; cursor: pointer; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.puce:hover { text-decoration: none; filter: brightness(.97); }
.puce.ton-violet { border-left-color: var(--violet); background: var(--violet-weak); color: #4a3a96; }
.puce.ton-turquoise { border-left-color: var(--turquoise); background: var(--turquoise-weak); color: #0b6b62; }
.puce.ton-ambre { border-left-color: var(--ambre); background: var(--ambre-weak); color: #8a5c05; }
.puce.ton-or { border-left-color: var(--gold); background: var(--gold-weak); color: #8a5f17; }
.puce.faite { opacity: .5; text-decoration: line-through; }
.ajout-jour { margin-top: auto; align-self: flex-end; border: 0; background: transparent; color: #b3bccb; border-radius: 6px; padding: 3px 5px; cursor: pointer; }
.ajout-jour:hover { color: var(--primary); background: var(--primary-weak); }
.mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mois-entete { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.case { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; min-height: 96px; padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.case.hors-mois { background: #f7f9fc; opacity: .65; }
.case.aujourdhui { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-weak); }
.num-jour { align-self: flex-start; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .85rem; color: var(--text); cursor: pointer; border-radius: 6px; padding: 1px 6px; }
.case.aujourdhui .num-jour { background: var(--primary); color: #fff; }
.case .puce { -webkit-line-clamp: 1; font-size: .72rem; padding: 2px 5px; }
.plus-evenements { border: 0; background: transparent; color: var(--primary); font-size: .75rem; font-weight: 700; cursor: pointer; text-align: left; padding: 0 5px; }
@media (max-width: 860px) {
  .semaine { grid-template-columns: minmax(0, 1fr); }
  .jour { min-height: 0; }
  .jour-tete { justify-content: flex-start; gap: 10px; }
  .case { min-height: 62px; }
  .case .puce { display: none; }
  .case.a-evenements::after { content: ''; }
  .resume-jour { padding: 14px; }
  .bonjour { padding: 20px; }
  .bonjour h1 { font-size: 1.4rem; }
  .phrase-du-jour { font-size: 1rem; }
}
@media (max-width: 860px) { .case .puce:first-of-type { display: block; -webkit-line-clamp: 1; font-size: .62rem; padding: 1px 3px; } }

/* Recherche d'un contact dans une fenêtre */
.choix-contact { position: relative; }
.suggestions { list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; left: 0; right: 0; z-index: 30; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; }
.suggestions button { width: 100%; border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 7px; cursor: pointer; font: inherit; display: flex; flex-direction: column; }
.suggestions button:hover { background: var(--primary-weak); }
.suggestions small { color: var(--muted); }

/* Gestion : propriétaires et locataires */
.logements { display: grid; gap: 6px; margin-top: 8px; }
.logement { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-radius: 10px; background: var(--turquoise-weak); color: #0b5f57; font-size: .88rem; }
.logement:hover { text-decoration: none; filter: brightness(.98); }
.logement span:first-of-type { font-weight: 600; }

/* Fiche bien : brochure, vidéo, offres */
.media-ligne { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.media-ligne + .media-ligne { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
.media-icone { width: 40px; height: 40px; border-radius: 11px; background: var(--corail-weak); color: var(--corail); display: flex; align-items: center; justify-content: center; flex: none; }
.media-icone.video { background: var(--violet-weak); color: var(--violet); }
.media-texte { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.media-texte input { padding: 7px 10px; }
.montant-offre { font-size: 1.05rem; color: var(--primary-dark); }
.list > li.faite { opacity: .6; }

/* Contacts : doublons, personnes qui ne veulent plus être contactées, emails reçus */
.onglets-contacts { margin-top: -4px; }
.paire { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin: 8px 0; }
.paire > .icon { color: var(--muted); }
.fiche-doublon { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.fiche-doublon:hover { text-decoration: none; border-color: var(--primary); }
@media (max-width: 860px) { .paire { grid-template-columns: minmax(0, 1fr); } .paire > .icon { justify-self: center; transform: rotate(90deg); } }
.timeline .dot.recu { background: var(--turquoise-weak); color: var(--turquoise); }
.quote.recu { border-left-color: var(--turquoise); background: #f2fbfa; }
.banner.danger .icon { vertical-align: -3px; }

/* Page publique « Ne plus être contacté » */
.page-desinscription { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.corps-desinscription { max-width: 460px; width: 100%; padding: 32px 28px; text-align: center; }
.corps-desinscription h1 { font-size: 1.4rem; margin: 12px 0 8px; }
.corps-desinscription p { color: var(--muted); line-height: 1.6; }
.logo-desinscription { width: 64px; height: 64px; }
.corps-desinscription form { margin-top: 18px; }
.ajout-rapide input { flex: 1; min-width: 0; }

/* ============================================================== Aura, l'assistante */
.aura-bouton { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; border: 0; border-radius: 50%; cursor: grab; font: inherit; color: #fff; background: linear-gradient(135deg, #6e56cf 0%, #2f5496 100%); box-shadow: 0 8px 22px rgba(76, 72, 180, .38); transition: transform .15s, box-shadow .15s, opacity .2s; touch-action: none; -webkit-user-select: none; user-select: none; }
.aura-bouton:hover { transform: scale(1.06); box-shadow: 0 12px 28px rgba(76, 72, 180, .45); }
.aura-bouton .icon { width: 22px; height: 22px; }
.aura-bouton .aura-bulle-nom { font-size: .62rem; font-weight: 700; letter-spacing: .02em; line-height: 1; margin-top: 2px; }
.aura-bouton.glisse { cursor: grabbing; transform: scale(1.1); box-shadow: 0 16px 34px rgba(76, 72, 180, .5); transition: none; opacity: .92; }
body.aura-ouverte .aura-bouton { opacity: 0; pointer-events: none; }
.aura-panneau { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: 420px; max-width: 100vw; display: flex; flex-direction: column; background: var(--surface); box-shadow: -18px 0 40px rgba(23, 34, 59, .18); transform: translateX(105%); transition: transform .25s ease; }
.aura-panneau.ouvert { transform: translateX(0); }
.aura-tete { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #f3f0ff 0%, #eef3fb 100%); }
.aura-titre { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.aura-titre small { color: var(--muted); font-size: .78rem; }
.aura-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #6e56cf 0%, #2f5496 100%); flex: none; }
.aura-avatar.grand { width: 56px; height: 56px; margin: 0 auto 10px; }
.aura-avatar.grand .icon { width: 26px; height: 26px; }
.aura-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.aura-accueil { text-align: center; padding: 18px 6px; }
.aura-accueil h3 { margin: 0 0 6px; }
.aura-accueil p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.aura-suggestions { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.aura-suggestions button { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .9rem; color: var(--primary-dark); cursor: pointer; }
.aura-suggestions button:hover { border-color: var(--violet); background: var(--violet-weak); }
.aura-bulle { max-width: 90%; padding: 10px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.55; word-break: break-word; }
.aura-bulle.moi { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.aura-bulle.elle { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.aura-bulle.erreur { border-color: #f3c4bc; background: #fff7f5; }
.aura-texte p { margin: 0 0 8px; }
.aura-texte p:last-child { margin-bottom: 0; }
.aura-texte ul { margin: 4px 0 8px; padding-left: 18px; }
.aura-texte li { margin: 2px 0; }
.aura-actions { display: grid; gap: 6px; margin-top: 10px; }
.aura-action { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--success-weak); color: #0d5e44; font-size: .86rem; font-weight: 600; }
.aura-action:hover { text-decoration: none; filter: brightness(.98); }
.aura-action > span { flex: 1; }
.aura-action.email { background: var(--violet-weak); color: #4a3a96; flex-wrap: wrap; }
.aura-action.contact, .aura-action.bien, .aura-action.lot, .aura-action.demande { background: var(--surface); border: 1px solid var(--border); color: var(--primary-dark); }
.aura-action.contact:hover, .aura-action.bien:hover, .aura-action.lot:hover, .aura-action.demande:hover { border-color: var(--violet); background: var(--violet-weak); }
.aura-action > .icon:last-child:not(:first-child) { opacity: .45; }
.aura-bulle.attente { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.points { display: inline-flex; gap: 4px; }
.points i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); opacity: .35; animation: aura-point 1.2s infinite ease-in-out; }
.points i:nth-child(2) { animation-delay: .15s; }
.points i:nth-child(3) { animation-delay: .3s; }
@keyframes aura-point { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aura-saisie { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px 6px; border-top: 1px solid var(--border); background: var(--surface); }
.aura-saisie textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 12px; border-radius: 12px; }
.aura-envoyer { min-width: 44px; min-height: 44px; border-radius: 12px; }
.aura-mention { margin: 0; padding: 4px 16px 12px; font-size: .72rem; color: var(--muted); background: var(--surface); }
@media (max-width: 860px) {
  .aura-bouton { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .aura-panneau { width: 100vw; }
  .aura-saisie { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .masque-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aura-panneau { transition: none; } .points i { animation: none; opacity: .7; } }

/* ============================================================== Gestion locative : registre (propriétaires, lots, occupants) */
.numero-proprio { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--primary-dark); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.num-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--primary-dark); white-space: nowrap; }
h1 .num-ref { font-size: .8em; }
.appt-num { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.chemin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.chemin > .icon { opacity: .4; }
details.card.anciens > summary { cursor: pointer; list-style: none; }
details.card.anciens > summary::-webkit-details-marker { display: none; }
details.card.anciens > summary h2::before { content: '▸ '; color: var(--muted); }
details.card.anciens[open] > summary h2::before { content: '▾ '; }
details.card.anciens .list li { opacity: .85; }
.registre > li.proprio { padding: 14px 18px; }
.registre .row-top { gap: 8px; }
.lots { display: grid; gap: 4px; margin-top: 8px; }
.card > .lots { padding: 10px 14px 14px; margin: 0; }
.lot-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; color: var(--text); font-size: .9rem; }
a.lot-ligne:hover { text-decoration: none; border-color: #cfd8e6; background: #fff; }
.lot-occupants { flex: 1 1 160px; min-width: 0; font-weight: 500; }
.chiffres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chiffre { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: inherit; font-size: .86rem; color: var(--muted); }
button.chiffre { cursor: pointer; }
button.chiffre:hover { border-color: #c4cdd8; }
.chiffre strong { color: var(--text); font-size: 1rem; }
.chiffre.actif { background: var(--primary-weak); border-color: var(--primary); color: var(--primary-dark); }
.chip.manquant { padding: 4px 10px; border-radius: 999px; background: var(--warning-weak); color: var(--warning); font-size: .82rem; }
details.controle { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--surface-2); }
details.controle.warn { background: var(--warning-weak); border-color: #f1dcb2; }
details.controle summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
details.controle ul { margin: 8px 0 2px; padding-left: 18px; max-height: 240px; overflow: auto; }
.note-rapide { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.note-rapide textarea { flex: 1; min-height: 44px; }
@media (max-width: 720px) {
  .registre > li.proprio { padding: 12px; }
  .lot-ligne { font-size: .86rem; }
  .chiffres { gap: 6px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chiffre { flex: none; }
}
.cle-ia { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.cle-ia input { flex: 1; min-width: 0; }
.rang { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--violet-weak); color: var(--violet); font-weight: 700; font-size: .82rem; }
.card-head .row-top h2 { margin: 0; }
.aura-source { display: block; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.aura-micro { min-width: 44px; min-height: 44px; border-radius: 12px; }
.aura-micro.ecoute { background: var(--danger); border-color: var(--danger); color: #fff; animation: aura-ecoute 1.2s infinite ease-in-out; }
@keyframes aura-ecoute { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 50, 31, .35); } 50% { box-shadow: 0 0 0 8px rgba(196, 50, 31, 0); } }
.aura-tete .btn.actif { color: var(--violet); background: var(--violet-weak); }
.aura-action.confirmer { background: var(--violet-weak); color: #4a3a96; flex-wrap: wrap; }
.aura-action.confirmer.danger { background: var(--danger-weak, #fdecec); color: #9b1c1c; }
.aura-action.confirmer.fait { background: var(--success-weak); color: #0d5e44; }
.aura-action.confirmer.rate { background: var(--warning-weak, #fff4e0); color: #8a5300; }
.aura-action.fichier, .aura-action.page, .aura-action.reglages { background: var(--surface); border: 1px solid var(--border); color: var(--primary-dark); }
@media (prefers-reduced-motion: reduce) { .aura-micro.ecoute { animation: none; } }

/* ============================================================== Loyers et documents classés */
.nav-mois { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.nav-mois strong { font-size: 1.05rem; min-width: 150px; text-align: center; }
.chiffre.alerte { border-color: #f3c4bc; background: var(--danger-weak); color: var(--danger); }
.loyer-ligne .row-top { gap: 8px; }
.loyer-montant { margin-left: auto; font-weight: 700; white-space: nowrap; }
.loyer-ligne.statut-en_retard { box-shadow: inset 3px 0 0 var(--danger); }
.loyer-ligne.statut-paye .loyer-montant { color: var(--success); }
.chip-ok { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--success); background: var(--success-weak); border-radius: 999px; padding: 3px 9px; }
.docs { padding: 4px 0 8px; }
.doc-groupe + .doc-groupe { border-top: 1px solid var(--border); }
.doc-type { padding: 10px 18px 2px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc-ligne { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.doc-ligne > a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 180px; word-break: break-word; }
.doc-actions { display: inline-flex; gap: 2px; margin-left: auto; }
@media (max-width: 720px) { .loyer-montant { margin-left: 0; } }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Aura : fichiers joints (trombone, glisser-déposer) */
.aura-trombone { min-width: 44px; min-height: 44px; border-radius: 12px; }
.aura-joints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aura-joints.en-cours { margin: 0; padding: 10px 14px 0; border-top: 1px solid var(--border); background: var(--surface); }
.aura-joint { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; color: var(--text); }
.aura-joint > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.aura-joint small { color: var(--muted); }
.aura-joint progress { width: 60px; height: 6px; }
.aura-joint.pret { border-color: #b9e3d2; background: var(--success-weak); }
.aura-joint.rate { border-color: #f4c3bf; background: var(--danger-weak); }
.aura-joint-x { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--muted); display: inline-flex; }
.aura-bulle.moi .aura-joint { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: inherit; }
.aura-bulle.moi .aura-joint:hover { text-decoration: none; background: rgba(255, 255, 255, .26); }
.aura-panneau.depot { outline: 3px dashed var(--violet); outline-offset: -8px; }
progress.progression { width: 100%; height: 8px; margin: 6px 0 2px; }
.logo-ligne { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-apercu { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 6px; }
.boite-envoi { padding: 12px 0; border-bottom: 1px solid var(--border); display: grid; gap: 6px; }
.boite-envoi:last-of-type { border-bottom: 0; }
.boite-mdp { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.boite-mdp input { flex: 1 1 220px; min-width: 0; }
.aura-depuis { flex-basis: 100%; }
.aura-depuis .field { margin: 4px 0 0; }
.aura-depuis select { font-size: .82rem; padding: 6px 8px; }
details.modele { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; background: var(--surface); }
details.modele[open] { background: var(--surface-2); }
details.modele summary { cursor: pointer; list-style: none; }
details.modele summary::-webkit-details-marker { display: none; }
.aide-variables { margin-bottom: 10px; }
.aide-variables summary { cursor: pointer; color: var(--primary); }
details.reglages-avances { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; }
details.reglages-avances summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); }

/* Estimations */
.estimation-prix { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; padding: 4px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.estimation-montant { font-size: 2rem; font-weight: 800; color: var(--primary-dark); line-height: 1.15; letter-spacing: -.01em; }
.estimation-fourchette strong { font-size: 1.1rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table.compact th, .table.compact td { padding: 6px 8px; font-size: .85rem; white-space: nowrap; }
.list li.actif { background: var(--primary-weak); }

/* Proposition de réponse rédigée par Aura */
.btn.proposition { border-color: #cfc6f3; color: #4b3fa3; background: linear-gradient(135deg, #f4f1ff 0%, #eef3fc 100%); }
.btn.proposition:hover { background: linear-gradient(135deg, #ebe5ff 0%, #e2ebfa 100%); }
.proposition-aura { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #f4f1ff 0%, #eef3fc 100%); border: 1px solid #ddd6fb; }
.proposition-titre { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #4b3fa3; }
.proposition-aura ul { margin: 8px 0 0; padding-left: 18px; }
.proposition-aura .a-verifier { margin-top: 8px; color: #7a4b00; }

/* Épuration : listes longues repliées, rapprochements groupés par bien, lignes compactes */
.voir-plus { list-style: none; text-align: center; padding: 6px 0 !important; border-bottom: 0 !important; background: none !important; }
.groupes-alertes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.groupe-alertes { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow, none); overflow: hidden; }
.groupe-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.groupe-tete .row-title { font-size: 1.02rem; }
.liste-alertes { margin: 0; }
.alerte-client { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.alerte-qui { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; flex: 1 1 260px; }
.alerte-qui > .small { flex-basis: 100%; }
.alerte-client .row-actions { margin-top: 0; flex-wrap: nowrap; }
.loyer-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 18px; }
.loyer-ligne .row-actions { margin-top: 0; flex-wrap: nowrap; }
.loyer-ligne .loyer-montant { margin-left: 0; }
@media (max-width: 720px) {
  .loyer-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .loyer-ligne .row-actions { grid-column: 1 / -1; }
  .alerte-client .row-actions .libelle-plus { display: none; }
}
.famille-echeances { list-style: none; }
.famille-echeances > details > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 11px 14px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); font-weight: 600; color: var(--text); }
.famille-echeances > details[open] > summary { margin-bottom: 8px; }
.famille-echeances .compte, .groupe-taches h2 .compte { margin-left: 4px; }
.groupe-replie > summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 6px 2px; }
.rapprochements li { padding-top: 10px; padding-bottom: 10px; }
.client-potentiel .row-actions { margin-top: 6px; }
.lien-manquant .btn-row input { flex: 1 1 240px; min-width: 0; }

/* Réglages > Agence : ce que le CRM a lu sur le site de l'agence */
.site-infos { margin: 6px 0 14px; }
.site-infos p { margin: 4px 0; }
.site-bloc { border: 1px solid var(--border, #e3e8ef); border-radius: var(--radius); margin: 8px 0; background: #fff; }
.site-bloc summary { padding: 10px 14px; cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
.site-bloc summary::-webkit-details-marker { display: none; }
.site-bloc summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.site-bloc[open] summary::before { transform: rotate(90deg); }
.site-bloc ul { margin: 0; padding: 0 14px 12px 32px; }
.site-bloc li { margin: 4px 0; line-height: 1.45; }

/* Fenêtre d'appel : date de rappel personnalisée */
.date-rappel { margin-top: 8px; max-width: 220px; }

/* Tâches : bouton « Préparer l'email » / « Ouvrir » */
.tache-droite .btn.faire { white-space: nowrap; }
@media (max-width: 640px) {
  /* Le bouton passe sous le titre : le titre garde toute la largeur. */
  .tache { grid-template-columns: auto minmax(0, 1fr); }
  .tache-droite { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}

/* Repli : flèche qui déplie les informations (propriétaires, cartes…) */
.btn.deplier svg { transition: transform .15s; }
.btn.deplier[aria-expanded="true"] svg { transform: rotate(90deg); }
.proprio .row-top { align-items: center; }
.proprio-details { margin: 6px 0 2px 34px; }
@media (max-width: 640px) { .proprio-details { margin-left: 0; } }

/* Cartes repliées : titre et boutons visibles, contenu sur demande */
.card.repliable .btn.repli svg { transition: transform .15s; }
.card.repliable .btn.repli[aria-expanded="true"] svg { transform: rotate(90deg); }
.card.replie > .card-head { border-bottom: 0; }
.card.repliable > .card-head .actions { flex-wrap: wrap; justify-content: flex-end; }

/* Analyse d'un dossier locataire */
.pieces-dossier { margin: 10px 0 14px; }
.pieces-dossier li { padding: 6px 0; display: flex; align-items: center; gap: 4px; }
.rapport-dossier .rapport { margin-top: 16px; }
.rapport-dossier h3 { font-size: 14px; margin: 14px 0 6px; }
.rapport-dossier .alertes-piece { color: #7d4a00; margin: 4px 0 0 16px; }
.groupe-taches > h2 { display: flex; align-items: center; gap: 8px; }
.groupe-taches > h2 .btn.repli { margin-left: auto; font-size: 13px; font-weight: 500; }
.btn.repli svg { transition: transform .15s; }
.btn.repli[aria-expanded="true"] svg { transform: rotate(90deg); }

/* Fenêtre d'email : pièce jointe + « Voir » pour la relire avant l'envoi */
.pj { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.pj .chip { min-width: 0; }
.voir-pj { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }

/* Fiche du bien : dossier pour les notaires */
.notaire-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.notaire-ligne > .muted.small:first-child { min-width: 150px; }
.notaire-ligne .btn { margin-left: auto; }
.pieces-titre { font-size: 14px; margin: 16px 0 6px; }
.pieces-notaire li { padding: 8px 0; }
.pieces-notaire .row-top { align-items: center; gap: 8px; }
.pieces-notaire .piece-libelle { flex: 1; min-width: 0; }
.pieces-notaire .etat-piece { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; }
.pieces-notaire li.presente .etat-piece { background: var(--success-weak); color: #145536; }
.pieces-notaire li.manquante .etat-piece { background: var(--danger-weak); color: #7d1a14; }
.pieces-fichiers { margin: 4px 0 0 30px; }

/* Fiche d'un locataire : loyer et fin du bail sous son appartement. Carte « Logement et mandat » : sous-titre. */
.lot-ligne .lot-resume { flex-basis: 100%; color: var(--text); }
.sous-titre-carte { font-size: .85rem; color: var(--muted); font-weight: 650; margin: 14px 0 8px; }
/* Fiche bien : les points clés en pastilles. */
.points-cles { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.points-cles .chip { font-size: .8rem; padding: 2px 9px; }
/* Dossier pour les notaires : liste des pièces repliable. */
.pieces-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.pieces-details > summary::-webkit-details-marker { display: none; }
.pieces-details > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.pieces-details[open] > summary::before { transform: rotate(90deg); }

/* ============================================================== Mandats et signature électronique */
.segments-liens { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.seg-n { margin-left: 6px; background: var(--corail); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; font-weight: 700; }
.seg-lien.actif .seg-n { background: #fff; color: var(--primary); }
.mandat-numero { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; color: var(--primary-dark); background: var(--primary-weak); border-radius: 6px; padding: 1px 8px; font-size: .85rem; }
.mandat-ligne .row-meta span { display: inline-flex; align-items: center; gap: 5px; }
.choix-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.choix-carte { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; cursor: pointer; background: #fff; }
.choix-carte:has(input:checked) { border-color: var(--primary); background: var(--primary-weak); }
.choix-carte input { margin-top: 3px; accent-color: var(--primary); width: 17px; height: 17px; flex: none; }
.choix-carte strong { display: block; }
.choix-carte small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; line-height: 1.35; }
.honoraires-calcul { color: var(--success); display: block; margin: -4px 0 10px; }
.signature-cadre { border: 1px dashed #b9c6dc; border-radius: 12px; padding: 8px; background: #fbfcff; }
.signature-toile { width: 100%; height: auto; aspect-ratio: 600 / 220; background: #fff; border-radius: 8px; touch-action: none; cursor: crosshair; display: block; box-shadow: inset 0 -2px 0 #e1e7f0; }
.signature-texte { font-size: 1.3rem !important; font-style: italic; color: #1f3a8a; }
.signature-outils { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.etapes-signature { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.etapes-signature li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.etapes-signature .puce { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c4cdd8; display: flex; align-items: center; justify-content: center; }
.etapes-signature li.fait .puce { background: var(--success); border-color: var(--success); color: #fff; }
.etapes-signature li.refuse .puce { background: var(--danger); border-color: var(--danger); color: #fff; }
.etapes-signature li.attente .puce { border-color: var(--ambre); }
/* Pages publiques (signature, dépôt de dossier) : sans menu, centrées, pour téléphone d'abord. */
body.page-publique { background: var(--bg); }
.publique { max-width: 640px; margin: 0 auto; padding: 18px 14px 60px; }
.publique-entete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.publique-entete .logo { width: 44px; height: 44px; }
.publique-entete strong { display: block; color: var(--primary-dark); }
.publique-entete small { color: var(--muted); }
.publique-carte { padding: 20px 18px; }
.publique-carte h1 { font-size: 1.3rem; margin-bottom: 6px; }
.publique-etape { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.publique-etape h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 10px; }
.publique-etape .etape-num { width: 26px; height: 26px; font-size: .85rem; }
.publique-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
.publique-actions .lien-bouton { align-self: center; }
.publique-note { margin-top: 14px; }
.publique-ok { width: 54px; height: 54px; border-radius: 50%; background: var(--success-weak); color: var(--success); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.code-saisie { font-size: 1.4rem !important; letter-spacing: .3em; max-width: 180px; text-align: center; margin-top: 8px; }
/* Calendrier de la vente */
.calendrier-vente { list-style: none; margin: 0; padding: 0; position: relative; }
.calendrier-vente li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 0 0 14px; position: relative; }
.calendrier-vente li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.calendrier-vente li.fait:not(:last-child)::before { background: var(--success); }
.calendrier-vente .puce { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c4cdd8; background: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--muted); position: relative; z-index: 1; }
.calendrier-vente li.fait .puce { background: var(--success); border-color: var(--success); color: #fff; }
.calendrier-vente li.prochaine .puce { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-weak); }
.calendrier-vente li.prochaine strong { color: var(--primary-dark); }
/* Dossier pour les notaires : demander les pièces qui manquent */
.btn-row.serre { gap: 6px; flex-wrap: nowrap; }
.pieces-manque { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.pieces-manque p { margin: 0; flex: 1 1 260px; }
@media (max-width: 560px) { .pieces-notaire .row-top { flex-wrap: wrap; } .pieces-notaire .btn-row.serre { margin-left: 30px; } }
/* Dossiers des candidats (lien de dépôt) */
.compte-nouveau { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 10px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.depot-lien { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.depot-lien p { margin: 0; }
.depot-lien-ligne { display: flex; gap: 8px; }
.depot-lien-ligne input { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); }
.candidatures li .row-top { gap: 8px; flex-wrap: wrap; }
.pieces-candidat li { padding: 6px 0; }
.pieces-candidat .row-top { align-items: center; gap: 8px; justify-content: flex-start; }
.pieces-candidat .etat-piece { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; }
.pieces-candidat li.presente .etat-piece { background: var(--success-weak); color: #145536; }
.pieces-candidat li.manquante .etat-piece { background: var(--danger-weak); color: #7d1a14; }
.pieces-candidat .small { margin-left: 28px; }
.candidature-detail h3 { margin: 16px 0 6px; font-size: .95rem; }
/* Page publique du candidat */
.depot-logement { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--primary-weak, #eef2fb); margin: 6px 0 10px; }
.depot-pieces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.depot-piece { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.depot-piece-tete { display: flex; justify-content: space-between; gap: 10px; width: 100%; }
.depot-piece-tete small { display: block; margin-top: 2px; }
.depot-etat { flex-shrink: 0; font-size: .85rem; }
.depot-etat .ok { color: var(--success); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.depot-fichiers { list-style: none; margin: 0; padding: 0; width: 100%; }
.depot-fichiers li { display: flex; align-items: center; gap: 6px; font-size: .88rem; padding: 2px 0; }
.depot-fichiers li > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.publique .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .publique .form-grid { grid-template-columns: 1fr; } }
.aura-action.copier > span { font-size: .8rem; word-break: break-all; }
.import-texte { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.import-texte .row-top { justify-content: space-between; align-items: center; }
/* Aide sur les mots techniques : un petit « ? » à côté du mot, l'explication au toucher */
.lexique-aide { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; padding: 0; margin-left: 2px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); font: 700 .68rem/1 inherit; cursor: help; vertical-align: 2px; flex: none; }
.lexique-aide:hover, .lexique-aide:focus-visible { color: var(--primary); border-color: var(--primary); }
h1 .lexique-aide { vertical-align: 6px; }
.lexique-bulle { position: absolute; z-index: 300; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #1d2a44; color: #fff; font-size: .85rem; line-height: 1.4; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); }
.lexique-bulle strong { color: #ffd98a; }
/* Annonces : à vendre / à louer / toutes */
.segments .segment { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid #cfd6df; border-radius: 999px; background: #fff; font-size: .92rem; font-weight: 600; color: var(--text); text-decoration: none; }
.segments .segment:hover { border-color: var(--primary); }
.segments .segment.actif { background: var(--primary); border-color: var(--primary); color: #fff; }
.filtre-annonces { margin: 4px 0 12px; }
/* Propriétaire : mandat et documents */
.dossier-proprio-section + .dossier-proprio-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.dossier-proprio-section h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 1rem; }
.dossier-proprio-section > .row-top { justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.dossier-proprio-section > .row-top h3 { margin: 0; }
