:root {
  --bg: #f7f3ec;
  --panel: #fffdf9;
  --ink: #2e2925;
  --muted: #7b726a;
  --line: #e7dfd3;
  --sage: #6f8160;
  --sage-soft: #e6ebdf;
  --rose: #b9786a;
  --rose-soft: #f4e3dd;
  --gold: #b8955a;
  --bride: #b9786a;
  --groom: #5f7a8c;
  --groom-soft: #e1e9ee;
  --danger: #b5524a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(46, 41, 37, .05), 0 4px 16px rgba(46, 41, 37, .05);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); }
a { color: var(--sage); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .01em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 30% 20%, #efe6d8, transparent 60%), var(--bg); }
.login-card { background: var(--panel); padding: 40px 36px; border-radius: 18px; box-shadow: var(--shadow); width: min(380px, 100%);
  display: flex; flex-direction: column; gap: 12px; text-align: center; border: 1px solid var(--line); }
.login-card h1 { font-size: 30px; }
.login-card p { margin: 0; }
.login-rings { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; align-items: start; }
.sidebar { background: #2f3a2c; color: #eae6dc; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 26px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-names { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: #fff; }
.brand-date { font-size: 12px; color: #b9bfae; margin-top: 4px; text-transform: capitalize; }
nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
nav .nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #8f9a85; padding: 14px 12px 4px; }
nav a { color: #e1ddd2; text-decoration: none; padding: 8px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
nav a:hover { background: rgba(255,255,255,.06); }
nav a.active { background: rgba(255,255,255,.12); color: #fff; }
nav a .ico { width: 18px; text-align: center; opacity: .85; }
nav a .count { margin-left: auto; font-size: 11px; background: var(--rose); color: #fff; border-radius: 10px; padding: 0 7px; }
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.sidebar-foot .btn { color: #eae6dc; border-color: rgba(255,255,255,.2); }
.save-state { font-size: 11.5px; color: #a7b09c; }
.save-state.error { color: #f0a59b; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.topbar h2 { font-size: 28px; flex: 1; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }
.view { padding: 26px 32px 60px; max-width: 1400px; }

/* ---------- composants ---------- */
.btn { font: inherit; font-weight: 500; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 14px;
  border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; justify-content: center; }
.btn:hover { border-color: #cfc4b4; }
.btn.primary { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn.primary:hover { background: #5f7052; }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px 6px; border-radius: 6px; font-size: 14px; }
.icon-btn:hover { background: var(--line); color: var(--ink); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.stat { padding: 18px 20px; }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-family: var(--serif); font-size: 38px; line-height: 1.1; margin-top: 4px; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.bar { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; background: var(--sage); border-radius: 4px; }
.bar.over > span { background: var(--danger); }

.pill { display: inline-block; font-size: 11.5px; padding: 1px 9px; border-radius: 20px; background: var(--line); color: var(--ink); white-space: nowrap; font-weight: 500; }
.pill.yes, .pill.booked { background: var(--sage-soft); color: #4a5a3e; }
.pill.no, .pill.rejected { background: #f2dcd8; color: #8e3d36; }
.pill.maybe, .pill.option, .pill.visit, .pill.visitPlanned { background: #f6ead6; color: #8a6428; }
.pill.quote { background: var(--groom-soft); color: #3f5a6b; }
.pill.contacted { background: #ece6f3; color: #5b4a78; }
.pill.brochure { background: #e3eeec; color: #3d6660; }
.pill.visitAsked { background: #fbe9e0; color: #9a5a3c; }
.prio { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; border-radius: 5px; padding: 1px 6px; min-width: 26px; }

input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(111,129,96,.3); border-color: var(--sage); }
input[type=checkbox] { width: auto; accent-color: var(--sage); }
textarea { min-height: 80px; resize: vertical; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 140px; }
.filters input[type=search] { min-width: 220px; }
.filters input[type=checkbox] { min-width: 0; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #f0eae0; vertical-align: middle; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #faf6ef; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 600; border-top: 2px solid var(--line); border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.empty { padding: 28px; text-align: center; color: var(--muted); font-style: italic; }

/* ---------- invités : deux côtés ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.side { border-top: 4px solid var(--bride); padding: 0; overflow: hidden; }
.side.groom { border-top-color: var(--groom); }
.side-head { padding: 16px 18px 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.side-head h3 { margin: 0; font-size: 24px; }
.side-head .counts { font-size: 12.5px; color: var(--muted); }
.circle-head { display: flex; align-items: center; gap: 8px; padding: 8px 18px; background: #f8f3eb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); }
.side.bride .circle-head { background: #fbf1ed; }
.side.groom .circle-head { background: #eff4f6; }
.circle-head .spacer { flex: 1; }
.guest-row { display: grid; grid-template-columns: 34px 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 18px; border-bottom: 1px solid #f2ece3; cursor: pointer; }
.guest-row:hover { background: #faf6ef; }
.guest-row .name { font-weight: 500; }
.guest-row .meta { font-size: 12px; color: var(--muted); }
.guest-row .icons { font-size: 12px; color: var(--muted); display: flex; gap: 6px; }

.guest-row.household .caret { display: inline-block; transition: transform .15s; color: var(--muted); font-size: 11px; }
.guest-row.household.open .caret { transform: rotate(90deg); }
.guest-row.household.open { background: #faf6ef; }
.hh-members .guest-row { padding-left: 42px; background: #fdfbf7; }
.hh-members .guest-row .prio { opacity: .75; }
.filters .toggle { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

.prio-select { appearance: none; -webkit-appearance: none; width: auto; min-width: 0; border: 0; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 600;
  padding: 1px 6px; cursor: pointer; text-align: center; width: 34px; max-width: 60px; text-overflow: clip; overflow: hidden; white-space: nowrap; }
.prio-select:hover { filter: brightness(1.1); }
.prio-select:focus { outline: 2px solid rgba(0,0,0,.2); }
.formula-select { width: 54px; max-width: 64px; }
.prio-select option { color: var(--ink); background: #fff; font-weight: 500; }

/* ---------- tâches ---------- */
.period { margin-bottom: 18px; }
.period-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.period-head h3 { font-size: 21px; margin: 0; }
.task { display: grid; grid-template-columns: 24px 1fr auto auto auto; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #f0eae0; }
.task:last-child { border-bottom: 0; }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.task .t-title { cursor: pointer; }
.task .t-due.late { color: var(--danger); font-weight: 600; }
.task-list { padding: 4px 0; }

/* ---------- prestataires ---------- */
.vendor-cat { margin-bottom: 16px; padding: 0; }
.vendor-cat > .head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.vendor-cat > .head h3 { margin: 0; font-size: 21px; }

/* ---------- éditeur site ---------- */
.list-editor .item { display: grid; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.list-editor .item .tools { display: flex; flex-direction: column; gap: 2px; }
.photo-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; margin-top: 10px; border: 2px dashed #d3c8b8; border-radius: 12px;
  background: #fbf8f2; color: var(--muted); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.photo-drop b { color: var(--ink); font-weight: 600; }
.photo-drop:hover, .photo-drop:focus-visible { border-color: var(--sage); outline: none; }
.photo-drop.over { border-color: var(--sage); background: var(--sage-soft); color: var(--sage); }
.photo-drop.busy { pointer-events: none; opacity: .75; }
.photo-grid figure[draggable] { cursor: grab; }
.photo-grid figure.dragging { opacity: .4; }
.photo-grid figure.drop-target { outline: 3px solid var(--sage); outline-offset: 2px; }
.cover-badge { position: absolute; top: 6px; left: 6px; z-index: 1; background: var(--sage); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid figure button { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 6px; cursor: pointer; padding: 2px 7px; }
.photo-grid figure input { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 0; border: 0; background: rgba(255,255,255,.9); font-size: 12px; padding: 4px 6px; }

/* ---------- plan de table ---------- */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.table-card { padding: 14px; min-height: 140px; }
.table-card.drop { outline: 2px dashed var(--sage); }
.table-card h4 { margin: 0; font-family: var(--serif); font-size: 20px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #f3ede3; border-radius: 16px; padding: 2px 10px; margin: 3px 3px 0 0; font-size: 12.5px; cursor: grab; border-left: 3px solid var(--bride); }
.chip.groom { border-left-color: var(--groom); }
.unseated { min-height: 60px; }

/* ---------- modal ---------- */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(720px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); background: var(--panel); color: var(--ink); }
.modal::backdrop { background: rgba(40, 34, 28, .45); }
.modal header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal header h3 { font-size: 24px; flex: 1; }
.modal .body { padding: 20px 22px; max-height: 70vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.modal .body .full { grid-column: 1 / -1; }
.modal .body .section-title { grid-column: 1 / -1; font-family: var(--serif); font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-top: 6px; }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; transition: transform .25s, opacity .25s; z-index: 100; opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.tip { background: #fbf6ea; border: 1px solid #efe1c2; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #6b5a3a; }
.tip b { color: #4f4128; }
.kbd-list { margin: 6px 0 0; padding-left: 18px; }

/* ---------- apparence ---------- */
.theme-layout { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 18px; align-items: start; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.swatch { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.swatch:hover { border-color: #cfc4b4; }
.swatch.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch.custom { cursor: default; }
.swatch .dots { display: flex; }
.swatch .dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-right: -6px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.color-list { display: flex; flex-direction: column; gap: 8px; }
.color-row { display: grid; grid-template-columns: 40px 1fr 92px; gap: 10px; align-items: center; font-size: 13.5px; }
.color-row input[type=color] { width: 40px; height: 34px; padding: 2px; cursor: pointer; }
.color-row .hex { font-family: ui-monospace, monospace; font-size: 12.5px; padding: 6px 8px; }
.preview-card { position: sticky; top: 90px; padding: 14px; }
.preview-card iframe { width: 100%; height: calc(100vh - 190px); min-height: 480px; border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; background: #fff; }

/* ---------- faire-part ---------- */
.fp-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fp-thumb { font: inherit; font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.fp-thumb:hover { border-color: #cfc4b4; }
.fp-thumb.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fp-thumb-img { display: block; width: 72px; height: 103px; overflow: hidden; pointer-events: none; }
.fp-thumb-new { justify-content: center; border-style: dashed; color: var(--muted); }
.fp-plus { display: flex !important; align-items: center; justify-content: center; font-size: 34px; font-weight: 300; background: #f6f2ea; border-radius: 4px; }
.fp-blocks { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; }
.fp-block { display: grid; grid-template-columns: 26px 1fr repeat(4, auto); align-items: center; gap: 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.fp-block:hover { border-color: #cfc4b4; }
.fp-block.active { border-color: var(--sage); background: var(--sage-soft); }
.fp-block.dragging { opacity: .4; }
.fp-block.drop-target { outline: 2px solid var(--sage); }
.fp-bico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: #f1ece3; font-size: 12px; font-weight: 600; color: var(--muted); }
.fp-blabel { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fp-blabel b { font-weight: 500; }
.fp-props { margin-top: 14px; padding: 14px; border-radius: 10px; background: #faf7f1; border: 1px solid var(--line); }
.fp-props.over { outline: 2px dashed var(--sage); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; padding: 0; accent-color: var(--sage); }
.range-row output { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12.5px; }
.fp-preview [data-bidx] { cursor: pointer; }
.fp-preview [data-bidx]:hover { outline: 1px dashed rgba(111, 129, 96, .6); outline-offset: 3px; }
.fp-preview .fp-selected { outline: 2px solid #6f8160 !important; outline-offset: 3px; }
.fp-preview { display: flex; justify-content: center; align-items: flex-start; padding: 24px 0; margin-top: 12px; background: #ece8e1; border-radius: 8px; min-height: 480px; }

/* ---------- rôles & espaces secrets ---------- */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.role-btn { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; border-top: 4px solid var(--bride); }
.role-btn.groom { border-top-color: var(--groom); }
.role-btn:hover:not([disabled]) { box-shadow: var(--shadow); transform: translateY(-1px); }
.role-btn[disabled] { opacity: .45; cursor: not-allowed; }
.role-name { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.login-card input, .login-card select { text-align: left; }
.login-card .hint { text-align: left; }
.account-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-row > * { flex: none; }
.account-row > .account-name { flex: 1 1 220px; min-width: 0; }
.card .account-row select { width: 150px; }
.account-row .btn { white-space: nowrap; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #e9e6dc; padding-bottom: 4px; }
.who svg { vertical-align: -3px; }
.muted-light { color: #a7b09c; }
nav .nav-group.secret { color: #e2b9ae; display: flex; align-items: center; gap: 6px; }
nav a.secret { background: rgba(185, 120, 106, .12); }
nav a.secret.active { background: rgba(185, 120, 106, .32); }
.secret-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 18px; border-radius: 10px; background: #f6e9e4; border: 1px solid #ecd2c9; color: #7b4a3f; font-size: 13px; }
.secret-banner .error { color: var(--danger); font-weight: 600; }
.acc-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.acc-row { display: grid; grid-template-columns: 22px 1fr 90px 28px; gap: 8px; align-items: center; }
.acc-row input.acc-label { border-color: transparent; background: transparent; padding: 6px 8px; }
.acc-row input.acc-label:hover, .acc-row input.acc-label:focus { border-color: var(--line); background: #fff; }
.acc-row.done .acc-label { text-decoration: line-through; color: var(--muted); }
.acc-row .acc-price { padding: 6px 8px; text-align: right; }
.shop-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.shop-row:hover { border-color: #cfc4b4; }
.shop-row.upcoming { border-left: 4px solid var(--sage); }

.vows-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.vows-editor { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.vows-editor textarea { min-height: calc(100vh - 330px); font-family: var(--serif); font-size: 20px; line-height: 1.6; padding: 18px 20px; background: #fffefb; resize: vertical; }
.pin-add { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: start; margin: 12px 0 10px; }
.pin-add textarea { min-height: 40px; }
.pin-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-btn { font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--c, #fff); cursor: pointer; color: var(--ink); text-align: left; }
.chip-btn.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pin-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pin { border-radius: 4px 4px 12px 4px; padding: 10px 12px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.pin.used { opacity: .5; }
.pin.used .pin-text { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.pin.dragging { opacity: .35; }
.pin.drop-target { outline: 2px solid var(--sage); }
.pin-head { display: flex; align-items: center; justify-content: space-between; }
.pin-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(0,0,0,.55); font-weight: 600; }
.pin-star { font-size: 15px; padding: 0 4px; }
.pin-star.on { color: #b8955a; }
.pin-text { font-family: var(--serif); font-size: 16.5px; line-height: 1.35; cursor: text; white-space: normal; }
.pin-foot { display: flex; align-items: center; gap: 2px; }
.pin-foot select { font-size: 11.5px; padding: 3px 4px; width: auto; max-width: 120px; background: rgba(255,255,255,.6); border-color: rgba(0,0,0,.08); }
.prompts { margin-top: 14px; }
.prompts summary { cursor: pointer; font-size: 13px; color: var(--sage); }
.plan-list { display: flex; flex-direction: column; gap: 6px; }
.plan-row { display: grid; grid-template-columns: 26px 1fr auto auto auto; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; }
.plan-row.drop-target { outline: 2px solid var(--sage); }
.plan-num { width: 24px; height: 24px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.plan-fields { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-fields input { border-color: transparent; padding: 3px 6px; background: transparent; }
.plan-fields input:first-child { font-weight: 500; }
.plan-fields input:hover, .plan-fields input:focus { border-color: var(--line); background: #fff; }
.rehearsal { position: fixed; inset: 0; z-index: 200; background: #1f2420; color: #f4efe6; display: flex; flex-direction: column; }
.reh-bar { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.reh-bar .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.reh-time { font-family: var(--serif); font-size: 30px; margin-left: 12px; font-variant-numeric: tabular-nums; }
.reh-text { flex: 1; overflow-y: auto; padding: 48px max(24px, calc(50vw - 420px)); font-family: var(--serif); line-height: 1.6; }

.lodge-layout { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 18px; align-items: start; }
.lodge-layout > .stack:first-child { position: sticky; top: 90px; }
.lodges { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lodge-card { padding: 14px; min-height: 150px; }
.lodge-card h4, .lodge-pool h4, .card > h4 { margin: 0; font-family: var(--serif); font-size: 19px; }
.lodge-card.drop, .lodge-pool.drop { outline: 2px dashed var(--sage); }
.lodge-nights { display: flex; flex-wrap: wrap; gap: 4px; }
.lodge-occ { margin-top: 8px; }
.lodge-occ .chip { cursor: grab; }
.chip.hh .hh-ico { color: var(--muted); margin-right: 2px; }
.hh-line { cursor: pointer; padding: 2px 4px; border-radius: 5px; }
.hh-line:hover { background: #f6f2ea; }
.night-input { width: auto !important; min-width: 0 !important; max-width: 230px; padding: 5px 8px; font-size: 12.5px; }

/* ---------- jour J ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel); }
.seg button { font: inherit; font-size: 13px; border: 0; background: none; padding: 7px 13px; cursor: pointer; color: var(--ink); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--sage); color: #fff; }
.seg button.on .muted { color: rgba(255,255,255,.7); }
.jj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.jj-layout > .stack { position: sticky; top: 90px; }
.timeline-admin { display: flex; flex-direction: column; gap: 6px; position: relative; }
.jj-ev { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer; }
.jj-ev:hover { border-color: #cfc4b4; }
.jj-ev.open { border-color: var(--sage); box-shadow: var(--shadow); cursor: default; }
.jj-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; border-right: 2px solid var(--sage-soft); padding-right: 10px; }
.jj-time b { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.jj-time span { font-size: 12px; color: var(--muted); }
.jj-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jj-title { font-weight: 600; font-size: 15px; }
.jj-pl { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; }
.jj-preview { margin-top: 3px; }
.jj-detail .check { margin: 3px 0; }
.jj-contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.jj-contact a { white-space: nowrap; }
.pl-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.pl-list { display: flex; flex-direction: column; gap: 2px; }
.pl-item { font: inherit; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; color: var(--ink); }
.pl-item > span:first-child { display: flex; flex-direction: column; }
.pl-item:hover { background: #f6f2ea; }
.pl-item.active { background: var(--sage-soft); border-color: #c9d4bd; }
.spotify-card code.copy { display: inline-block; margin-top: 4px; padding: 3px 6px; background: #f1ece3; border-radius: 5px; user-select: all; word-break: break-all; }
.sync-box { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbf8f2; }
.sync-alert { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f6ead6; color: #6b4e1f; font-size: 13px; }
.sp-dot { color: #1db954; font-size: 10px; vertical-align: 1px; }
.sp-dot.changed { color: #d08a4f; }
.sp-embed { width: 100%; height: 352px; border: 0; border-radius: 12px; margin-top: 14px; }
.pl-add { display: flex; gap: 8px; margin: 12px 0 8px; }
.sp-results { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbf8f2; margin-bottom: 10px; }
.tracks { display: flex; flex-direction: column; gap: 4px; }
.track { display: grid; grid-template-columns: 26px 22px 1fr auto auto; gap: 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: grab; }
.track.dragging { opacity: .4; }
.track.drop-target { outline: 2px solid var(--sage); }
.track .star { padding-top: 1px; }
.tr-num { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tr-meta { display: grid; grid-template-columns: 160px 1fr; gap: 6px; margin-top: 6px; }
.tr-meta input { padding: 4px 8px; font-size: 12.5px; }

/* ---- Jour J : photos, musique, activités, remarques ---- */
.ph-layout, .mu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ph-layout > .stack { position: sticky; top: 90px; }
.mu-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
.mu-layout > .stack + .stack { align-self: start; }
.seg.wrap { flex-wrap: wrap; }
.seg.sub button { font-size: 12.5px; padding: 6px 12px; }
.ph-group { margin-bottom: 14px; }
.ph-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ph-item { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; transition: border-color .15s; }
.ph-item:hover { border-color: #d3c8b8; }
.ph-item.open { cursor: default; border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.ph-item.done .ph-main b { text-decoration: line-through; color: var(--muted); }
.ph-item.dragging { opacity: .4; }
.ph-item.drop-target { outline: 2px solid var(--sage); }
.ph-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
.ph-main { flex: 1; min-width: 180px; }
.ph-done { width: 18px; height: 18px; accent-color: var(--sage); cursor: pointer; }
.star { border: 0; background: none; font-size: 17px; line-height: 1; color: #d9d0c3; cursor: pointer; padding: 0 2px; }
.star.on { color: var(--gold); }
.star:hover { color: var(--gold); }
.ph-edit, .key-edit, .ac-edit { padding: 4px 12px 12px; border-top: 1px dashed var(--line); margin-top: 2px; }
.ac-edit { padding: 10px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.grid2 .full { grid-column: 1 / -1; }
.grid2 textarea { min-height: 60px; }
.kpi-line { font-size: 14px; }
.warn-text { color: #8a6428; background: #f6ead6; border-radius: 8px; padding: 6px 9px; margin: 6px 0 0; }
.cmt-title { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.cmts { display: flex; flex-direction: column; gap: 6px; }
.cmt { background: #f6f1e8; border-radius: 10px; padding: 6px 10px; max-width: 92%; }
.cmt.mine { background: var(--sage-soft); align-self: flex-end; }
.cmt-head { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.cmt-head .icon-btn { font-size: 11px; padding: 0 4px; }
.cmt-text { white-space: pre-wrap; font-size: 13.5px; }
.cmt-add { display: flex; gap: 6px; }
.cmt-add input { flex: 1; }
.pg-list { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.mu-plan { padding: 6px 16px; }
.mu-ev { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mu-ev:last-child { border-bottom: 0; }
.mu-ctrls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.mu-ctrls select { max-width: 220px; }
.vol { display: inline-flex; gap: 2px; align-items: flex-end; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: var(--panel); }
.vol button { border: 0; background: none; padding: 0 1px; cursor: pointer; color: #d9d0c3; font-size: 10px; line-height: 1; }
.vol button:nth-child(2) { font-size: 13px; }
.vol button:nth-child(3) { font-size: 16px; }
.vol button.on { color: var(--sage); }
.mu-note { width: 100%; margin-top: 6px; font-size: 12.5px; border: 0; border-bottom: 1px dashed var(--line); background: transparent; padding: 4px 0; border-radius: 0; }
.mu-note:focus { outline: none; border-bottom-color: var(--sage); }
.key-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: var(--panel); }
.key-item.open { cursor: default; border-color: var(--sage); }
.key-edit { padding: 8px 0 0; margin-top: 8px; }
.sp-mini { width: 100%; height: 80px; border: 0; border-radius: 10px; margin-top: 6px; }
.chip-btn.genre-yes { background: var(--sage-soft); border-color: var(--sage); box-shadow: none; }
.chip-btn.genre-no { background: #f2dcd8; border-color: #d9a59e; color: #8e3d36; text-decoration: line-through; }
.an-row { display: flex; gap: 6px; align-items: center; }
.an-row input { width: auto; min-width: 0; }
.an-row input[type=time] { flex: 0 0 104px; }
.an-row input[data-anf$='.text'] { flex: 1 1 auto; }
.an-row input[data-anf$='.by'] { flex: 0 0 90px; }
.ac-h { font: 600 20px var(--serif); margin: 18px 0 8px; }
.ac-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ac-idea { display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--ink); }
.ac-idea > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ac-idea:hover { border-color: var(--sage); }
.ac-idea.chosen { background: var(--sage-soft); border-color: var(--sage); }
.ac-emo { font-size: 22px; line-height: 1.1; }
.ac-tick { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; flex: none; }
.ac-idea.chosen .ac-tick { background: var(--sage); color: #fff; border-color: var(--sage); }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; align-items: start; }
.ac-card { cursor: pointer; padding: 14px; }
.ac-card.open { grid-column: 1 / -1; cursor: default; box-shadow: 0 0 0 1px var(--sage), var(--shadow); }
.ac-card.off { opacity: .55; }
.ac-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.ac-note { margin-top: 8px; color: var(--ink); background: #f6f1e8; border-radius: 8px; padding: 6px 8px; white-space: pre-wrap; }
.pill-select { width: auto; flex: none; font: inherit; font-size: 12px; border-radius: 20px; padding: 2px 8px; border: 1px solid var(--line); background: var(--line); cursor: pointer; }
.pill-select.yes { background: var(--sage-soft); color: #4a5a3e; }
.pill-select.quote { background: var(--groom-soft); color: #3f5a6b; }
.pill-select.no { background: #f2dcd8; color: #8e3d36; }
.mat-row { gap: 4px; }
.jj-linked { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; padding: 8px 10px; background: #f8f4ed; border-radius: 10px; }
.jj-linked > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.jj-linked > div > .small { width: 100%; }
.link-chip { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 2px 9px; cursor: pointer; color: var(--ink); }
.link-chip:hover { border-color: var(--sage); }
.link-chip.done { text-decoration: line-through; color: var(--muted); }
.tagbox { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: #fff; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--sage-soft); color: #3f4d35; border-radius: 14px; padding: 2px 4px 2px 10px; font-size: 12.5px; }
.tag button { border: 0; background: none; cursor: pointer; color: inherit; opacity: .6; font-size: 11px; padding: 0 4px; }
.tag button:hover { opacity: 1; }
.warn-inline { color: #a0632a; font-weight: 500; }
.pg-hh { padding: 4px 0; border-bottom: 1px solid #f1ebe1; }
.pg-hh:last-child { border-bottom: 0; }
.pg-hh-head { margin-bottom: 2px; }
.pg-in { padding-left: 24px; }
.pg-kpis { gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi-big { font: 600 30px var(--serif); line-height: 1.2; margin-top: 4px; }
.kpi-big span { font: 400 14px var(--sans); color: var(--muted); margin-left: 2px; }
.dist { display: flex; gap: 8px; align-items: flex-end; height: 64px; margin-top: 6px; }
.dist > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; }
.dist > div > span { width: 100%; min-height: 2px; background: var(--sage); border-radius: 4px 4px 0 0; }
.dist > div > span.zero { background: #d9a37a; }
.dist b { font-size: 11.5px; } .dist small { color: var(--muted); }
.miss-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fbf6ef; border-left: 3px solid var(--bride); }
.miss-row.groom { border-left-color: var(--groom); }
.small-select { width: auto; max-width: 240px; font-size: 12.5px; padding: 5px 8px; }
.pg-stat { margin: 8px 0 12px; }
.pg-stat .bar { margin-top: 4px; }
.bar.bride > span { background: var(--bride); }
.bar.groom > span { background: var(--groom); }
.pg-top { margin: 0; padding-left: 20px; }
.pg-top li { margin: 4px 0; }
.pg-top li > span:first-child { display: inline-block; }
.pg-top li { display: list-item; }
.pg-top li b { float: right; }
.pg-table td { vertical-align: top; }
.ph-layout .filters select, .ph-layout .filters input { width: auto; }
.pg-table .link-chip { text-align: left; }
.pg-table tr.pg-none td { background: #fdf6ee; }
.pg-table .link-chip { margin: 0 3px 3px 0; }
@media (max-width: 1100px) {
  .ph-layout, .mu-layout { grid-template-columns: 1fr; }
  .ph-layout > .stack { position: static; }
}
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
  .theme-layout { grid-template-columns: 1fr; }
  .jj-layout, .pl-layout { grid-template-columns: 1fr; }
  .jj-layout > .stack { position: static; }
  .lodge-layout { grid-template-columns: 1fr; }
  .lodge-layout > .stack:first-child { position: static; }
  .vows-layout { grid-template-columns: 1fr; }
  .vows-editor { position: static; }
  .preview-card { position: static; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .sides { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .menu-btn { display: block; }
  .topbar { padding: 14px 16px; flex-wrap: wrap; }
  .topbar h2 { font-size: 23px; }
  .view { padding: 18px 16px 60px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .modal .body { grid-template-columns: 1fr; }
  .task { grid-template-columns: 24px 1fr auto; }
  .task .t-cat, .task .t-owner { display: none; }
}

/* ---------- espace témoins (lecture seule) ---------- */
.temoin .task .t-title { cursor: default; }
.temoin .chip { cursor: default; }
@media print {
  .temoin .sidebar, .temoin .topbar-actions, .temoin .menu-btn, .temoin .filters, .temoin .toast { display: none !important; }
  .temoin .app { display: block; }
  .temoin .topbar { position: static; padding: 0 0 10px; }
  .temoin .view { padding: 0; }
  .temoin .card, .temoin .jj-ev { box-shadow: none; break-inside: avoid; }
}

/* ---------- brochures prestataires ---------- */
.vdoc-add { margin-bottom: 16px; }
.vdoc-add select { width: auto; }
.vdoc-cat.drop { outline: 2px dashed var(--sage); outline-offset: -4px; background: var(--sage-soft); }
.vdoc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 16px 18px; }
.vdoc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.vdoc-thumb { height: 130px; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--bg); text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line); }
.vdoc-thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }
.vdoc-thumb span { font-size: 38px; line-height: 1; }
.vdoc-thumb em { font-style: normal; font-size: 11px; letter-spacing: .12em; font-weight: 600; }
.vdoc-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.vdoc-meta .small { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vdoc-name { font-weight: 600; border: 1px solid transparent; background: none; padding: 2px 4px; margin: 0 -4px; border-radius: 6px; font: inherit; font-weight: 600; width: calc(100% + 8px); }
.vdoc-name:hover, .vdoc-name:focus { border-color: var(--line); background: #fff; }
.vdoc-meta select { font-size: 12px; padding: 3px 6px; }
.danger-link { color: var(--danger); }
.vdoc-inform { margin-top: 4px; }
.vdoc-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.vdoc-chip { border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 12.5px; text-decoration: none; background: var(--panel); }
@media (max-width: 700px) { .hide-mobile { display: none; } }

/* ---------- motif de fond (apparence) ---------- */
.motif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.motif-tile { font: inherit; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 6px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; text-align: left; color: var(--ink); }
.motif-tile:hover { border-color: var(--sage); }
.motif-tile.active { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage-soft); }
.motif-tile b { font-size: 12px; font-weight: 600; line-height: 1.25; }
.motif-tile em { font-style: normal; font-size: 11px; color: var(--muted); }
.motif-swatch { display: grid; place-items: center; height: 58px; border-radius: 6px; margin-bottom: 4px; background-color: var(--bg); color: var(--muted); font-size: 22px; }
.motif-swatch.none { background: repeating-linear-gradient(135deg, var(--bg) 0 8px, var(--panel) 8px 16px); }
.motif-opts { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.motif-opts input[type=range] { width: 100%; accent-color: var(--sage); }

/* statut prestataire modifiable dans le tableau */
.vstatus { font-weight: 500; font-size: 11.5px; padding: 2px 6px; border: 0; }
.vstatus:hover { box-shadow: 0 0 0 1px var(--muted); }
.vstatus.booked { background: var(--sage-soft); color: #4a5a3e; }
.vstatus.rejected { background: #f2dcd8; color: #8e3d36; }
.vstatus.option, .vstatus.visit, .vstatus.visitPlanned { background: #f6ead6; color: #8a6428; }
.vstatus.contacted { background: #ece6f3; color: #5b4a78; }
.vstatus.brochure { background: #e3eeec; color: #3d6660; }
.vstatus.quote { background: var(--groom-soft); color: #3f5a6b; }
.vstatus.visitAsked { background: #fbe9e0; color: #9a5a3c; }
.visit-date { margin-top: 4px; font-size: 12px; font-weight: 600; color: #8a6428; white-space: nowrap; }
.visit-date.missing { color: var(--danger); font-weight: 500; }
.vstatus option { background: #fff; color: var(--ink); }
.rating-pair div { white-space: nowrap; line-height: 1.5; }

/* ---------- calendrier ---------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-type { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 20px; padding: 3px 10px; cursor: pointer; opacity: .55; }
.cal-type.on { opacity: 1; color: var(--ink); border-color: var(--c); box-shadow: inset 3px 0 0 var(--c); }
#calSrc { width: auto; }
.cal-layout.month { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cal-month { padding: 14px; }
.cal-head { margin-bottom: 10px; }
.cal-head h3 { margin: 0 6px; min-width: 170px; text-align: center; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.cal-cell { min-height: 104px; padding: 4px 4px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:hover { background: #fbf8f2; }
.cal-cell.we { background: #fbf8f3; }
.cal-cell.out { background: var(--bg); }
.cal-cell.out .cal-num { opacity: .4; }
.cal-num { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 4px; align-self: flex-start; border-radius: 10px; }
.cal-cell.today .cal-num { background: var(--sage); color: #fff; }
.cal-chip { font: inherit; font-size: 11.5px; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); border-radius: 4px; padding: 2px 5px; cursor: pointer; overflow: hidden; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cal-chip .ico { margin-right: 3px; }
.cal-chip.done { opacity: .5; text-decoration: line-through; }
.cal-chip.wedding { background: var(--sage); color: #fff; font-weight: 600; }
.cal-more { font: inherit; font-size: 11px; color: var(--muted); background: none; border: 0; text-align: left; padding: 0 5px; cursor: pointer; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; padding: 0 3px; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; }
.cal-side h3 { margin-top: 0; }
.cal-pending { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.cal-pending:last-child { border-bottom: 0; }
.cal-pending:hover { background: #fbf8f2; }
.cal-row { display: grid; grid-template-columns: 42px 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cal-row:last-child { border-bottom: 0; }
.cal-row:hover { background: #fbf8f2; }
.cal-row.done { opacity: .55; }
.cal-row.done .name { text-decoration: line-through; }
.cal-row.late .cal-date b { color: var(--danger); }
.cal-row .name { font-weight: 500; }
.cal-date { text-align: center; line-height: 1.05; }
.cal-date b { display: block; font-family: var(--serif); font-size: 22px; }
.cal-date span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.cal-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; }
.cal-side .cal-row { padding: 8px 2px; grid-template-columns: 36px 24px 1fr auto; }
.cal-side .cal-dot { width: 24px; height: 24px; }
@media (max-width: 1100px) { .cal-layout.month { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .cal-cell { min-height: 58px; }
  .cal-chip, .cal-more { display: none; }
  .cal-dots { display: flex; }
  .cal-head h3 { min-width: 0; font-size: 18px; }
}

/* =========================================================================
   CHOIX DU LIEU : comparatif
   ========================================================================= */
.vc-bar { padding: 12px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.vc-bar-t { font-family: var(--serif); font-size: 18px; }
.vc-in { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.vc-in input { width: 74px; padding: 5px 8px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vc-chip { font: inherit; font-size: 12.5px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 16px; padding: 3px 11px; cursor: pointer; text-decoration: line-through; }
.vc-chip.on { background: var(--sage-soft); border-color: #c9d4bd; color: #3f4d35; text-decoration: none; }
.vc-chip.rej { font-style: italic; }

.vc-rank-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; }
.vc-rcard { font: inherit; text-align: left; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid;
  grid-template-columns: auto 1fr auto; gap: 4px 8px; align-items: center; box-shadow: var(--shadow); color: var(--ink); }
.vc-rcard:hover { border-color: #cfc4b4; }
.vc-rcard.focus { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage), var(--shadow); }
.vc-rcard.out { opacity: .6; background: #fbf7f2; }
.vc-rcard .bar, .vc-rcard .vc-rfacts, .vc-rcard > .small { grid-column: 1 / -1; }
.vc-rcard .bar { margin-top: 2px; }
.vc-rname { font-weight: 600; line-height: 1.25; }
.vc-rscore { font-family: var(--serif); font-size: 26px; line-height: 1; }
.vc-rscore small, .vc-vh-score small { font-size: 11px; color: var(--muted); font-family: var(--sans); }
.vc-rfacts { font-size: 12px; color: var(--muted); }
.vc-rn { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; padding: 0 6px; }
.vc-rcard:first-child .vc-rn { background: var(--gold); }
.vc-fail { color: var(--danger); font-weight: 500; }

.vc-crit { margin-bottom: 14px; padding: 12px 18px; }
.vc-crit summary { cursor: pointer; font-size: 14.5px; }
.vc-crit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; margin-top: 12px; }
.vc-crit h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.vc-w { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #f2ece3; font-size: 13px; }
.vc-w .seg button { padding: 3px 9px; font-size: 11.5px; min-width: 34px; }
.vc-must { padding: 5px 0; font-size: 13px; flex-wrap: wrap; }
.vc-must-in { width: 92px !important; padding: 3px 7px; font-size: 12.5px; }

.vc-matrix-card { padding: 0; overflow: hidden; }
.vc-matrix-wrap { overflow: auto; max-height: calc(100vh - 150px); }
table.vc-matrix { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13px; }
.vc-matrix th, .vc-matrix td { border-bottom: 1px solid #f0eae0; padding: 8px 10px; vertical-align: top; text-align: left; }
.vc-matrix td { min-width: 170px; max-width: 230px; border-left: 1px solid #f4efe7; }
.vc-matrix tbody th { position: sticky; left: 0; z-index: 2; background: var(--panel); font-weight: 500; min-width: 210px; max-width: 240px; border-right: 1px solid var(--line); }
.vc-matrix thead th { position: sticky; top: 0; z-index: 3; background: #fbf8f3; border-bottom: 2px solid var(--line); }
.vc-matrix thead th.vc-corner { left: 0; z-index: 4; border-right: 1px solid var(--line); vertical-align: bottom; }
.vc-hint { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.vc-vh { min-width: 170px; }
.vc-vh.out { background: #f8f1ea !important; }
.vc-vh.out .vc-vname { text-decoration: line-through; text-decoration-color: rgba(181,82,74,.6); }
.vc-vh.focus { box-shadow: inset 0 3px 0 var(--sage); }
.vc-vh-top { display: flex; align-items: center; justify-content: space-between; }
.vc-vh-score { font-family: var(--serif); font-size: 22px; }
.vc-vname { font: inherit; font-family: var(--serif); font-size: 19px; font-weight: 600; background: none; border: 0; padding: 0; margin-top: 4px; cursor: pointer; color: var(--ink); text-align: left; line-height: 1.15; }
.vc-vname:hover { color: var(--sage); }
.vc-vh-act { display: flex; gap: 2px; margin: 6px -6px 0; }
.vc-vh-act .btn { padding: 3px 6px; font-size: 11.5px; }
.vc-sec th, .vc-sec td { background: #f5efe5 !important; cursor: pointer; font-size: 12px; }
.vc-sec th { font-family: var(--serif); font-size: 16px !important; font-weight: 600; }
.vc-sec .caret { display: inline-block; transition: transform .15s; font-size: 11px; color: var(--muted); }
.vc-sec.closed .caret { transform: rotate(-90deg); }
.vc-sum b { color: #4a5a3e; }
td.vc-c.ed { cursor: pointer; }
td.vc-c.ed:hover { outline: 2px solid rgba(111,129,96,.35); outline-offset: -2px; }
td.vc-c.focus, .vc-sec td.focus { background-color: #f7faf3; }
td.vc-c.good { background: #f1f5ec; }
td.vc-c.good .vc-tri { color: #4a5a3e; }
td.vc-c.bad { background: #fbefec; }
td.vc-c.bad .vc-tri { color: #8e3d36; }
td.vc-c.opt { background: #fbf4e6; }
td.vc-c.opt .vc-tri { color: #8a6428; }
td.vc-c.best { box-shadow: inset 3px 0 0 #7d9a64; }
td.vc-c.best b { color: #3f5a2e; }
td.vc-c.best::after { content: 'meilleur'; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #6f8160; margin-top: 2px; }
td.vc-c.worst b { color: #9a5a4a; }
.vc-tri { font-weight: 500; }
.vc-unk { color: #c5bbae; font-weight: 600; }
.vc-note { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.vc-txt { white-space: normal; }
.vc-src { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: #efe6d6; color: #8a6428; font-size: 9.5px; font-style: normal; font-weight: 700; margin-left: 5px; vertical-align: 1px; cursor: help; }
.vc-stars { color: var(--gold); letter-spacing: 1px; }
.vc-stars span { opacity: .22; }
.vc-line { display: flex; justify-content: space-between; gap: 10px; }
.vc-line.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; font-weight: 600; }
.vc-op { border-left: 3px solid var(--bride); padding-left: 7px; margin-bottom: 5px; }
.vc-op.groom { border-left-color: var(--groom); }

/* salles à l'échelle */
.vc-rooms-row td { vertical-align: bottom; }
.vc-rooms { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin-bottom: 4px; }
.vc-room { display: flex; flex-direction: column; gap: 2px; max-width: 104px; min-width: 0; }
.vc-room i { display: grid; place-items: center; background: #e6ebdf; border: 1.5px solid #9fb08d; border-radius: 3px; font-style: normal; color: var(--muted); font-size: 11px; }
.vc-room.use-cocktail i { background: #f6ead6; border-color: #d6b47c; }
.vc-room.use-ceremony i { background: #f4e3dd; border-color: #cf9d90; }
.vc-room.use-dance i { background: #e1e9ee; border-color: #8ea5b5; }
.vc-room.use-kids i { background: #ece6f3; border-color: #a898c0; }
.vc-room.unk i { background: transparent; border-style: dashed; }
.vc-room span { font-size: 11.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-room em { font-size: 10.5px; color: var(--muted); font-style: normal; }

/* saisie rapide */
.vc-pop { position: fixed; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(40,34,28,.22); padding: 12px; width: 300px; }
.vc-pop-h { display: flex; flex-direction: column; margin-bottom: 8px; }
.vc-pop input { margin-top: 6px; }
.vc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vc-choice { font: inherit; font-size: 12.5px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 8px; cursor: pointer; text-align: left; color: var(--ink); }
.vc-choice:hover { border-color: var(--sage); }
.vc-choice.on { box-shadow: 0 0 0 2px var(--sage); border-color: var(--sage); }
.vc-choice.tri-yes, .vc-choice.bad-tri-no, .vc-choice.avail-free { background: #f1f5ec; }
.vc-choice.tri-no, .vc-choice.bad-tri-yes, .vc-choice.avail-taken { background: #fbefec; }
.vc-choice.tri-opt, .vc-choice.bad-tri-opt, .vc-choice.avail-option { background: #fbf4e6; }
.vc-choices:has(.vc-choice:nth-child(5)) { grid-template-columns: 1fr 1fr; max-height: 260px; overflow-y: auto; }

/* fiche complète */
.modal.vs-wide { width: min(1000px, calc(100vw - 32px)); }
.vs header { gap: 8px; }
.vs-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 22px; border-bottom: 1px solid var(--line); font-size: 12.5px; background: #fbf8f3; }
.vs-nav a { color: var(--muted); text-decoration: none; }
.vs-nav a:hover { color: var(--sage); }
.vs-body { padding: 8px 22px 22px; max-height: 68vh; overflow-y: auto; }
.vs-sec { padding-top: 12px; }
.vs-sec h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 4px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.vs-gen { display: grid; grid-template-columns: 200px 1fr auto; gap: 14px; align-items: end; }
.vs-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.2fr) 1fr; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid #f4efe7; }
.vs-l { font-size: 13px; }
.vs-l small { display: block; color: var(--muted); font-size: 11.5px; }
.vs-row input { padding: 6px 9px; }
.vs-note { font-size: 12.5px; background: #fdfbf8; }
.vs-tri { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; width: max-content; }
.vs-tri button { font: inherit; font-size: 12.5px; border: 0; border-right: 1px solid var(--line); background: none; padding: 5px 10px; cursor: pointer; color: var(--ink); }
.vs-tri button:last-child { border-right: 0; }
.vs-tri button.on.t-yes, .vs-tri button.on.bad-t-no, .vs-tri button.on.a-free { background: var(--sage); color: #fff; }
.vs-tri button.on.t-no, .vs-tri button.on.bad-t-yes, .vs-tri button.on.a-taken { background: var(--danger); color: #fff; }
.vs-tri button.on.t-opt, .vs-tri button.on.bad-t-opt, .vs-tri button.on.a-option { background: #c99a4a; color: #fff; }
.vs-tri button.on.t-unk, .vs-tri button.on.bad-t-unk, .vs-tri button.on.a-unk { background: var(--line); }
.vs-rooms input, .vs-rooms select, .vs-extras input, .vs-extras select { padding: 5px 7px; font-size: 12.5px; }
.vs-rooms td, .vs-extras td { padding: 4px 4px; }
.vs-rooms input.num, .vs-extras input.num { width: 76px; text-align: right; }
.vs-preview { margin-top: 10px; padding: 10px 12px; background: #fbf8f3; border-radius: 10px; }
.vs-preview:empty { display: none; }
.vq-h { font-family: var(--serif); font-size: 17px; margin: 12px 0 4px; }
.vq { margin: 0; padding-left: 20px; columns: 2; column-gap: 26px; font-size: 13px; }
.vq li { margin-bottom: 4px; break-inside: avoid; }

/* =========================================================================
   CHOIX DU LIEU : carte
   ========================================================================= */
.vmap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.vmap-card { padding: 0; overflow: hidden; }
.vmap-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vmap-search { display: flex; gap: 6px; }
.vmap-search input { width: 240px; padding: 5px 9px; }
#vmap { height: calc(100vh - 230px); min-height: 460px; background: #ece6dc; z-index: 0; }
#vmap.adding, #vmap.adding .leaflet-interactive { cursor: crosshair; }
.vmap-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); align-items: center; }
.vmap-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.vmap-side { position: sticky; top: 90px; padding: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
.vmap-side h3 { font-size: 20px; margin-bottom: 8px; }
.vmap-side .field { margin-bottom: 8px; }
.vm-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; padding: 8px 6px; border-bottom: 1px solid #f2ece3; cursor: pointer; border-radius: 8px; }
.vm-item:hover { background: #faf6ef; }
.vm-item.focus { background: var(--sage-soft); }
.vm-item.rej { opacity: .55; }
.vm-item .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.vm-item-t { text-align: right; white-space: nowrap; }
.vm-pinrow { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }

.vm-ico { background: none; border: 0; }
.vm-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); display: grid; place-items: center; margin: 2px 0 0 1px; }
.vm-pin span { transform: rotate(45deg); color: #fff; font-weight: 700; font-size: 12px; font-family: var(--sans); }
.vm-pin.rej { opacity: .7; width: 20px; height: 20px; margin: 10px 0 0 5px; }
.vm-pin.focus { box-shadow: 0 0 0 4px rgba(111,129,96,.45), 0 2px 6px rgba(0,0,0,.3); }
.vm-mine { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2.5px solid var(--c); display: grid; place-items: center; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.vm-mine.ref { background: #fffdf5; }
.vm-mine.sm { width: 22px; height: 22px; font-size: 11px; border-width: 2px; box-shadow: none; flex: none; }
.vm-st { position: relative; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; border: 1.5px solid #3f5a6b; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.vm-st.seg-a { width: 24px; height: 24px; font-size: 14px; border-width: 2px; background: #e1e9ee; margin: -1px; }
.vm-st.seg-c { width: 16px; height: 16px; font-size: 9px; margin: 2px; opacity: .85; }
.vmap-legend .vm-st { display: inline-grid; width: 18px; height: 18px; margin-right: 4px; vertical-align: -4px; }
.leaflet-tooltip.vm-label { background: rgba(255,253,249,.92); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.18); font: 600 11.5px var(--sans); color: var(--ink); padding: 1px 6px; border-radius: 6px; }
.leaflet-tooltip.vm-label::before { display: none; }
.leaflet-tooltip.vm-label.rej { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.leaflet-tooltip.vm-label.mine { font-weight: 500; font-style: italic; }
.vm-ring { color: #6f8160; font: 600 11px var(--sans); text-align: center; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.vm-pop { font: 13px/1.45 var(--sans); }
.vm-pop-t { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.vm-pop table { width: 100%; margin: 8px 0; border-collapse: collapse; }
.vm-pop td { padding: 2px 0; border-bottom: 1px solid #f2ece3; }
.vm-pop td:first-child { color: var(--muted); padding-right: 10px; }
.vm-pop .row { gap: 6px; }
.leaflet-container a.btn { color: var(--ink); }
.leaflet-popup-content-wrapper { border-radius: 12px; }

@media (max-width: 1100px) {
  .vmap-layout { grid-template-columns: 1fr; }
  .vmap-side { position: static; max-height: none; }
  .vc-crit-grid { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 1fr 1fr; }
  .vs-row .vs-note { grid-column: 1 / -1; }
  .vs-gen { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #vmap { height: 62vh; min-height: 360px; }
  .vc-matrix tbody th { min-width: 130px; }
  .vq { columns: 1; }
}

/* coûts : postes & choix */
.vc-warn { color: #a5602a; font-weight: 600; font-size: 12px; }
.vc-line.off { opacity: .5; text-decoration: line-through; }
.vc-chip.choice { text-decoration: none; color: var(--muted); }
.vc-chip.choice.on { background: #f6ead6; border-color: #e3c99b; color: #7a5520; }
.vc-choice.poste-incl { background: #f1f5ec; }
.vc-choice.poste-paid { background: #fbf4e6; }
.vc-choice.poste-na { background: #f4efe7; }
.vs-tri button.on.p-incl { background: var(--sage); color: #fff; }
.vs-tri button.on.p-paid { background: #c99a4a; color: #fff; }
.vs-tri button.on.p-na { background: #9a8f84; color: #fff; }
.vs-tri button.on.p-unk { background: var(--line); }
.vs-postes td { padding: 4px; vertical-align: middle; }
.vs-postes tr.off td { opacity: .5; }
.vs-postes input, .vs-postes select { padding: 5px 7px; font-size: 12.5px; }
.vs-postes input.num { width: 84px; text-align: right; }
.vs-postes input:disabled, .vs-postes select:disabled { background: #f6f2ec; color: #b9b0a6; }

/* palette du mariage */
.pal-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); margin-bottom: 12px; }
.pal-list { display: flex; flex-direction: column; gap: 10px; }
.pal-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.pal-sw { width: 44px; height: 44px; border-radius: 10px; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pal-sw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.pal-share { font-size: 12px; color: var(--muted); margin-left: 4px; }
.pal-touch { margin-left: 8px; vertical-align: 1px; }
.pal-touch button { padding: 2px 9px; font-size: 11.5px; }

/* décoration des tables */
.td-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.td-card { display: flex; flex-direction: column; gap: 10px; }
.td-card.liked { box-shadow: 0 0 0 2px var(--rose), var(--shadow); }
.td-visual { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.td-svg svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.td-ref { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.td-ref img { width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: 10px; display: block; }
.td-ref figcaption { font-size: 11px; color: var(--muted); line-height: 1.3; }
.pal-bar.sm { height: 10px; margin: 0; border-radius: 5px; }
.td-mood { margin: 0; font-size: 13.5px; }
.td-list summary { cursor: pointer; font-size: 13px; font-weight: 500; }
.td-list .tbl td { padding: 5px 8px; font-size: 12.5px; }
@media (max-width: 1100px) { .td-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .td-visual { grid-template-columns: 1fr; } }

.fp-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-variants .btn { text-align: center; padding: 10px; line-height: 1.3; white-space: normal; flex-direction: column; justify-content: center; min-width: 0; height: auto; }
.hc-table td.sub { padding-left: 28px; color: var(--muted); font-size: 13px; }
.hc-table .need { font-weight: 700; }
.hc-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.hc-split > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.hc-split b { font-size: 26px; font-weight: 600; line-height: 1.1; }
.hc-card summary { cursor: pointer; }
