/* ImmoGest — interface agence. Clair, aéré, lisible ; une action principale par écran. */
:root {
  --bg: #f5f6fa; --surface: #fff; --text: #101828; --muted: #5d6677; --faint: #98a1b2;
  --line: #e7eaf0; --line-strong: #d3d9e3;
  --primary: #2f5be4; --primary-hover: #2449c4; --primary-soft: #eef2fe; --primary-ink: #1f3fa8;
  --accent: #f59e0b;
  --green: #0b7a45; --green-bg: #e5f6ed; --amber: #8f5300; --amber-bg: #fff3d9;
  --red: #c2321f; --red-bg: #fdecea; --grey-bg: #f0f2f6;
  --dispo: #0f8a5f; --dispo-bg: #dcf3e8;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.04);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.12), 0 2px 6px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 15px; }
body { margin: 0; font: 1rem/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.65rem; line-height: 1.25; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 1.12rem; margin: 0 0 14px; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 1rem; margin: 22px 0 10px; font-weight: 700; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; }
::selection { background: #d7e1ff; }

/* ---------- structure : menu latéral + barre du haut */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 0; padding: 2px 10px 4px; font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.brand::before { content: ""; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #3b6cff, #2342b8); box-shadow: inset 0 0 0 6px rgba(255,255,255,.18); flex-shrink: 0; margin-right: 10px; }
.brand span { color: var(--primary); }
.agency-name { font-size: .87rem; color: var(--muted); padding: 0 10px 14px 50px; margin-top: -6px; }
.sidebar a { color: #344054; padding: 9px 12px; border-radius: 10px; display: flex; align-items: center; gap: 11px; font-weight: 550; }
.sidebar a svg.i { color: #7c8597; }
.sidebar a:hover { background: var(--grey-bg); text-decoration: none; color: var(--text); }
.sidebar a.active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 650; }
.sidebar a.active svg.i { color: var(--primary); }
.nav-section { font-size: .78rem; font-weight: 650; color: var(--faint); margin: 16px 12px 4px; text-transform: uppercase; letter-spacing: .06em; }
.nav-count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: .78rem; font-weight: 800; padding: 1px 8px; min-width: 22px; text-align: center; }
details.more > summary { list-style: none; cursor: pointer; color: #344054; padding: 9px 12px; border-radius: 10px; display: flex; align-items: center; gap: 11px; font-weight: 550; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover { background: var(--grey-bg); }
details.more > summary svg.i { color: #7c8597; }
details.more[open] > summary .chev { transform: rotate(90deg); }
.chev { margin-left: auto; transition: transform .15s; }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.sidebar-foot a { padding: 7px 10px; font-size: .93rem; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: rgba(245,246,250,.85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; min-height: 42px; padding: 9px 44px 9px 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; }
.search input:focus { outline: 3px solid #d7e1ff; border-color: var(--primary); }
.search > svg.i { position: absolute; left: 14px; top: 12px; color: var(--faint); pointer-events: none; }
.search kbd { position: absolute; right: 12px; top: 10px; font: 600 .78rem/1 inherit; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 7px; background: var(--grey-bg); }
.search-results { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow-y: auto; }
.search-results .group { font-size: .76rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 4px; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.search-results a:hover, .search-results a.on { background: var(--primary-soft); text-decoration: none; }
.search-results .sub { color: var(--muted); font-size: .88rem; }
.search-results .none { padding: 14px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 48px; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.menu-list a, .menu-list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font: inherit; font-weight: 550; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--grey-bg); text-decoration: none; }
.menu-list svg.i { color: var(--muted); }
.menu-list .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-list .head { padding: 8px 12px 6px; font-size: .88rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #e0e8ff, #c7d4fb); color: var(--primary-ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-size: .9rem; }

.content { padding: 8px 32px 56px; max-width: 1440px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 10px 0 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: .95rem; margin-bottom: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; margin-bottom: 20px; }
.cols > .card { margin-bottom: 0; }
.lead { font-size: 1.02rem; color: var(--muted); max-width: 920px; margin: -8px 0 22px; }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; background: var(--primary); color: #fff; border: 1px solid var(--primary); border-radius: var(--radius-sm); padding: 8px 16px; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(47,91,228,.25); transition: background .12s, box-shadow .12s; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); text-decoration: none; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #c3d2ff; outline-offset: 1px; }
.btn.ghost { background: var(--surface); color: #344054; border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.btn.ghost:hover { background: var(--grey-bg); }
.btn.danger { background: var(--red); border-color: var(--red); box-shadow: none; }
.btn.success { background: var(--green); border-color: var(--green); box-shadow: none; }
.btn.small { min-height: 32px; padding: 4px 12px; font-size: .92rem; }
.btn.full { width: 100%; margin-top: 6px; min-height: 46px; font-size: 1.02rem; }
.btn.big { min-height: 48px; padding: 10px 20px; font-size: 1.02rem; }
.btn svg.i { width: 16px; height: 16px; }
button.link { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font: inherit; }
button.link:hover { text-decoration: underline; }

/* ---------- onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--primary-ink); border-color: var(--primary); }
.seg-links { display: inline-flex; background: #e9ecf3; border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-links a { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.seg-links a:hover { color: var(--text); text-decoration: none; }
.seg-links a.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.12); }

/* ---------- tableaux */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 650; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fafc; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
td a { font-weight: 600; }
.table-wrap { padding: 0; overflow-x: auto; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 24px; }
.table-wrap th:last-child, .table-wrap td:last-child { padding-right: 24px; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }
.table-title { padding: 20px 24px 6px; margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 44px 20px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty-state .ico svg.i { width: 26px; height: 26px; }
.empty-state b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }
.right { text-align: right; } .center { text-align: center; } .small { font-size: .9rem; } .muted { color: var(--muted); }
.red { color: var(--red); } .green { color: var(--green); } .big { font-size: 2rem; font-weight: 800; margin: 4px 0; letter-spacing: -.02em; }
.pre { white-space: pre-wrap; }
.pager { display: flex; gap: 20px; justify-content: center; font-weight: 600; margin-top: 8px; }

/* ---------- formulaires */
input, select, textarea { font: inherit; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); width: 100%; transition: border-color .12s, box-shadow .12s; }
textarea { min-height: 104px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b8c1cf; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px #dbe4ff; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); }
input[type=file] { padding: 7px; }
.form .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label > span { font-size: .92rem; font-weight: 600; color: #344054; }
.form label.wide { grid-column: 1 / -1; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; padding-top: 26px; font-weight: 600; }
.form h2.section { margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1rem; }
.help { color: var(--muted); font-size: .86rem; font-weight: 400; }
.form-actions { margin-top: 24px; display: flex; gap: 10px; align-items: center; }
.danger-zone { margin: -6px 0 24px; }
details.more-fields { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more-fields > summary { cursor: pointer; font-weight: 650; color: var(--primary); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
details.more-fields > summary::-webkit-details-marker { display: none; }
details.more-fields[open] > summary .chev { transform: rotate(90deg); }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=search] { max-width: 340px; } .toolbar select, .toolbar input[type=month] { width: auto; }
form.inline { display: flex; gap: 8px; align-items: center; } form.inline.wrap { flex-wrap: wrap; }
form.inline input, form.inline select { width: auto; } .w-num { width: 120px !important; }
label.check { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; }
label.check input { margin-top: 2px; flex-shrink: 0; } label.check > span { display: inline; }
form.inline-x { display: inline; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span, .field > legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field > span.help { font-weight: 400; font-size: .86rem; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #e9ecf3; border-radius: 11px; padding: 3px; }
.seg label { position: relative; text-align: center; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 80px; text-align: center; font-size: 1.1rem; font-weight: 700; }
.stepper button { width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--primary); }
.stepper button:hover { background: var(--primary-soft); }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypick label { position: relative; }
.daypick input { position: absolute; opacity: 0; }
.daypick span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 650; cursor: pointer; user-select: none; }
.daypick input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }

/* liste déroulante avec recherche (remplace les longues listes) */
.combo { position: relative; }
.combo > input { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2398a1b2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; padding: 4px; }
.combo-list div { padding: 9px 11px; border-radius: 8px; cursor: pointer; }
.combo-list div:hover, .combo-list div.on { background: var(--primary-soft); }
.combo-list div.add { color: var(--primary); font-weight: 650; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.combo-list .none { color: var(--muted); cursor: default; }
.combo-list .none:hover { background: none; }

/* ---------- messages, badges, notifications */
.flash { padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; background: var(--green-bg); color: var(--green); border: 1px solid #bfe6cf; font-weight: 550; }
.flash.error { background: var(--red-bg); color: var(--red); border-color: #f6c8c1; }
.flash.info { background: var(--primary-soft); color: var(--primary-ink); border-color: #d3defd; }
.flash a { color: inherit; text-decoration: underline; }
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: #101828; color: #fff; padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 550; display: flex; gap: 12px; align-items: center; animation: toast-in .25s ease-out; }
.toast.error { background: var(--red); }
.toast::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8rem; }
.toast.error::before { content: "!"; }
.toast button { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.45); color: #fff; font: inherit; font-weight: 700; border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.ptoast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; transition: .2s; background: #101828; color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; z-index: 50; pointer-events: none; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.ptoast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ptoast.error { background: var(--red); }
.ptoast button { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; font: inherit; font-weight: 700; border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 650; background: var(--grey-bg); color: #475467; white-space: nowrap; vertical-align: middle; }
.badge.green { background: var(--green-bg); color: var(--green); } .badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); } .badge.blue { background: var(--primary-soft); color: var(--primary-ink); }
.score { font-weight: 800; color: var(--green); }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-ink); border-radius: 8px; padding: 4px 10px; margin: 3px 4px 3px 0; font-size: .92rem; font-weight: 600; }

/* ---------- tableaux de bord */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
a.kpi:hover { border-color: #c3d2ff; text-decoration: none; transform: translateY(-1px); }
.kpi b { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.02em; }
.kpi .kpi-label { font-size: .88rem; color: var(--muted); font-weight: 600; order: -1; }
.kpi .kpi-sub, .kpi span { font-size: .86rem; color: var(--muted); }
.period-title { font-size: 1.05rem; margin: 0 0 14px; } .period-title .muted { font-weight: 400; font-size: .95rem; }
.row-item { padding: 12px 0; border-bottom: 1px solid var(--line); } .row-item:last-child { border: 0; padding-bottom: 0; } .row-item:first-of-type { padding-top: 0; }
.alerts ul { margin: 0; padding: 0; list-style: none; }
.alerts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .alerts li:last-child { border: 0; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.mini { margin: 0; padding-bottom: 26px; }
.mini figcaption { font-weight: 650; margin-bottom: 10px; font-size: .95rem; }
.bars { display: flex; align-items: stretch; gap: 8px; height: 150px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; position: relative; }
.bar-col .bar { width: 100%; max-width: 34px; background: var(--primary); border-radius: 4px 4px 0 0; transition: background .15s; }
.bar-col .bar.partial { background: #a9bdf6; }
.bar-col:hover .bar { background: var(--primary-ink); }
.bar-val { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; white-space: nowrap; }
.bar-lab { position: absolute; bottom: -24px; font-size: .8rem; color: var(--muted); }
.hbar-cell { min-width: 260px; }
.hbar { height: 10px; background: var(--grey-bg); border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.hbar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.hbar-val { font-size: .93rem; font-variant-numeric: tabular-nums; }
.appt { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.appt:first-of-type { padding-top: 0; } .appt:last-of-type { border: 0; }
.appt-time { font-size: 1.2rem; font-weight: 800; color: var(--primary); min-width: 66px; display: flex; flex-direction: column; line-height: 1.2; letter-spacing: -.02em; }
.appt-time small { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.appt-title { font-weight: 700; } .appt.past { opacity: .55; } .appt .badge { margin-left: 6px; }
.todo { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.checklist { list-style: none; padding: 0; margin: 0 0 6px; }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--line); } .checklist li:last-child { border: 0; }
.checklist .help { margin: 4px 0 0 28px; }
.msg-body { background: var(--grey-bg); border-radius: 12px; padding: 16px 18px; font-family: inherit; }
.card h2 svg.i { vertical-align: -3px; }
.summary-title { cursor: pointer; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; color: var(--primary); list-style: none; }
.summary-title::-webkit-details-marker { display: none; }

/* ---------- fiches */
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 550; }
.energy { display: inline-block; min-width: 28px; text-align: center; color: #fff; font-weight: 800; border-radius: 6px; padding: 1px 7px; background: #999; }
.energy.eA { background: #009c6d; } .energy.eB { background: #52b153; } .energy.eC { background: #a5cc74; } .energy.eD { background: #f4e70f; color: #333; }
.energy.eE { background: #f0b40f; } .energy.eF { background: #eb8235; } .energy.eG { background: #d7221f; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.photos figure { margin: 0; } .photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.upload { display: flex; gap: 10px; }
code.block { display: block; background: var(--grey-bg); padding: 12px 14px; border-radius: 10px; overflow-x: auto; margin: 8px 0; font-size: .92rem; }
.rule { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); } .rule:last-child { border: 0; }
.rule .when { min-width: 200px; font-weight: 700; } .rule .what { flex: 1; } .rule .what .muted { font-size: .93rem; }
.group-badge { background: var(--amber-bg); color: var(--amber); border-radius: 99px; padding: 2px 10px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.next-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.who-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.avail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .avail-layout > section { order: -1; } }

/* ---------- agenda */
.agenda-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.agenda-bar .week { font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; }
.people { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.person:hover { text-decoration: none; border-color: #b8c1cf; }
.person.on { background: var(--text); border-color: var(--text); color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cal-hint { color: var(--muted); font-size: .93rem; margin: -4px 0 14px; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.cal-grid { display: grid; grid-template-columns: 60px repeat(7, minmax(130px, 1fr)); min-width: 1000px; }
.cal-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: center; }
.cal-head .dow { font-size: .82rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.cal-head .dnum { font-size: 1.45rem; font-weight: 750; line-height: 1.25; }
.cal-head.today .dnum { background: var(--primary); color: #fff; border-radius: 99px; display: inline-block; min-width: 40px; padding: 0 8px; }
.cal-head .count { font-size: .82rem; color: var(--muted); }
.cal-times { position: relative; }
.cal-times div { position: absolute; right: 8px; transform: translateY(-50%); font-size: .8rem; color: var(--faint); font-weight: 600; }
.cal-day { position: relative; border-left: 1px solid var(--line); }
.cal-day.today { background: #fbfcff; } .cal-day.weekend { background: #fbfbfd; }
.cal-hour { display: block; border-top: 1px solid #eff1f5; position: relative; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; padding: 0; cursor: pointer; }
.cal-hour:hover { background: var(--primary-soft); text-decoration: none; }
.cal-hour:hover::after { content: "+ Visite"; position: absolute; left: 8px; top: 6px; font-size: .82rem; font-weight: 700; color: var(--primary); }
.band { position: absolute; left: 0; right: 0; pointer-events: none; opacity: .12; }
.band-label { position: absolute; right: 4px; font-size: .72rem; font-weight: 700; pointer-events: none; }
.off { position: absolute; left: 0; right: 0; pointer-events: none; background: repeating-linear-gradient(135deg, #eceef3 0 8px, #f6f7fa 8px 16px); display: flex; justify-content: center; padding-top: 6px; font-size: .82rem; font-weight: 650; color: var(--muted); }
.ev { position: absolute; z-index: 2; border-radius: 9px; padding: 5px 9px; color: #fff; font-size: .88rem; line-height: 1.3; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,.2); border: 0; text-align: left; font-family: inherit; cursor: pointer; }
.ev:hover { text-decoration: none; filter: brightness(1.06); z-index: 4; }
.ev b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .who { display: block; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.cancelled { opacity: .45; text-decoration: line-through; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: #e5484d; z-index: 3; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 14px; border-radius: 4px; display: inline-block; }

/* calendrier des disponibilités (glisser-déposer) */
.pcal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.pcal { display: grid; grid-template-columns: 56px repeat(7, minmax(120px, 1fr)); min-width: 940px; user-select: none; }
.pc-corner, .pc-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); }
.pc-head { text-align: center; padding: 10px 6px; display: flex; flex-direction: column; }
.pc-head span { font-size: .8rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.pc-head b { font-size: 1.3rem; line-height: 1.25; }
.pc-head.today b { color: #fff; background: var(--primary); border-radius: 99px; align-self: center; min-width: 38px; padding: 0 8px; }
.pc-times { position: relative; }
.pc-times div { position: absolute; right: 8px; transform: translateY(-50%); font-size: .8rem; color: var(--faint); font-weight: 600; }
.pc-col { position: relative; border-left: 1px solid var(--line); cursor: crosshair; touch-action: pan-x pan-y; background-image: linear-gradient(to bottom, #eff1f5 1px, transparent 1px); }
.pc-col.today { background-color: #fbfcff; } .pc-col.past { background-color: #fbfbfd; }
.pc-ev { position: absolute; left: 4px; right: 18px; border-radius: 9px; padding: 4px 8px; font-size: .84rem; line-height: 1.3; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.pc-ev b { font-size: .88rem; white-space: nowrap; }
.pc-ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ev.dispo { background: var(--dispo-bg); border: 1px solid #a8dcc3; border-left: 4px solid var(--dispo); color: #0b4f37; cursor: grab; z-index: 1; }
.pc-ev.dispo.once { border-style: dashed; border-left-style: solid; }
.pc-ev.dispo:hover { box-shadow: 0 2px 8px rgba(15,138,95,.22); }
.pc-ev .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pc-ev .tags em { font-style: normal; font-size: .74rem; font-weight: 700; background: rgba(255,255,255,.75); border-radius: 4px; padding: 0 5px; }
.pc-ev.short .tags { display: none; } .pc-ev.short { gap: 0; padding-top: 2px; }
.pc-ev.visit { left: 22%; right: 4px; z-index: 2; background: var(--primary); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer; }
.pc-ev.visit:hover { text-decoration: none; filter: brightness(1.08); }
.pc-ev.absence { background: repeating-linear-gradient(135deg, #eceef3 0 8px, #f6f7fa 8px 16px); color: var(--muted); border: 1px solid #dde1e8; cursor: grab; z-index: 1; }
.pc-ev.ghost { left: 4px; right: 4px; background: rgba(47,91,228,.13); border: 2px dashed var(--primary); color: var(--primary-ink); z-index: 4; pointer-events: none; }
.pc-ev.dragging { opacity: .85; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 5; cursor: grabbing; }
.pc-ev .grip { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; }
.pc-ev .grip::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; margin-left: -11px; height: 3px; border-radius: 3px; background: currentColor; opacity: .35; }
.pc-now { position: absolute; left: 0; right: 0; height: 2px; background: #e5484d; z-index: 3; pointer-events: none; }

/* ---------- fenêtres et panneau latéral */
dialog.pdlg { border: 0; border-radius: 18px; padding: 0; width: min(500px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.pdlg::backdrop { background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px); }
.pdlg form { padding: 22px 24px; }
.pdlg-head { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pdlg-head h2 { margin: 0 0 2px; } .pdlg-head .muted::first-letter { text-transform: uppercase; }
.pdlg-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.x { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--faint); cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.x:hover { background: var(--grey-bg); color: var(--text); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 55; box-shadow: -12px 0 40px rgba(16,24,40,.16); transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.drawer-head h2 { margin: 0; }
.drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.big-actions .btn { min-height: 46px; }
.newc { background: var(--grey-bg); border-radius: 12px; padding: 14px; margin: -6px 0 16px; }
.newc .two { margin-bottom: 8px; }

/* ---------- authentification */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(1200px 600px at 50% -10%, #e3eaff, var(--bg)); }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.auth-card h2 { margin: 0; }
.brand.big { font-size: 1.6rem; justify-content: center; margin-bottom: 6px; padding: 0; }
.brand.big::before { width: 36px; height: 36px; }

@media (max-width: 1100px) { .avail-layout { grid-template-columns: 1fr; } .kpis.four, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar a { white-space: nowrap; padding: 8px 12px; }
  .nav-section, .agency-name, .brand, details.more, .sidebar-foot { display: none; }
  .topbar { padding: 0 14px; } .content { padding: 8px 14px 40px; }
  .search kbd { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px; } .dl dt { font-weight: 600; } .dl dd { margin-bottom: 8px; }
  .cols { grid-template-columns: 1fr; } .card { padding: 18px; }
  .rule { flex-wrap: wrap; } .rule .when { min-width: 0; width: 100%; }
  .btn-label { display: none; }
}
@media print { .sidebar, .topbar, .actions, form, .tabs { display: none !important; } .content { padding: 0; } .card { border: 0; box-shadow: none; } }
.clickable { cursor: pointer; border-radius: 10px; transition: background .12s; }
.clickable:hover { background: #f6f8fd; }
.appt.clickable { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.todo-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.todo-row:last-of-type { border-bottom: 0; }
.todo-what { flex: 1; padding: 4px 8px; margin-left: -8px; }

/* Réglages › Site et widget */
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 64px; height: 44px; padding: 2px; border-radius: 10px; cursor: pointer; }
.logo-preview { background: var(--grey-bg); border-radius: 10px; padding: 12px; display: inline-block; margin-bottom: 6px; }
.logo-preview img { max-height: 56px; max-width: 240px; display: block; }
.brand-preview { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.brand-preview .bp-price { font-weight: 800; font-size: 1.25rem; color: var(--b); filter: brightness(.8); }
.brand-preview .bp-slots { display: flex; gap: 6px; }
.brand-preview .bp-slots i { font-style: normal; font-weight: 600; font-size: .9rem; border: 1px solid #cfd6df; border-radius: 7px; padding: 4px 9px; }
.brand-preview .bp-slots i.on { background: var(--b); border-color: var(--b); color: var(--ob); }
.brand-preview .bp-btn { background: var(--b); color: var(--ob); border-radius: 9px; padding: 9px 16px; font-weight: 700; }

/* Notifications en direct (réservation du site) */
.toast.live { background: #fff; color: var(--text, #172033); border: 1px solid var(--line); border-left: 5px solid var(--green, #12805c); align-items: center; animation: toast-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.toast.live::before { content: "📅"; background: var(--green-bg, #e4f5ec); width: 34px; height: 34px; font-size: 1rem; }
.toast.live.cancel { border-left-color: var(--red); } .toast.live.cancel::before { content: "✕"; background: var(--red-bg); color: var(--red); }
.toast.live.inquiry { border-left-color: var(--primary); } .toast.live.inquiry::before { content: "✉"; background: var(--primary-soft); color: var(--primary); }
.toast.live .toast-sub { color: var(--muted); font-weight: 450; font-size: .92rem; margin-top: 2px; }
.toast.live button { color: var(--primary); border-color: var(--line-strong); }
@keyframes toast-pop { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
.fresh { animation: fresh-pulse 1.6s ease-out 3; z-index: 4; }
@keyframes fresh-pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 128, 92, .7); } 100% { box-shadow: 0 0 0 14px rgba(18, 128, 92, 0); } }
.sidebar-foot .demo-link { color: var(--green); font-weight: 650; }

/* Agenda sur le téléphone */
.phone-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ok-line { display: flex; gap: 10px; align-items: flex-start; color: var(--green); font-weight: 550; }
.g-logo { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; align-items: center; justify-content: center; font-family: Arial, sans-serif; }
.sub-grid { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; margin-bottom: 8px; }
.qr-box { text-align: center; } .qr-box img { width: 170px; height: 170px; display: block; }
.sub-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (max-width: 700px) { .sub-grid { grid-template-columns: 1fr; } .qr-box { display: none; } }

/* Encart « temps gagné » */
.saved { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(230px, 1fr) 2.2fr; gap: 10px 28px; align-items: center;
  background: linear-gradient(120deg, #0d5c3f 0%, #12805c 55%, #1a9e74 100%); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin: 0 0 22px; box-shadow: var(--shadow-lg); }
.saved::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.saved-kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 650; }
.saved-big { font-size: clamp(2.4rem, 4vw, 3.3rem); font-weight: 800; line-height: 1.05; margin: 4px 0; letter-spacing: -.02em; }
.saved-sub { opacity: .92; }
.saved-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 1; }
.saved-grid div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; }
.saved-grid b { display: block; font-size: 1.7rem; line-height: 1.1; }
.saved-grid span { font-size: .84rem; opacity: .92; line-height: 1.3; display: block; margin-top: 3px; }
.saved-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: .74rem; opacity: .7; }
@media (max-width: 1100px) { .saved { grid-template-columns: 1fr; } .saved-grid { grid-template-columns: repeat(2, 1fr); } }

/* Planning : outils, types de blocs, fenêtres */
.k-visite { --k: #0f8a5f; --kb: #dcf3e8; --kt: #0b4f37; }
.k-reunion { --k: #7c3aed; --kb: #efe7ff; --kt: #4c1d95; }
.k-repas { --k: #e8590c; --kb: #fff0e3; --kt: #8a3205; }
.k-pause { --k: #64748b; --kb: #eef1f5; --kt: #334155; }
.k-autre { --k: #0b7285; --kb: #e0f4f7; --kt: #0b4f5c; }
.k-absence { --k: #98a1b2; --kb: #f1f2f5; --kt: #5d6677; }
.ptools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; box-shadow: var(--shadow); position: sticky; top: 64px; z-index: 6; }
.ptool-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ptool-title { font-weight: 650; color: var(--muted); margin-right: 4px; }
.ptool { position: relative; }
.ptool input { position: absolute; opacity: 0; pointer-events: none; }
.ptool span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; font-weight: 650; cursor: pointer; user-select: none; }
.ptool span i { width: 12px; height: 12px; border-radius: 4px; background: var(--k); }
.ptool.k-absence span i { background: repeating-linear-gradient(135deg, #c3c8d2 0 3px, #eef0f4 3px 6px); }
.ptool input:checked + span { background: var(--kb); border-color: var(--k); color: var(--kt); box-shadow: 0 0 0 2px var(--kb); }
.ptool input:focus-visible + span { outline: 2px solid var(--primary); }
.prepeat { margin-left: 8px; white-space: nowrap; }
.kind-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.legend .sw.k-visite, .legend .sw.k-reunion, .legend .sw.k-repas, .legend .sw.k-pause { background: var(--kb); border: 1px solid var(--k); border-left-width: 4px; }

.pc-col { background-image: linear-gradient(to bottom, #e6e9ef 1px, transparent 1px), linear-gradient(to bottom, #f4f5f8 1px, transparent 1px); background-size: 100% var(--hour, 60px), 100% var(--sub, 15px); }
.pc-head { position: sticky; }
.pc-copy { margin: 4px auto 0; border: 0; background: none; color: var(--faint); font: inherit; font-size: .74rem; font-weight: 650; cursor: pointer; border-radius: 6px; padding: 1px 6px; opacity: 0; transition: opacity .15s; }
.pc-head:hover .pc-copy, .pc-copy:focus-visible { opacity: 1; } .pc-copy:hover { background: var(--primary-soft); color: var(--primary); }
@media (hover: none) { .pc-copy { opacity: 1; } }
.pc-ev.blk { background: var(--kb); border: 1px solid color-mix(in srgb, var(--k) 35%, transparent); border-left: 4px solid var(--k); color: var(--kt); cursor: grab; z-index: 1; }
.pc-ev.blk.once { border-style: dashed; border-left-style: solid; }
.pc-ev.blk:hover { box-shadow: 0 2px 8px color-mix(in srgb, var(--k) 30%, transparent); }
.pc-ev.blk:not(.k-visite) { z-index: 2; }
.pc-ev.visit { z-index: 3; }
.pc-ev.visit.movable { cursor: grab; }
.pc-ev.ghost { background: color-mix(in srgb, var(--k, var(--primary)) 16%, transparent); border: 2px dashed var(--k, var(--primary)); color: var(--kt, var(--primary-ink)); }
.pc-ev.short span { display: none; }

dialog.pdlg.wide { width: min(640px, calc(100vw - 32px)); }
.pdlg .x { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.tlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.trow { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.trow > div { flex: 1; }
.tsave { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tsave input { flex: 1; min-width: 200px; }
.person-check { position: relative; }
.person-check input { position: absolute; opacity: 0; }
.person-check span { display: inline-block; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-strong); font-weight: 600; cursor: pointer; }
.person-check input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }

/* Agenda : visites déplaçables */
.cal .ev.movable { cursor: grab; -webkit-user-drag: none; touch-action: none; }
.cal .ev.dragging { cursor: grabbing; z-index: 20; box-shadow: 0 10px 26px rgba(0,0,0,.28); opacity: .92; transition: none; }
.cal .ev .ev-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.cal .ev .ev-grip::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 20px; margin-left: -10px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.6); }

/* Bandeau du mode démonstration */
.demo-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff8e6; border-bottom: 1px solid #f5dfa6; padding: 9px 28px; font-size: .92rem; color: #6b4a00; }
.demo-bar span { flex: 1; min-width: 220px; }
.demo-bar a { font-weight: 650; color: #6b4a00; }
.demo-bar a.cta { background: var(--primary); color: #fff; padding: 6px 14px; border-radius: 99px; text-decoration: none; }
.demo-bar a.cta:hover { background: var(--primary-hover); }
