:root {
  --bg: #f4f5f3; --paper: #fff; --ink: #1f2725; --muted: #6b7672; --line: #e2e5e1; --line-2: #eef0ed;
  --pine: #1f4566; --pine-2: #2c5a80; --accent: #c0727a; --danger: #c0392b;
  --r: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 14.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); display: flex; min-height: 100vh; }
a { color: var(--pine-2); }
h1 { font-size: 1.45rem; margin: 0 0 18px; color: var(--pine); }
h2 { font-size: 1.1rem; margin: 0 0 12px; color: var(--pine); }
.muted { color: var(--muted); } .small { font-size: .85rem; }

/* barre latérale */
.side { width: 220px; flex: 0 0 220px; background: var(--pine); color: #d7e2ea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 16px 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem; line-height: 1.25; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand img { width: 44px; height: 44px; border-radius: 10px; background: #fbf6ea; padding: 2px; flex: none; }
.side-brand small { display: block; font-weight: 400; color: #9fb5ab; font-size: .78rem; margin-top: 3px; }
.side nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: #d7e2dc; text-decoration: none; padding: 9px 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.side nav a i { font-style: normal; width: 18px; text-align: center; opacity: .8; }
.side nav a:hover { background: rgba(255,255,255,.07); }
.side nav a.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot a { color: #b9cbc2; text-decoration: none; } .side-foot a:hover { color: #fff; }
.ver { color: #9fb6c8; font-size: .8rem; font-weight: 600; margin-top: 4px; }
.main { flex: 1; min-width: 0; padding: 24px 28px 40px; }

/* éléments */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfd5d1; background: #fff; color: var(--ink); border-radius: 8px; padding: 7px 13px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #f2f4f2; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.sm { padding: 5px 10px; }
.btn.block { width: 100%; justify-content: center; }
.btn-primary { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-2); }
.btn-danger { color: var(--danger); border-color: #e6b8b2; }
.btn-danger:hover { background: #fbeeec; }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash-ok { background: #dcefe0; color: #1d4d2b; } .flash-erreur { background: #f7dcd5; color: #7a2e1d; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 1000; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--pine); box-shadow: 0 8px 30px rgba(0,0,0,.2); max-width: 460px; }
.toast.erreur { background: #a33a2a; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }

label { display: block; font-size: .82rem; font-weight: 600; color: #46524e; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfd5d1; border-radius: 7px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(45,82,70,.25); border-color: var(--pine-2); }
input:disabled, select:disabled { background: #f3f4f2; color: #66706c; }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin: 0 6px 0 0; }
textarea { resize: vertical; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fgrid .span2 { grid-column: span 2; }
.fgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.fgrid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; }
.help { font-weight: 400; color: var(--muted); font-size: .8rem; display: block; margin-top: 3px; }
.check { display: flex; align-items: center; font-weight: 500; gap: 2px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.form-actions .grow, .grow { flex: 1; }

table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.list th, .list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.list th { background: #f8f9f7; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.list tr:last-child td { border-bottom: 0; }
.list tr.unread td { background: #fffaf3; }
.list .thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; background: #e5e7e4; display: block; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.filters { display: flex; gap: 10px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.filters label { min-width: 170px; }

/* ---------------- planning ---------------- */
.page-planning .main { padding-bottom: 16px; }
.pl-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.pl-toolbar h1 { margin: 0 8px 0 0; }
.pl-nav, .pl-actions { display: flex; gap: 6px; align-items: center; }
.pl-nav input, .pl-nav select { width: auto; margin: 0; padding: 5px 8px; }
.pl-actions { margin-left: auto; }
.dot-err { color: #fff; background: var(--danger); border-radius: 99px; padding: 0 6px; font-size: .75rem; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; font-size: .82rem; color: #46524e; }
.lg-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-item i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-item.ferme i { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px) !important; }
.lg-item b { background: #e9ecea; border-radius: 99px; padding: 0 6px; font-size: .74rem; }
.lg-sep { width: 1px; background: var(--line); margin: 0 4px; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 10px; }

.pl-wrap { --label: 190px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: auto; max-height: calc(100vh - 190px); position: relative; user-select: none; }
.pl-empty { padding: 40px; text-align: center; color: var(--muted); }
.pl-grid { width: calc(var(--label) + var(--n) * var(--w)); }
.pl-row { display: flex; border-bottom: 1px solid var(--line-2); }
.pl-label { position: sticky; left: 0; z-index: 5; width: var(--label); flex: 0 0 var(--label); background: #fff; border-right: 1px solid var(--line); padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; }
.pl-label strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-label small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-track { position: relative; width: calc(var(--n) * var(--w)); flex: 0 0 auto; display: flex; }
.pl-months, .pl-days, .pl-zone { position: sticky; z-index: 6; background: #fff; }
.pl-months { top: 0; height: 30px; }
.pl-days { top: 30px; height: 38px; }
.pl-months .pl-label, .pl-days .pl-label { z-index: 7; }
.pl-month { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); overflow: hidden; }
.pl-month span { position: sticky; left: calc(var(--label) + 8px); padding: 0 8px; line-height: 30px; font-weight: 700; font-size: .85rem; text-transform: capitalize; color: var(--pine); white-space: nowrap; }
.pl-day { width: var(--w); flex: 0 0 var(--w); text-align: center; font-size: .78rem; line-height: 1.1; padding-top: 5px; border-left: 1px solid var(--line-2); font-weight: 600; color: #39443f; overflow: hidden; }
.pl-day small { display: block; font-weight: 400; color: var(--muted); font-size: .66rem; }
.pl-day.we { background: #f3f4f1; }
.pl-day.m1 { border-left-color: #c9cfca; }
.pl-day.today { background: var(--pine); color: #fff; } .pl-day.today small { color: #cfe0d7; }
.pl-zone { height: 22px; }
.pl-zone:nth-of-type(3) { top: 68px; } .pl-zone:nth-of-type(4) { top: 90px; } .pl-zone:nth-of-type(5) { top: 112px; }
.pl-zone .pl-label { font-size: .75rem; color: #46524e; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; padding: 0 12px; white-space: nowrap; }
.pl-zone .pl-label em { color: var(--muted); font-style: normal; }
.zdot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; }
.pl-vac { position: absolute; top: 4px; height: 14px; border-radius: 4px; opacity: .85; overflow: hidden; }
.pl-vac { overflow: visible; clip-path: inset(0 round 4px); line-height: 14px; font-size: 0; }
.pl-vac span { color: #fff; font-size: .66rem; font-weight: 600; padding: 0 6px; line-height: 14px; white-space: nowrap; display: inline-block; vertical-align: top; position: sticky; left: calc(var(--label) + 2px); }
.pl-zone:last-of-type { border-bottom: 1px solid var(--line); }

.pl-lg { height: calc(12px + var(--lanes) * 58px); min-height: 70px; }
.pl-lg .pl-track { cursor: crosshair; }
.c { width: var(--w); flex: 0 0 var(--w); border-left: 1px solid var(--line-2); background: #f3faf5; }
.c.we { background: #e9f3ec; }
.c.vac { background-image: linear-gradient(rgba(230,85,60,.09), rgba(230,85,60,.09)); }
.c.past { background-color: #f6f7f5; }
.c.past.we { background-color: #eff0ed; }
.c.today { box-shadow: inset 2px 0 0 var(--pine); }
.pl-lg:hover .pl-label { background: #fafbf9; }
.bar { position: absolute; top: calc(6px + var(--lane) * 30px); height: 26px; border-radius: 6px; padding: 0 8px; display: flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; cursor: pointer; overflow: hidden; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: skewX(-12deg); z-index: 2; }
.bar > * { transform: skewX(12deg); }
.bar span { overflow: hidden; text-overflow: ellipsis; }
.bar:hover { filter: brightness(1.06); box-shadow: 0 3px 10px rgba(0,0,0,.22); z-index: 3; }
.bar.ferme { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px) !important; transform: none; border-radius: 3px; }
.bar.ferme > * { transform: none; }
.bar.conflit { outline: 2px solid #d62c1a; outline-offset: 1px; }
.doli-ic { font-style: normal; background: rgba(255,255,255,.3); border-radius: 3px; font-size: .62rem; padding: 0 3px; line-height: 14px; }
.sel { position: absolute; top: 4px; bottom: 4px; background: rgba(45,82,70,.18); border: 2px dashed var(--pine-2); border-radius: 6px; z-index: 4; color: var(--pine); font-weight: 700; font-size: .75rem; display: flex; align-items: center; justify-content: center; pointer-events: none; }

/* dialogue */
.dlg { border: 0; border-radius: 14px; padding: 0; width: min(620px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(15,25,20,.45); }
.dlg header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.dlg header h2 { margin: 0; }
.dlg .x { border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.dlg-body { padding: 16px 20px; max-height: 70vh; overflow: auto; }
.dlg footer { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fafbf9; }
.seg { display: inline-flex; background: #eef0ed; border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.seg label { margin: 0; }
.seg input { display: none; }
.seg span { display: block; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--pine); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg input:disabled + span { cursor: default; }
.is-ferme .only-resa { display: none; }
.nights { margin: -4px 0 0; color: var(--muted); font-size: .85rem; }
.warn { background: #f7dcd5; color: #7a2e1d; padding: 10px 12px; border-radius: 8px; margin-top: 12px; }
.doli-box { background: #eef4fb; border: 1px solid #cfe0f3; border-radius: 9px; padding: 10px 14px; margin-bottom: 14px; font-size: .88rem; }
.doli-box p { margin: 0 0 6px; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; gap: 10px; padding: 4px 0; border-top: 1px solid #dbe7f4; align-items: baseline; }
.docs .k { width: 90px; color: var(--muted); } .docs .s { margin-left: auto; font-weight: 600; } .docs .t { width: 100px; text-align: right; }
.is-doli #propal-hint { display: none; }

/* photos */
.ph-drop { border: 2px dashed #c6cec9; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); margin-bottom: 16px; transition: background .15s, border-color .15s; }
.ph-drop.over { background: #eef6f1; border-color: var(--pine-2); }
.ph-drop input { display: none; }
.ph-status { font-weight: 600; color: var(--pine); margin-left: 8px; }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ph { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; cursor: grab; }
.ph.dragging { opacity: .4; }
.ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; pointer-events: none; }
.ph-cover { display: none; position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.ph:first-child .ph-cover { display: block; }
.ph-cap { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; margin: 0; font-size: .82rem; }
.ph-tools { display: flex; border-top: 1px solid var(--line-2); }
.ph-tools button { flex: 1; border: 0; background: #fafbf9; padding: 6px; cursor: pointer; font-size: .9rem; }
.ph-tools button:hover { background: #eef0ed; }
.ph-tools .ph-del:hover { background: #fbeeec; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.mapbox { border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: #e5e7e4; margin-top: 10px; }
.mapbox iframe { border: 0; width: 100%; height: 100%; }
.log { font-family: ui-monospace, monospace; font-size: .8rem; }
.ok-dot { color: #1e8449; font-weight: 700; } .err-dot { color: var(--danger); font-weight: 700; }
code { background: #eef0ed; padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* connexion */
.login-page { align-items: center; justify-content: center; background: linear-gradient(160deg, #15304a, #1f4566 60%, #2c5a80); }
.login-logo { width: 220px; height: auto; align-self: center; margin-bottom: 4px; }
.logo-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 240px; height: auto; background: #fbf6ea; border-radius: 10px; padding: 8px; border: 1px solid var(--line); }
.login-card { background: #fbf6ea; padding: 32px; border-radius: 16px; width: min(380px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 0; }
.login-card .muted { margin: -10px 0 4px; }

@media (max-width: 900px) {
  body { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex: none; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { flex-direction: row; gap: 14px; }
  .main { padding: 16px; }
  .pl-wrap { --label: 120px; max-height: none; }
  .two-col, .fgrid, .fgrid3, .fgrid4 { grid-template-columns: 1fr; }
  .fgrid .span2 { grid-column: auto; }
}

/* 1.2.0 — chambres en complément */
.chip-rose { background: #f6dfe0; color: #8a3f49; }
.pl-lg.complement .pl-label { background: #fbf6f6; }
.pl-lg.complement .pl-label small { color: #a85c65; }
.bar.child { border-left: 3px solid rgba(255,255,255,.9); }
.bar.orphelin { outline: 2px dashed #d62c1a; outline-offset: 1px; }
.only-room { display: none; }
.is-room .only-room { display: block; }
.is-ferme .only-room { display: none; }
label small { font-weight: 400; color: var(--muted); }

/* 1.3.0 — Dolibarr */
.guide ol { padding-left: 20px; } .guide ol > li { margin-bottom: 12px; } .guide ul { margin: 6px 0; }
.guide details { margin-top: 10px; background: #f6f8fa; border-radius: 8px; padding: 8px 12px; }
.guide summary { cursor: pointer; font-weight: 600; color: var(--pine); }
.test-result { margin-top: 14px; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--line); }
.test-result.ok { background: #eaf6ee; border-color: #bfe3c9; } .test-result.ko { background: #fbefec; border-color: #efc9c1; }
.test-result p { margin: 0 0 6px; }
.test-result ul { list-style: none; padding: 0; margin: 0; }
.test-result li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.06); }
.test-result li > span { font-weight: 700; width: 16px; }
.test-result li.ok > span { color: #1e8449; } .test-result li.ko > span { color: var(--danger); }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a.on { color: var(--pine); border-bottom-color: var(--pine); font-weight: 600; }
.tabs b { background: #e9ecea; border-radius: 99px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
.propal { padding: 14px 18px; margin-bottom: 12px; }
.propal-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.propal-ref { font-family: ui-monospace, monospace; font-weight: 700; margin-right: 8px; }
.extrait { font-size: .85rem; color: #4b5763; background: #f7f8f6; border-radius: 6px; padding: 6px 10px; margin: 8px 0; max-height: 4.5em; overflow: hidden; }
.ok-line { color: #1d5b33; margin: 8px 0 4px; font-size: .9rem; }
.assoc { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 8px; }
.assoc label { min-width: 150px; } .assoc label:first-of-type { min-width: 230px; }
.ignore-form { text-align: right; margin-top: -4px; }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; }
.more-assoc summary { cursor: pointer; font-size: .82rem; color: var(--pine-2); margin-top: 4px; }
.guide ol > li > ul { padding-left: 18px; margin-top: 4px; } .guide ol > li > ul > li { margin: 3px 0; }
.rights { border-collapse: collapse; margin: 6px 0; font-size: .85rem; width: 100%; }
.rights td { border: 1px solid var(--line); padding: 4px 8px; } .rights td:first-child { font-weight: 600; width: 45%; background: #f7f8f6; }
.warn-box { background: #fff6e5; border: 1px solid #f1d9a6; border-radius: 8px; padding: 8px 12px; font-size: .85rem; }

/* 1.4.0 — services */
.svc-grid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.svc-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.svc-nophoto { aspect-ratio: 16/10; border-radius: 8px; background: #f6e6e4; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 6px; }
.svc-nophoto small { font-size: .72rem; color: var(--muted); }
.svc-photo input[type=file] { font-size: .78rem; padding: 4px; }
.svc-row { display: flex; gap: 12px; align-items: end; }
.svc-ic { width: 80px; } .svc-ic input { text-align: center; font-size: 1.2rem; padding: 5px; }
.svc-ord { width: 80px; }
.ic-picks { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 10px; }
.ic-picks button { border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 1rem; padding: 2px 6px; cursor: pointer; }
.ic-picks button:hover { background: #f3f4f2; }
.svc-new { border: 2px dashed #cfd5d1; box-shadow: none; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* 1.5.0 */
.ph-piece { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; margin: 0; font-size: .82rem; background: #f7f9fb; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.equip-cat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; }
.equip-cat legend { font-weight: 700; color: var(--pine); font-size: .85rem; padding: 0 4px; }
.equip-cat .check, .svc-checks .check { font-weight: 400; margin: 4px 0; }
.svc-checks { display: flex; flex-wrap: wrap; gap: 6px 22px; }
/* page d'accueil */
.home-sel { display: grid; grid-template-columns: 260px 1fr; gap: 24px; position: sticky; top: 0; z-index: 10; }
.hero-box { aspect-ratio: 16/9; border: 2px dashed #cfd5d1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px; overflow: hidden; }
.hero-box img { width: 100%; height: calc(100% - 22px); object-fit: cover; border-radius: 6px; }
.sel-list { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; min-height: 40px; }
.sel-list li { position: relative; width: 120px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.sel-list img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.sel-list b { position: absolute; top: 4px; left: 4px; background: var(--pine); color: #fff; border-radius: 99px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: .75rem; }
.sel-tools { display: flex; } .sel-tools button { flex: 1; border: 0; border-top: 1px solid var(--line-2); background: #fafbf9; cursor: pointer; padding: 3px; }
.sel-tools button:hover { background: #eef0ed; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pick { border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); position: relative; }
.pick img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pick.on { border-color: var(--pine-2); }
.pick.is-hero { border-color: var(--accent); }
.pick.is-hero::after { content: "Grande image"; position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pick-tools { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; }
.pick-tools .check { margin: 0; font-weight: 500; font-size: .85rem; }
.pick-hero { border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: #b9b2a0; }
.pick.is-hero .pick-hero, .pick-hero:hover { color: var(--accent); }
.pick-cap { display: block; padding: 0 8px 6px; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .home-sel { grid-template-columns: 1fr; position: static; } }
.couch-table { border-collapse: collapse; width: 100%; max-width: 720px; }
.couch-table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 0 6px 4px 0; }
.couch-table td { padding: 3px 6px 3px 0; }
.couch-table input, .couch-table select { margin: 0; }
.couch-table td:last-child { width: 40px; }
/* 1.7.0 — sécurité */
.otp-input { font-size: 1.4rem; letter-spacing: .25em; text-align: center; font-family: ui-monospace, monospace; max-width: 220px; }
.inline-2fa { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 8px; }
.steps-2fa > li { margin-bottom: 16px; }
.qr { margin: 10px 0; } .qr img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.secret code { font-size: 1.05rem; letter-spacing: .08em; padding: 6px 10px; }
.codes-card { border: 2px solid #f1d9a6; background: #fffaf0; }
.codes { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px 22px; list-style: none; padding: 0; }
.codes code { font-size: 1.05rem; }
@media print { .side, .two-col, .page-head, .flash, .codes-card button { display: none !important; } .main { padding: 0; } }
/* 1.8.0 — fermeture multiple */
.multi-lg { display: none; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fafbf9; }
.is-multi .multi-lg { display: block; }
.is-multi .single-lg { display: none; }
.multi-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.multi-head a { font-size: .8rem; }
.multi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 14px; }
.multi-list .check { font-weight: 500; margin: 3px 0; }
/* 1.8.3 — état Dolibarr des logements */
.doli-state { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: help; }
.doli-state i { font-style: normal; width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .75rem; }
.doli-ok { background: #e3f3e7; color: #1d5b33; } .doli-ok i { background: #1e8449; }
.doli-warn { background: #fdecd8; color: #8a4b0b; } .doli-warn i { background: #e67e22; }
.doli-none { background: #eef0ed; color: #6b7672; } .doli-none i { background: #b7beba; }
.doli-wait { background: #e8eef5; color: #2c5a80; } .doli-wait i { background: #7f9bb5; }
.doli-n { display: block; margin-top: 2px; padding-left: 4px; }
/* 1.9.0 — photos des services */
.photo-manager[data-sans-piece] .ph-piece { display: none; }
.svc-photos { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.svc-photos summary { cursor: pointer; font-weight: 600; color: var(--pine); margin-bottom: 10px; }
.svc-photos .ph-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* 1.9.0 — lieux */
.pl-group { height: 26px; background: #eef3f8; }
.pl-group .pl-label { background: #eef3f8; font-weight: 700; font-size: .8rem; color: var(--pine); flex-direction: row; align-items: center; justify-content: flex-start; }
.pl-group .pl-track { background: #eef3f8; }
.lieux-table td:first-child { width: 34%; } .lieux-table td:last-child { width: 110px; }

/* 1.11.0 — planning : lignes doublées, demi-cases en diagonale, prix, parking */
.bar { position: absolute; top: calc(6px + var(--lane) * 58px); height: 54px; padding: 0; display: block; transform: none; box-shadow: none; background: none !important; border-radius: 0; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.25)); }
.bar > * { transform: none; }
.bar-shape { position: absolute; inset: 0; background: var(--bg); clip-path: polygon(var(--w) 0, 100% 0, calc(100% - var(--w)) 100%, 0 100%); border-radius: 3px; }
.bar.ferme .bar-shape { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0 6px, transparent 6px 12px); background-color: var(--bg); }
.bar-txt { position: absolute; top: 0; bottom: 0; left: calc(var(--w) * .9); right: calc(var(--w) * .6); display: flex; flex-direction: column; justify-content: center; gap: 2px; overflow: hidden; white-space: nowrap; pointer-events: none; }
.bar-txt .l1 { font-size: .8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.bar-txt .l2 { font-size: .72rem; font-weight: 500; opacity: .92; overflow: hidden; text-overflow: ellipsis; }
.bar:hover { filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); z-index: 3; }
.bar.conflit { outline: none; filter: drop-shadow(0 0 1.5px #d62c1a) drop-shadow(0 0 1.5px #d62c1a) drop-shadow(0 0 1px #d62c1a); }
.bar.orphelin { outline: none; filter: drop-shadow(0 0 2px #d62c1a) drop-shadow(0 0 2px #d62c1a); }
.bar.child .bar-shape { box-shadow: inset 3px 0 0 rgba(255,255,255,.9); }
.pl-park { position: sticky; z-index: 6; background: #fff; height: 24px; }
.pl-park .pl-label { font-size: .75rem; color: #46524e; flex-direction: row; align-items: center; justify-content: flex-start; gap: 4px; padding: 0 12px; white-space: nowrap; }
.pl-park .pl-label em { color: var(--muted); font-style: normal; }
.pk { width: var(--w); flex: 0 0 var(--w); border-left: 1px solid var(--line-2); text-align: center; font-size: .72rem; font-weight: 700; line-height: 24px; color: var(--muted); }
.pk.used { background: #eef3f8; color: var(--pine); }
.pk.over { background: #fbe1dc; color: #b03a2e; }

/* ---------- statistiques ---------- */
.st-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-head h1 { margin: 0; }
.st-live { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 99px; padding: 5px 12px; font-size: .85rem; color: var(--muted); box-shadow: var(--shadow); }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: #b8bfbb; }
.st-live.on i { background: #1baf7a; box-shadow: 0 0 0 3px rgba(27,175,122,.2); }
.st-live.on { color: var(--ink); }
.st-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end; margin: 16px 0 6px; }
.st-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .88rem; }
.st-chip:hover { background: #f2f4f2; }
.st-chip.on { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 600; }
.st-perso { display: flex; gap: 8px; align-items: end; }
.st-perso label { font-weight: 500; }
.st-perso input { width: 150px; padding: 5px 8px; }
.st-periode { margin: 0 0 16px; }
.st-root.loading { opacity: .55; transition: opacity .2s; }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.st-kpi { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-height: 104px; }
.st-kpi-l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.st-kpi-v { font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.st-kpi-d { font-size: .8rem; color: var(--muted); }
.st-kpi-d.up { color: #1d6b3f; } .st-kpi-d.down { color: #a3392b; }
.st-kpi-n { font-size: .74rem; color: var(--muted); margin-top: auto; }
.st-card h2 { font-size: 1rem; }
.st-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.st-card-head h2 { margin: 0; }
.st-legend { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); }
.st-leg { display: inline-flex; align-items: center; gap: 6px; }
.st-leg i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.st-chart { width: 100%; overflow: hidden; }
.st-chart svg { display: block; width: 100%; height: auto; }
.st-grid line.st-grid, svg .st-grid { stroke: #eceeeb; stroke-width: 1; }
svg .st-axis { stroke: #c9cec9; stroke-width: 1; }
svg .st-tick { font-size: 11px; fill: #6b7672; font-variant-numeric: tabular-nums; }
svg .st-val { font-size: 11px; fill: #1f2725; font-weight: 600; }
svg .st-hair { stroke: #9aa39f; stroke-width: 1; stroke-dasharray: 3 3; }
svg .st-col:hover { opacity: .8; }
.st-table { margin-top: 8px; font-size: .88rem; }
.st-table summary { cursor: pointer; color: var(--pine-2); }
.st-mini { margin-top: 8px; box-shadow: none; } .st-mini td, .st-mini th { padding: 5px 10px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.st-section { margin: 26px 0 12px; font-size: 1.15rem; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.st-grid > .card { margin-bottom: 0; }
.st-wide { grid-column: span 2; }
@media (max-width: 760px) { .st-wide { grid-column: auto; } }
.st-bars { display: flex; flex-direction: column; gap: 9px; }
.st-bar { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 2px 4px; margin: 0 -4px; border-radius: 6px; cursor: default; }
.st-bar:hover { background: #f5f7f5; }
.st-bar-l { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.st-bar-l a { color: var(--ink); }
.st-bar-v { font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.st-bar-v span { color: var(--muted); margin-left: 6px; font-size: .78rem; display: inline-block; min-width: 34px; }
.st-bar-t { grid-column: 1 / -1; height: 6px; background: #f0f2ef; border-radius: 4px; overflow: hidden; }
.st-bar-t i { display: block; height: 100%; border-radius: 4px; }
.st-bar-x { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); }
.st-note { margin: 10px 0 0; }
.st-vide { margin: 4px 0; }
.st-perf-r { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.st-perf-r:last-child { border-bottom: 0; }
.st-livelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-livelist li { display: flex; flex-direction: column; font-size: .88rem; }
.st-livelist span { color: var(--muted); font-size: .8rem; }
.st-map { height: 340px; border-radius: 8px; overflow: hidden; background: #e8ece9; }
.st-visites td { vertical-align: top; font-size: .86rem; }
.st-visites .nowrap { white-space: nowrap; }
.st-url { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-parcours { font-size: .8rem; color: #46524e; max-width: 380px; }
.st-tip { position: fixed; z-index: 2000; background: #fff; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.16); padding: 8px 11px; font-size: .82rem; pointer-events: none; min-width: 140px; }
.st-tip-t { color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.st-tip-r { display: flex; align-items: center; gap: 7px; }
.st-tip-r i { width: 12px; height: 3px; border-radius: 2px; }
.st-tip-r b { font-variant-numeric: tabular-nums; }
.st-tip-r span { color: var(--muted); }
