/* Le Clos d'Albâtre — espace hôte */
:root {
  --bg: #f4f1ea;
  --surface: #fffdf9;
  --cream: #f6f2e9;
  --line: #e5ddcd;
  --ink: #1e2822;
  --ink-2: #3c473f;
  --muted: #6e766f;
  --forest: #2c3e33;
  --forest-2: #1f2d25;
  --gold: #c39433;
  --danger: #a3402c;
  --ok: #2f7a4f;
  --warn: #9a6a12;
  --airbnb: #e0565b;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 250px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 .5em; line-height: 1.2; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; margin-top: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: var(--cream); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }

/* Mise en page */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--forest); color: #e9ede6; display: flex; flex-direction: column; padding: 20px 14px; z-index: 30; transition: transform .3s; }
.side-brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 4px 8px 22px; }
.side-brand .brand-mark { width: 38px; height: 38px; color: #f3efe6; }
.side-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.side-brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.side-brand small { opacity: .65; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #dfe5dc; text-decoration: none; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .07); }
.sidebar nav a[aria-current] { background: rgba(255, 255, 255, .13); color: #fff; }
.sidebar nav a span { flex: 1; }
.count { font-style: normal; background: #f3c969; color: var(--forest); border-radius: 999px; font-size: .78rem; font-weight: 600; padding: 1px 8px; }
.side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #c9d1c7; text-decoration: none; background: none; border: 0; width: 100%; text-align: left; }
.side-foot a:hover, .side-foot button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-foot form { margin: 0; }
.main { margin-left: var(--side); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(244, 241, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.6rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); place-items: center; }
.content { padding: 28px 32px 60px; max-width: 1280px; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 60px rgba(0, 0, 0, .3); }
  .sidebar.is-open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 1.3rem; }
  .topbar .btn span { display: none; }
  .content { padding: 20px 16px 60px; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; text-decoration: none; white-space: nowrap; background: none; transition: background .2s, color .2s; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); }
.btn-ghost { border-color: var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--danger); background: #f7e5e0; }
.link-danger { background: none; border: 0; color: var(--danger); text-decoration: underline; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.round { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* Messages */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 14px; }
.flash .icon { margin-top: 2px; }
.flash-success { background: #e3f0e6; color: #1f5534; }
.flash-error { background: #f8e3dd; color: #7a2c1d; }
.flash-warn { background: #f8eed8; color: #6d4b0d; }
.flash-info { background: #e5edf4; color: #1f4466; }
.flash a { color: inherit; font-weight: 600; }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card-danger { border-color: #e9b7aa; background: #fdf4f1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head form { margin: 0; }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { margin: 0; display: inline; }
details.card > summary::after { content: " +"; color: var(--muted); }
details.card[open] > summary { margin-bottom: 16px; }
.empty { color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .card + .grid-2, .grid-2 + .grid-2 { margin-top: 20px; }
.grid-2-wide { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 1060px) { .grid-2, .grid-2-wide { grid-template-columns: 1fr; } .grid-2 > .card { margin-bottom: 0; } }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.kpi span { color: var(--muted); font-size: .88rem; }
.kpi strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.2; }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi-hot { background: var(--forest); color: #fff; border-color: var(--forest); }
.kpi-hot span, .kpi-hot small { color: #cfd8cd; }
@media (max-width: 1060px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* Listes */
.list { list-style: none; padding: 0; margin: 0; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list-item:first-child { border-top: 0; }
.list-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.list-main span { color: var(--ink-2); font-size: .92rem; }
.list-main small { color: var(--muted); font-size: .8rem; }
a.list-main:hover strong { text-decoration: underline; }
.inline-actions { display: flex; gap: 8px; margin: 0; }
.date-chip { width: 50px; height: 50px; border-radius: 12px; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; color: var(--muted); line-height: 1.1; }
.date-chip strong { font-size: 1.2rem; color: var(--ink); font-weight: 600; }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; vertical-align: middle; text-decoration: none; font-family: var(--sans); }
.badge-pending { background: #f8eed8; color: #6d4b0d; }
.badge-confirmed, .badge-site { background: #e3f0e6; color: #1f5534; }
.badge-declined, .badge-cancelled { background: #f1e3df; color: #7a2c1d; }
.badge-expired, .badge-abandoned { background: #ece9e2; color: #6e766f; }
.badge-hold { background: #e5edf4; color: #1f4466; }
.badge-airbnb { background: #fde7e7; color: #a12f34; }
.badge-manuel { background: #ece9e2; color: #3c473f; }
.badge-pay-unpaid { background: #ece9e2; color: #6e766f; }
.badge-pay-deposit { background: #e5edf4; color: #1f4466; }
.badge-pay-paid { background: #e3f0e6; color: #1f5534; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-hover tbody tr { cursor: pointer; }
.table-hover tbody tr:hover { background: var(--cream); }
.table tr.is-past { opacity: .5; }
.card > .table-wrap { margin: 0 -24px; }
.card > .table-wrap .table th:first-child, .card > .table-wrap .table td:first-child { padding-left: 24px; }

/* Formulaires */
.stack { display: grid; gap: 14px; margin-bottom: 18px; }
.stack:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .copy-field input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; min-height: 44px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(44, 62, 51, .12); }
.field-wide { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.form-grid-5 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.form-grid-6 { grid-template-columns: 1.2fr 1fr 1fr .8fr .6fr auto; align-items: end; }
.form-grid-hl { grid-template-columns: 140px 1fr 2fr; margin-bottom: 10px; }
@media (max-width: 760px) { .form-grid-6, .form-grid-hl { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); z-index: 5; }
.card .sticky-actions { background: linear-gradient(transparent, var(--surface) 40%); }
.form-card h2 { margin-top: 8px; }
.fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; }
.fieldset legend { padding: 0 6px; font-weight: 500; }
.checks { display: flex; gap: 22px; flex-wrap: wrap; }
.checks label, .check-inline { display: inline-flex; gap: 8px; align-items: center; }
input[type=checkbox], input[type=radio] { accent-color: var(--forest); width: 17px; height: 17px; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.field-inline { min-width: 160px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .9rem; }
.chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }
.copy-field { display: flex; gap: 8px; margin: 8px 0 12px; }
.copy-field input { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: var(--ink-2); background: var(--cream); }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-bottom: 16px; color: var(--muted); }
.back:hover { color: var(--ink); }

/* Fiche réservation */
.res-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.res-head h2 { font-size: 1.7rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.res-sum { margin: 0; color: var(--ink-2); }
.res-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.dl { margin: 0 0 16px; display: grid; gap: 8px; }
.dl div { display: flex; justify-content: space-between; gap: 16px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; }
.dl-total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; }
.note { margin: 0; background: var(--cream); padding: 14px 16px; border-radius: 12px; }
.danger-zone { margin-top: 10px; text-align: right; }

/* Planning */
.cal-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-toolbar h2 { margin: 0; min-width: 180px; text-align: center; font-size: 1.5rem; }
.legend { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; padding: 0; margin: 0 0 0 auto; font-size: .85rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-site, .pl-site { background: var(--forest); }
.lg-pending, .pl-pending { background: #e2b04a; }
.lg-airbnb, .pl-airbnb { background: var(--airbnb); }
.lg-manuel, .pl-manuel { background: #9aa39b; }
.lg-conflict, .pl-conflict { background: repeating-linear-gradient(45deg, var(--airbnb), var(--airbnb) 4px, var(--forest) 4px, var(--forest) 8px); }
.planning-wrap { overflow-x: auto; }
.planning { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; }
.planning th { font-weight: 500; font-size: .78rem; color: var(--muted); padding: 10px 0 8px; text-align: center; min-width: 26px; border-bottom: 1px solid var(--line); }
.planning th small { display: block; font-size: .65rem; text-transform: uppercase; }
.planning th.we { color: var(--ink); }
.planning th.today { color: #fff; background: var(--forest); border-radius: 8px 8px 0 0; }
.planning .pl-name { position: sticky; left: 0; background: var(--surface); text-align: left; padding: 0 14px; min-width: 150px; font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 400; z-index: 1; border-right: 1px solid var(--line); }
.planning td { height: 46px; padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid #f0ebe0; position: relative; }
.planning td.today { box-shadow: inset 2px 0 0 var(--forest), inset -2px 0 0 var(--forest); }
.planning td[class*="pl-"] { border-right-color: transparent; }
.planning td.pl-start { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.planning td a { position: absolute; inset: 0; }
.planning td a.pl-free:hover { background: rgba(44, 62, 51, .08); }
.planning tbody tr:last-child td, .planning tbody tr:last-child th { border-bottom: 0; }

/* Logements */
.stay-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.stay-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .35); }
.stay-card img { height: 180px; object-fit: cover; }
.stay-card > div { padding: 18px 20px 20px; }
.mini-dl { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: .92rem; }
.mini-dl li { display: flex; justify-content: space-between; }
.mini-dl span { color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; position: sticky; top: 71px; z-index: 10; background: var(--bg); padding: 6px 0; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { border-color: var(--forest); }
.card[id] { scroll-margin-top: 130px; }
.steps-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.steps-2 h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; display: inline-grid; place-items: center; font-family: var(--sans); font-size: .85rem; }
@media (max-width: 900px) { .steps-2 { grid-template-columns: 1fr; } }
.upload-zone { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 16px; border: 1.5px dashed var(--line); border-radius: 14px; margin-bottom: 18px; }
.upload-zone .field { flex: 1; min-width: 240px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 8px; }
.photo-item { border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; gap: 8px; background: #fff; }
.photo-item.is-cover { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.photo-item img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; width: 100%; }
.photo-opts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .82rem; }
.photo-opts label { display: inline-flex; align-items: center; gap: 5px; }
.photo-opts .danger { color: var(--danger); }
.input-xs { width: 54px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; }
.rate-form { margin-top: 14px; padding: 14px; background: var(--cream); border-radius: 14px; }

/* Avis */
.review-admin { list-style: none; margin: 0; padding: 0; }
.review-admin li { padding: 16px 22px; border-top: 1px solid var(--line); }
.review-admin li:first-child { border-top: 0; }
.review-admin li.is-hidden { background: #f8f6f1; }
.review-admin li.is-hidden p { color: var(--muted); }
.ra-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.stars-txt { color: var(--gold); letter-spacing: 1px; }
.stars-txt span { color: #dcd5c6; }
.review-admin p { margin: 6px 0 10px; font-size: .93rem; }
.ra-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: .8rem; text-decoration: none; color: var(--ink-2); }
.pill .icon { width: 14px; height: 14px; }
.pill.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.pill-danger:hover { color: var(--danger); border-color: var(--danger); }
.sticky-card { position: sticky; top: 90px; }

/* Connexion */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.login-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(.6); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 26px; padding: 32px 30px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.login-card h1 { font-size: 1.9rem; margin-top: 18px; }
.login-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-family: var(--serif); font-size: 1.15rem; }
.login-brand .brand-mark { width: 40px; height: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.help-list { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; }
.preset-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.preset-row .chip { cursor: pointer; font: inherit; font-size: .88rem; }
.lg-airbnb-off, .pl-airbnb-off { background: repeating-linear-gradient(45deg, #f3c8c9, #f3c8c9 3px, #fbe9e9 3px, #fbe9e9 6px); }
.planning td.pl-airbnb a { cursor: pointer; }
.note-edit { position: relative; }
.note-edit summary { list-style: none; cursor: pointer; }
.note-edit summary::-webkit-details-marker { display: none; }
.note-edit[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .35); }
.note-line { flex-basis: 100%; }
.add-slides { margin-bottom: 18px; }
.add-slides .upload-zone { margin-bottom: 0; }
.slide-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.slide-grid img { aspect-ratio: 16 / 9; }
.photo-item.is-off img { opacity: .4; filter: grayscale(.8); }
.spot-list { list-style: none; margin: 0 0 14px; padding: 0; }
.spot-list > li { border-top: 1px solid var(--line); }
.spot-list > li:first-child { border-top: 0; }
.spot-list > li.is-hidden summary { opacity: .6; }
.spot-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.spot-list summary::-webkit-details-marker { display: none; }
.spot-list summary img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
.spot-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--forest); flex: none; }
.spot-sum { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.spot-list details[open] > summary .pill { background: var(--forest); color: #fff; border-color: var(--forest); }
.spot-form { background: var(--cream); border-radius: 14px; padding: 16px; margin: 0 0 10px; }
.spot-delete { margin: 0 0 14px; text-align: right; }
.spot-image { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.spot-image img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.spot-new > summary { list-style: none; }
.spot-new > summary::-webkit-details-marker { display: none; }
.spot-new[open] > summary { margin-bottom: 12px; }
.import-list { margin: 14px -24px; border-top: 1px solid var(--line); max-height: 520px; overflow-y: auto; }
.input-xs-select { border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; background: #fff; }
.install-app { color: #f3c969 !important; }
.side-foot [hidden] { display: none !important; }

/* QR codes */
.qr-list { display: grid; gap: 20px; margin-bottom: 20px; }
.qr-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; margin-bottom: 0; }
.qr-card.is-off { opacity: .7; }
.qr-visual { display: grid; gap: 12px; justify-items: center; align-content: start; }
.qr-canvas { width: 220px; height: 220px; border-radius: 14px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.qr-export { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.qr-info { min-width: 0; display: grid; gap: 10px; align-content: start; }
.qr-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.qr-head h2 { margin-bottom: 2px; }
.qr-info .copy-field { margin: 0; }
.qr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qr-stats > div { background: var(--cream); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.qr-stats strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.qr-stats span { font-size: .78rem; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 56px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.spark span { flex: 1; background: var(--line); border-radius: 3px 3px 0 0; min-height: 2px; }
.spark span.has { background: var(--forest); }
.spark-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: -4px; }
.qr-edit summary { list-style: none; cursor: pointer; display: inline-flex; }
.qr-edit summary::-webkit-details-marker { display: none; }
.qr-edit[open] summary { margin-bottom: 10px; }
.row-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .88rem; }
@media (max-width: 760px) {
  .qr-card { grid-template-columns: 1fr; }
  .qr-stats { grid-template-columns: 1fr 1fr; }
}

/* Clients */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .kpis-3 { grid-template-columns: 1fr; } }
.badge-client-fidele { background: #e3f0e6; color: #1f5534; text-decoration: none; }
.badge-client-revenu { background: #e5edf4; color: #1f4466; }
.badge-client-nouveau { background: #ece9e2; color: #3c473f; }
a.badge-client-fidele:hover { background: #cfe6d6; }
.client-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.client-head h2 { font-size: 1.7rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.client-contact { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0 0; color: var(--ink-2); }
.client-contact span { display: inline-flex; gap: 6px; align-items: center; }
.stack-cards { display: grid; gap: 20px; align-content: start; }
.stack-cards > .card { margin-bottom: 0; }
.timeline { list-style: none; margin: 12px 0 0; padding: 0 24px 16px; }
.timeline li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 12px 0 12px 22px; border-left: 2px solid var(--line); }
.timeline li .tl-dot { position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--forest); }
.timeline li.is-past.tl-confirmed .tl-dot { background: var(--forest); }
.timeline li.tl-declined .tl-dot, .timeline li.tl-cancelled .tl-dot, .timeline li.tl-expired .tl-dot { border-color: #b9b3a5; }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.tl-body span { color: var(--ink-2); font-size: .92rem; }
.tl-body small { color: var(--muted); font-size: .8rem; }
a.tl-body:hover strong { text-decoration: underline; }
.client-hint { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--cream); margin-bottom: 14px; font-size: .92rem; }
.client-hint.is-returning { background: #e3f0e6; }
.client-hint span { color: var(--ink-2); }
.client-hint .link-arrow { margin-top: 4px; }
.client-hint .note { margin-top: 6px; background: rgba(255, 255, 255, .6); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--forest); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Messages */
.tpl-list { list-style: none; margin: 0; padding: 0; }
.tpl-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.tpl-list li:first-child { border-top: 0; }
.tpl-list li.is-off .tpl-main { opacity: .55; }
.tpl-list form { margin: 0; }
.tpl-when { width: 40px; height: 40px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: var(--forest); flex: none; }
.tpl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.tpl-main span { color: var(--ink-2); font-size: .9rem; }
.tpl-main small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tpl-main:hover strong { text-decoration: underline; }
.msg-editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.msg-editor textarea { font-family: inherit; line-height: 1.55; }
.var-help { display: grid; gap: 6px; }
.var-help p { margin: 0; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.var-chips .pill { cursor: pointer; }
.mail-preview { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fffdf8; }
.mail-subject { margin: 0; padding: 12px 16px; background: var(--forest); color: #f3efe6; font-family: var(--serif); font-size: 1.05rem; }
.mail-body { padding: 14px 16px; font-size: .93rem; line-height: 1.6; max-height: 560px; overflow-y: auto; }
.mail-body p { margin: 0 0 12px; }
.mail-body a { color: var(--forest); word-break: break-all; }
.preview-when { margin: 0 0 10px; }
@media (max-width: 1060px) { .msg-editor { grid-template-columns: 1fr; } }
.msg-history { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.msg-history li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--cream); }
.msg-history li > span { display: flex; flex-direction: column; min-width: 0; }
.msg-history small { color: var(--muted); }
.msg-history details summary { cursor: pointer; color: var(--forest); font-size: .82rem; }
.msg-history details .mail-body { background: #fff; border-radius: 10px; margin-top: 6px; max-height: 300px; }

/* Un élément masqué reste masqué, quel que soit son style */
[hidden] { display: none !important; }

/* Éditeur du guide d'accueil */
.guide-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.guide-top { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.guide-top img { width: 120px; height: 90px; object-fit: cover; border-radius: 14px; }
.guide-top h2 { font-size: 1.7rem; margin: 0 0 8px; }
.guide-top p { margin: 0; }
.guide-status { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-top-actions { display: grid; gap: 6px; }
@media (max-width: 900px) { .guide-top { grid-template-columns: 1fr; } .guide-top img { width: 100%; height: 140px; } }
.guide-form { display: grid; gap: 20px; max-width: 980px; }
.guide-form > .card { margin-bottom: 0; }
.gsection { display: grid; gap: 18px; scroll-margin-top: 90px; }
.gsection-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.gsection-head > div { flex: 1; min-width: 200px; }
.gsection-head h2 { margin: 0; font-size: 1.5rem; }
.gsection-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.gsection-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--forest); color: #f3efe6; display: grid; place-items: center; flex: none; }
.gsection-icon .icon { width: 24px; height: 24px; }
.gsection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gsection-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .gsection-grid, .gsection-grid.three { grid-template-columns: 1fr; } }
.gsection-note { margin: 0; display: flex; gap: 8px; align-items: center; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.gfield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gfield-label { font-weight: 600; font-size: .98rem; display: inline-flex; gap: 8px; align-items: center; }
.gfield-help { font-size: .84rem; color: var(--muted); }
.gfield input, .gfield textarea { margin-top: 4px; width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; font-size: 1rem; line-height: 1.55; background: #fff; }
.gfield textarea { resize: vertical; min-height: 92px; }
.gfield input:focus, .gfield textarea:focus, .keybox-code input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(44, 62, 51, .12); }
.gfield.is-empty input, .gfield.is-empty textarea { background: #fffaf0; border-style: dashed; }
.keybox { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 18px; align-items: stretch; padding: 18px; border-radius: 18px; background: var(--cream); }
.keybox .gfield textarea { min-height: 120px; }
.keybox-code { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 16px; border: 1.5px solid var(--line); padding: 16px 18px; }
.keybox-code input { width: 100%; border: 0; border-radius: 12px; background: var(--forest); color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2.4rem; letter-spacing: .3em; text-align: center; padding: 14px 10px 14px calc(10px + .3em); }
.keybox-code input::placeholder { color: rgba(255, 255, 255, .45); }
.keybox-code.is-empty { border-style: dashed; border-color: #e2b04a; }
@media (max-width: 760px) { .keybox { grid-template-columns: 1fr; } }
.wifi-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 16px; align-items: end; padding: 18px; border-radius: 18px; background: var(--cream); }
.wifi-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--forest); margin-bottom: 4px; }
@media (max-width: 760px) { .wifi-row { grid-template-columns: 1fr; } .wifi-icon { display: none; } }
.save-bar { position: sticky; bottom: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35); }

/* Messages : onglets par logement et parcours */
.msg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.msg-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .92rem; }
.msg-tab:first-child { padding-left: 12px; }
.msg-tab img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.msg-tab.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.msg-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: #e2b04a; display: inline-block; }
.lodging-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.lodging-head h2 { font-size: 1.7rem; margin: 0 0 6px; }
.lodging-head p { margin: 0 0 10px; }
@media (max-width: 900px) { .lodging-head { grid-template-columns: 1fr; } }
.msg-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 128px; padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--forest); font-size: .8rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpl-list .msg-chip { min-width: 150px; }
.msg-timeline { list-style: none; margin: 0 0 16px; padding: 0 0 0 4px; display: grid; gap: 14px; }
.msg-step { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; position: relative; }
.msg-step::before { content: ""; position: absolute; left: 74px; top: 34px; bottom: -14px; width: 2px; background: var(--line); }
.msg-step:last-child::before { display: none; }
.msg-step > .msg-chip { position: relative; z-index: 1; margin-top: 14px; min-width: 150px; }
.msg-step.is-off .msg-card { opacity: .6; }
.msg-card { margin-bottom: 0; display: grid; gap: 12px; }
.msg-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.msg-card-head h3 { margin: 0 0 6px; font-size: 1.25rem; }
.msg-card-head p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.msg-card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.msg-card-actions form { margin: 0; }
.msg-mini-actions { display: flex; gap: 12px; flex-basis: 100%; justify-content: flex-end; }
.msg-preview-inline > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--cream); }
.msg-preview-inline > summary::-webkit-details-marker { display: none; }
.msg-preview-inline[open] > summary { margin-bottom: 10px; }
.msg-preview-inline[open] > summary .link-btn { visibility: hidden; }
.msg-subject-line { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; min-width: 0; }
@media (max-width: 760px) {
  .msg-step { grid-template-columns: 1fr; }
  .msg-step::before { display: none; }
  .msg-step > .msg-chip { margin-top: 0; justify-self: start; }
}

/* ---------- Paiement en ligne ---------- */
.pay-history { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pay-history li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--cream); }
.pay-history li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pay-history small { color: var(--muted); }
.pay-amount { font-weight: 600; white-space: nowrap; color: #1f5534; }
.pay-amount.is-refund { color: #7a2c1d; }
.refund-box { margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.refund-box summary { cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.refund-box[open] summary { margin-bottom: 12px; }
.mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 18px; }
.mode-choice label { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.mode-choice label:has(input:checked) { border-color: var(--forest, #2c3e33); box-shadow: 0 0 0 3px rgba(44, 62, 51, .1); }
.mode-choice input { margin-top: 4px; accent-color: var(--forest, #2c3e33); }
.mode-choice strong { display: block; }
.mode-choice small { color: var(--muted); }
.steps-help { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 720px) { .mode-choice { grid-template-columns: 1fr; } }
