/* Console Appartements Isola 2000 — mêmes couleurs que le site (hiver). */
:root {
  --neige: #f3f6fb; --givre: #dfe6f2; --trait: #bfcbe0; --ardoise: #142339; --schiste: #4a5876;
  --mer: #1a4b96; --meleze: #dc9a3c; --genepi: #47712f; --rhodo: #a33a50; --ok: #2f6b3a;
  --radius: 10px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--neige); color: var(--ardoise); font-size: 15px; line-height: 1.5; }
a { color: var(--mer); }
:focus-visible { outline: 2px solid var(--mer); outline-offset: 2px; }
h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 24px; background: var(--ardoise); color: var(--neige); }
.top .brand { color: var(--neige); font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.top nav a { color: var(--neige); text-decoration: none; padding: 6px 10px; border-radius: 999px; opacity: .85; }
.top nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.top nav a[aria-current] { background: var(--neige); color: var(--ardoise); opacity: 1; }
.logout button { background: transparent; color: var(--neige); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.card { background: #fff; border: 1px solid var(--trait); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.narrow { max-width: 520px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.muted { color: var(--schiste); }
.small { font-size: 13px; }
.flash { padding: 12px 16px; border-radius: var(--radius); background: #e6f1e6; border: 1px solid #b9d6b9; }
.flash.bad { background: #fbe9ec; border-color: #e9b8c2; color: #6e1f2e; }
.flash.warn { background: #fff4e0; border-color: #f0d29b; }
.bad-text { color: #8a2335; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--mer); background: var(--mer); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--mer); }
.btn.danger { background: #fff; color: var(--rhodo); border-color: var(--rhodo); }
.btn.small { min-height: 30px; padding: 0 12px; font-size: 13px; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; max-width: none; }
.form.inline .grow { flex: 1 1 220px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
textarea { resize: vertical; font-weight: 400; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--schiste); border-radius: 6px; background: #fff; color: var(--ardoise); min-height: 38px; }
input.price { width: 132px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--givre); vertical-align: middle; }
th { font-size: 13px; color: var(--schiste); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.center { text-align: center; }
.nowrap { white-space: nowrap; }
tr.unread td { font-weight: 600; }
tr.new-row td { background: #f7f9fd; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.facts dt { color: var(--schiste); }
.facts dd { margin: 0; }
.pre { white-space: pre-line; }
.list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.pill { display: inline-block; min-width: 26px; padding: 0 8px; border-radius: 999px; background: var(--meleze); color: var(--ardoise); text-align: center; font-size: 14px; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--givre); white-space: nowrap; }
.s-nouvelle { background: #fff0d6; color: #7a4b00; }
.s-confirmee { background: #e3f1e3; color: var(--ok); }
.s-refusee, .s-annulee { background: #eef0f4; color: var(--schiste); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--trait); background: #fff; text-decoration: none; color: var(--ardoise); }
.tabs a[aria-current] { background: var(--ardoise); color: #fff; border-color: var(--ardoise); }
.month-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.month-nav h2 { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 12px; color: var(--schiste); text-align: center; padding: 4px 0; }
.cal .day { min-height: 64px; border-radius: 6px; padding: 4px 6px; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; border: 1px solid transparent; }
.cal .day .n { font-weight: 700; font-size: 14px; }
.cal .day .t { font-variant-numeric: tabular-nums; }
.cal .empty { background: transparent; }
.cal .free { background: #fff; border-color: var(--givre); }
.cal .site { background: #dbeedb; color: var(--ok); }
.cal .airbnb { background: #fde3e7; color: #8a2335; }
.cal .blocked { background: #ece6f6; color: #4b3a75; }
.cal .closed { background: repeating-linear-gradient(135deg, #eef1f6 0 4px, #e3e8f0 4px 6px); color: var(--schiste); }
.cal .today { outline: 2px solid var(--meleze); }
.legend { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--trait); }
.legend .free { background: #fff; } .legend .site { background: #dbeedb; } .legend .airbnb { background: #fde3e7; }
.legend .blocked { background: #ece6f6; } .legend .closed { background: #e3e8f0; }
code { background: var(--givre); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 640px) {
  .top { padding: 10px 12px; }
  .cal .day { min-height: 52px; font-size: 10px; padding: 3px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
