/* Administration — Meine kleine Ecke */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
:root { --a-bg: #f4f3f0; --a-card: #fff; --a-line: #e5e2dc; --a-ink: #1d1c1a; --a-muted: #6f6b64; --a-ok: #2e7d4f; --a-err: #b3362a; --a-warn: #a86a12; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--a-bg); color: var(--a-ink); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: #efece6; padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--a-muted); }
h1 { font-size: 1.7rem; margin: 0; letter-spacing: -.01em; }

/* Layout */
.is-app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--primary-deep); color: rgba(255,255,255,.82); display: flex; flex-direction: column; padding: 1.25rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: flex; gap: .75rem; align-items: center; color: #fff; text-decoration: none; padding: .25rem .5rem 1.5rem; }
.side-brand strong { display: block; font-size: 1rem; }
.side-brand small { opacity: .65; font-size: .78rem; }
.side-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.side-mark svg { width: 24px; height: 24px; }
.side-mark.big { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 1rem; }
.side-mark.big svg { width: 34px; height: 34px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-foot a, .side-foot button {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: 10px; color: inherit; text-decoration: none;
  background: none; border: 0; width: 100%; cursor: pointer; text-align: left;
}
.side-nav a:hover, .side-foot a:hover, .side-foot button:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav a[aria-current] { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.side-nav span { flex: 1; }
.side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 2px; }
.badge { background: var(--accent); color: #fff; font-size: .72rem; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 .4rem; }
.badge.soft { background: #d9d5cd; color: var(--a-ink); }
.topbar { display: none; }
.main { padding: 2rem clamp(1rem, 3vw, 2.75rem) 6rem; max-width: 1100px; width: 100%; }

@media (max-width: 900px) {
  .is-app { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; transform: translateX(-100%); transition: transform .25s; }
  .side-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topbar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--primary-deep); color: #fff; position: sticky; top: 0; z-index: 20; }
  .topbar strong { flex: 1; }
  .topbar a { color: #fff; font-size: .9rem; }
  .burger { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
}

/* Head */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.crumb { font-size: .88rem; text-decoration: none; display: inline-block; margin-bottom: .35rem; }
.hint { color: var(--a-muted); font-size: .9rem; margin: -.5rem 0 1.25rem; }

/* Cards & fields */
.stack { display: grid; gap: 1.25rem; }
.card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 16px; padding: 1.5rem; }
.card-title { font-size: 1.05rem; margin: 0 0 1.1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: grid; gap: .35rem; align-content: start; min-width: 0; }
.field.wide, .field.is-check { grid-column: 1 / -1; }
@media (max-width: 700px) { .fields { grid-template-columns: 1fr; } }
.lbl { font-weight: 600; font-size: .86rem; }
.help { font-size: .82rem; color: var(--a-muted); margin: .1rem 0 0; }
.card > .help { margin: -.6rem 0 1rem; }
input[type=text], input:not([type]), input[type=number], input[type=password], input[type=email], select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid #d8d4cc; border-radius: 10px; background: #fff; min-width: 0;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.check.small { font-size: .85rem; font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; font-size: .92rem; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-light { background: #fff; border-color: #d8d4cc; color: var(--a-ink); }
.btn-light:hover { border-color: var(--a-ink); }
.btn-danger { background: #fff; border-color: #ecc7c2; color: var(--a-err); }
.btn-danger:hover { background: #fbeeec; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.row-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.row-actions form { display: contents; }
.tool { border: 1px solid var(--a-line); background: #fff; border-radius: 8px; min-width: 32px; height: 32px; cursor: pointer; font-size: .85rem; padding: 0 .55rem; }
.tool:hover { border-color: var(--a-ink); }
.tool.danger { color: var(--a-err); }

/* Save bar */
.savebar { position: sticky; bottom: 1rem; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--a-line); border-radius: 14px; padding: .75rem .9rem; box-shadow: 0 10px 30px -15px rgba(0,0,0,.25); z-index: 5; }
.savebar [data-dirty-msg] { visibility: hidden; font-size: .88rem; }
.is-dirty .savebar [data-dirty-msg] { visibility: visible; color: var(--a-warn); }

/* Flash */
.flash { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .92rem; }
.flash-ok { background: #e6f2ea; color: #1f5a37; }
.flash-error { background: #f9e5e2; color: #8e2a1f; }
.flash-warn { background: #fbf0dc; color: #7a4c0a; }
.flash a { color: inherit; font-weight: 700; }

/* Image field */
.img-field { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
.img-preview { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#f0eee9 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--a-line); display: grid; place-items: center; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-empty { color: var(--a-muted); font-size: .85rem; }
.img-actions { display: grid; gap: .6rem; justify-items: start; }
.img-actions select { max-width: 360px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-field.has-new .img-preview { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 700px) { .img-field { grid-template-columns: 1fr; } }

/* Repeatable lists */
.list { display: grid; gap: .75rem; margin-bottom: .5rem; }
.list-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; padding: 1rem; border: 1px solid var(--a-line); border-radius: 12px; background: #faf9f7; }
.list-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.list-fields .field.wide { grid-column: 1 / -1; }
.list-tools { display: flex; flex-direction: column; gap: .35rem; }
.icon-pick { display: flex; gap: .5rem; align-items: center; }
.icon-preview { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.icon-preview .ico { width: 22px; height: 22px; }

/* Pages */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.page-tile { background: #fff; border: 1px solid var(--a-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: grid; transition: transform .2s, box-shadow .2s; }
.page-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.3); }
.page-thumb { aspect-ratio: 16/8; background: #e9e6df; }
.page-thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-info { padding: 1rem 1.1rem .3rem; display: grid; }
.page-info small { color: var(--a-muted); }
.page-go { padding: 0 1.1rem 1rem; color: var(--primary); font-weight: 600; font-size: .9rem; }

/* Gallery */
.dropzone { border: 2px dashed #d3cec4; text-align: center; position: relative; padding: 2rem; transition: border-color .2s, background .2s; }
.dropzone .ico { width: 34px; height: 34px; color: var(--accent); margin: 0 auto .5rem; }
.dropzone p { margin: 0; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.is-over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, #fff); }
.drop-files { margin-top: .75rem !important; font-weight: 600; color: var(--primary); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gal-item { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; padding: .6rem; display: grid; gap: .5rem; cursor: grab; }
.gal-item.dragging { opacity: .4; }
.gal-item.drop-target { outline: 2px solid var(--accent); }
.gal-img { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #eee; }
.gal-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gal-num { position: absolute; top: .4rem; left: .4rem; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; border-radius: 999px; padding: .1rem .5rem; }
.gal-tools { display: flex; gap: .35rem; }
.gal-tools .danger { margin-left: auto; }

/* Apparence */
.presets { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.preset { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--a-line); border-radius: 999px; padding: .4rem .9rem .4rem .45rem; cursor: pointer; font-size: .88rem; }
.preset:hover { border-color: var(--a-ink); }
.swatches { display: inline-flex; }
.swatches i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; }
.swatches i:first-child { margin-left: 0; }
.colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.color-field { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--a-line); border-radius: 12px; padding: .6rem; cursor: pointer; }
.color-field input { width: 46px; height: 46px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; }
.color-field span { display: grid; font-size: .88rem; }
.color-field code { background: none; padding: 0; color: var(--a-muted); }
.theme-preview { margin-top: 1.25rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--a-line); }
.tp-hero { background: var(--tp-primary, var(--primary)); color: #fff; padding: 1.5rem; display: grid; gap: .5rem; justify-items: start; }
.tp-kicker { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--tp-accent, var(--accent)); filter: brightness(1.4); }
.tp-title { font-family: Georgia, serif; font-size: 1.5rem; }
.tp-btn { background: var(--tp-accent, var(--accent)); padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.tp-body { background: var(--tp-bg, var(--bg)); padding: 1rem 1.5rem; display: flex; gap: .75rem; }
.tp-card { flex: 1; height: 46px; border-radius: 10px; background: #fff; border-left: 4px solid var(--tp-accent, var(--accent)); }
.fonts { display: grid; gap: .5rem; }
.font-opt { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--a-line); border-radius: 10px; padding: .7rem .9rem; cursor: pointer; }
.font-opt input { accent-color: var(--primary); }

/* Messages */
.list-table { padding: .4rem; }
.msg-row { display: grid; grid-template-columns: 12px minmax(160px, 220px) 1fr auto; gap: 1rem; align-items: center; padding: .85rem .9rem; border-radius: 10px; text-decoration: none; color: inherit; }
.msg-row + .msg-row { border-top: 1px solid var(--a-line); }
.msg-row:hover { background: #f7f5f1; }
.msg-row .dot { width: 9px; height: 9px; border-radius: 50%; }
.msg-row.unread .dot { background: var(--accent); }
.msg-row:not(.unread) { color: var(--a-muted); }
.msg-row.unread strong { color: var(--a-ink); }
.msg-from { display: grid; min-width: 0; }
.msg-from small { color: var(--a-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.msg-date { font-size: .82rem; color: var(--a-muted); }
.msg-row.compact { grid-template-columns: 12px 1fr auto; padding: .7rem .4rem; }
@media (max-width: 700px) { .msg-row { grid-template-columns: 12px 1fr auto; } .msg-excerpt { display: none; } }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--a-line); }
.meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--a-muted); }
.meta dd { margin: .15rem 0 0; font-weight: 600; }
.msg-body { font-size: 1rem; }
.empty { display: flex; gap: 1rem; align-items: center; color: var(--a-muted); }
.empty .ico { width: 28px; height: 28px; color: var(--accent); }

/* Guestbook */
.tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--a-line); }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--a-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .5rem; align-items: center; }
.tabs a[aria-current] { color: var(--a-ink); border-color: var(--primary); font-weight: 600; }
.gb-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stars { display: inline-flex; gap: 1px; color: #ddd8cf; }
.stars .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .on { color: var(--accent); }
.pill { margin-left: auto; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.pill-ok { background: #e6f2ea; color: #1f5a37; }
.pill-wait { background: #fbf0dc; color: #7a4c0a; }
.inline-form { margin: 0; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--a-line); border-radius: 16px; padding: 1.2rem; text-decoration: none; color: inherit; display: grid; gap: .2rem; transition: transform .2s; }
.stat:hover { transform: translateY(-2px); }
.stat b { font-size: 2rem; line-height: 1.1; }
.stat span:last-child { color: var(--a-muted); font-size: .88rem; }
.stat-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: .5rem; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.shortcuts { display: grid; gap: .4rem; }
.shortcuts a { padding: .65rem .8rem; border-radius: 10px; background: #f7f5f1; text-decoration: none; font-weight: 500; }
.shortcuts a:hover { background: #efece6; }
.map-prev iframe { width: 100%; height: 320px; border: 0; border-radius: 12px; background: #eee; }

/* Login */
.is-login { min-height: 100vh; display: grid; place-items: center; background: var(--primary-deep); padding: 1rem; }
.login-card { background: #fff; border-radius: 20px; padding: 2.25rem; width: min(400px, 100%); display: grid; gap: 1rem; text-align: center; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.login-card h1 { font-size: 1.4rem; }
.login-card .muted { margin: -.75rem 0 .5rem; }
.login-card .field { text-align: left; }
.back { font-size: .85rem; color: var(--a-muted); }

/* Langues */
.lang-code { display: inline-grid; place-items: center; font-size: .68rem; font-weight: 800; letter-spacing: .06em; background: #ece9e3; color: var(--a-ink); border-radius: 5px; padding: .1rem .35rem; vertical-align: middle; }
.ui-lang { display: flex; gap: 4px; padding: .4rem .5rem .6rem; }
.ui-lang a { flex: 1; text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: .35rem 0 !important; border-radius: 8px; color: inherit; text-decoration: none; border: 1px solid rgba(255,255,255,.16); justify-content: center; }
.ui-lang a[aria-current] { background: #fff; color: var(--primary-deep); border-color: #fff; }
.login-card .ui-lang a { border-color: var(--a-line); color: var(--a-muted); }
.login-card .ui-lang a[aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-tabs { flex-wrap: wrap; }
.lang-tabs a small { color: var(--a-muted); font-size: .75rem; }
.lang-tabs a[aria-current] .lang-code { background: var(--primary); color: #fff; }
.flash-info { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary-deep); }
.page-langs { display: flex; gap: .35rem; padding: 0 1.1rem 1rem; }
.page-langs a { font-size: .74rem; font-weight: 800; letter-spacing: .05em; padding: .3rem .55rem; border-radius: 7px; text-decoration: none; }
.page-langs a.is-done { background: var(--primary); color: #fff; }
.page-langs a.is-empty { background: #fff; color: var(--a-muted); border: 1px dashed #cfc9bf; }
.page-langs a:hover { filter: brightness(1.1); }
.page-thumb { display: block; }
.gal-tr summary { cursor: pointer; font-size: .8rem; color: var(--a-muted); }
.gal-tr[open] summary { margin-bottom: .4rem; }
.gal-tr-row { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.gal-tr-row b { font-size: .68rem; width: 1.6rem; color: var(--a-muted); }
.gal-tr-row input { padding: .4rem .55rem; font-size: .85rem; }
.lang-checks { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.tr-block { padding: 1rem 0; border-top: 1px solid var(--a-line); }
.tr-block:first-of-type { border-top: 0; padding-top: 0; }
::placeholder { color: #a8a39a; }

/* ---------- Calendrier des disponibilités ---------- */
.cal-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
@media (max-width: 860px) { .cal-intro { grid-template-columns: 1fr; } }
.cal-legend { list-style: none; margin: 0; padding: 1.25rem 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-size: .9rem; }
@media (max-width: 480px) { .cal-legend { grid-template-columns: 1fr; } }
.cal-legend li { display: flex; align-items: center; gap: .6rem; }
.cal-swatch { width: 1.6rem; height: 1.6rem; border-radius: 7px; flex: none; border: 1px solid var(--line); }
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .cal-months { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cal-months { grid-template-columns: 1fr; } }
.cal-month { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.1rem 1.1rem; }
.cal-title { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 .9rem .2rem; text-transform: capitalize; }
.cal-title span { color: var(--muted); font-size: .95rem; font-family: var(--font-body); }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding-bottom: .35rem; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: .88rem; font-variant-numeric: tabular-nums; position: relative; }
.cal-day b { font-weight: 500; position: relative; }
.cal-day.is-empty { visibility: hidden; }
.is-free { background: var(--bg); }
.is-full { background: var(--primary); color: #fff; }
.is-arr { background: linear-gradient(135deg, var(--bg) 50%, var(--primary) 50%); }
.is-dep { background: linear-gradient(135deg, var(--primary) 50%, var(--bg) 50%); }
.is-arr b, .is-dep b { background: var(--bg); color: var(--ink); border-radius: 5px; padding: 0 .25em; line-height: 1.35; }
.cal-day.is-past { opacity: .32; }
.cal-day.is-today { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day.is-today b { font-weight: 800; }

/* Calendrier (admin) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cal-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; border-width: 2px; }
.cal-toggle.is-on { border-color: color-mix(in srgb, var(--primary) 45%, #fff); }
.switch { display: flex; align-items: center; gap: .9rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 48px; height: 28px; border-radius: 999px; background: #d6d2ca; position: relative; flex: none; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch small { display: block; color: var(--a-muted); }
.months-pick { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.months-pick select { width: auto; }
.cal-admin { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: 1.25rem; margin-bottom: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .cal-admin { grid-template-columns: 1fr; } }
.bk-list { display: grid; gap: .5rem; }
.bk-row { display: grid; grid-template-columns: auto auto auto 1fr auto auto; gap: .5rem; align-items: center; padding: .5rem; border: 1px solid var(--a-line); border-radius: 10px; background: #faf9f7; }
.bk-row input[type=date] { width: auto; padding: .4rem .5rem; }
.bk-row input[type=text] { padding: .4rem .6rem; grid-column: 1 / -1; order: 10; }
.bk-row .bk-nights { justify-self: start; }
.bk-row.is-past { grid-template-columns: auto auto 1fr auto; font-size: .88rem; }
.bk-arrow { color: var(--a-muted); }
.bk-nights { font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary-deep); border-radius: 999px; padding: .2rem .55rem; white-space: nowrap; }
@media (max-width: 700px) { .bk-row { grid-template-columns: 1fr auto 1fr; } .bk-row .bk-nights { grid-column: 1 / 2; } }
.bk-past { margin-top: 1rem; }
.bk-past summary { cursor: pointer; color: var(--a-muted); font-size: .9rem; margin-bottom: .6rem; }
.card .cal-legend { margin-bottom: 1.25rem; grid-template-columns: repeat(4, auto); justify-content: start; background: #faf9f7; }
@media (max-width: 800px) { .card .cal-legend { grid-template-columns: 1fr 1fr; } }
.cal-month { background: #fff; }
[data-cal-pick] .cal-day:not(.is-empty) { cursor: pointer; transition: transform .1s; }
[data-cal-pick] .cal-day:not(.is-empty):hover { transform: scale(1.1); box-shadow: 0 0 0 2px var(--accent); }
.cal-day.is-sel { box-shadow: inset 0 0 0 3px var(--accent); }
.cal-day.is-range::before { content: ""; position: absolute; inset: 0; border-radius: 9px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.price-input { display: flex; align-items: center; gap: .5rem; }
.price-input input { max-width: 160px; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.price-input span { color: var(--a-muted); font-size: .85rem; font-weight: 600; }
.price-table { display: grid; }
.pt-row { display: grid; grid-template-columns: 1fr 230px 130px; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--a-line); }
.pt-row.pt-2 { grid-template-columns: 1fr 230px 130px; }
.pt-row:first-child { border-top: 0; }
.pt-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--a-muted); font-weight: 700; padding-top: 0; }
.pt-row > span:first-child { display: grid; }
.pt-row small { color: var(--a-muted); }
@media (max-width: 640px) { .pt-row, .pt-row.pt-2 { grid-template-columns: 1fr auto; } .pt-head span:last-child, .pt-row > span:nth-child(3) { display: none; } }
.savebar .btn-light { margin-right: auto; }
.cal-add .fields { grid-template-columns: 1fr 1fr; }
.cal-add .help { margin: .75rem 0 0; }
.cal-add input[type=date] { padding: .55rem .5rem; }
@media (max-width: 1250px) and (min-width: 1001px) { .cal-add .fields { grid-template-columns: 1fr; } }
.card > .help + .row-actions { margin-top: 1rem; }

/* Statistiques */
.side-label { margin: 1.1rem .75rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.12); }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--a-line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg a { padding: .45rem .9rem; border-radius: 9px; text-decoration: none; color: var(--a-muted); font-weight: 600; font-size: .88rem; }
.seg a[aria-current] { background: var(--primary); color: #fff; }
.delta { display: inline-block; margin-left: .4rem; font-style: normal; font-weight: 700; font-size: .78rem; }
.delta.up { color: #1f5a37; }
.delta.down { color: #8e2a1f; }
.chart { position: relative; height: 260px; margin: .5rem 0 2.2rem 2.2rem; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid span { border-top: 1px dashed #e4e0d8; position: relative; height: 0; }
.chart-grid span:last-child { border-top: 1px solid #cfcac1; }
.chart-grid span::before { content: attr(data-v); position: absolute; right: calc(100% + .5rem); top: -.55rem; font-size: .72rem; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.chart-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; }
.bar-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.bar { display: block; width: min(100%, 38px); min-height: 0; background: var(--primary); border-radius: 4px 4px 0 0; transition: filter .15s; }
.bar-col:hover .bar, .bar-col:focus .bar { filter: brightness(1.35); }
.bar-x { text-transform: capitalize; position: absolute; top: calc(100% + .45rem); left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--a-muted); white-space: nowrap; }
.bar-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--a-ink); color: #fff; font-size: .78rem; line-height: 1.45; padding: .45rem .65rem; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 3; }
.bar-tip strong { display: block; }
.bar-col:hover .bar-tip, .bar-col:focus .bar-tip { opacity: 1; }
.bar-col:first-child .bar-tip, .bar-col:nth-child(2) .bar-tip { left: 0; transform: none; }
.bar-col:last-child .bar-tip, .bar-col:nth-last-child(2) .bar-tip { left: auto; right: 0; transform: none; }
.chart-table summary { cursor: pointer; color: var(--a-muted); font-size: .85rem; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .88rem; }
.chart-table th, .chart-table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--a-line); font-variant-numeric: tabular-nums; }
.chart-table th { color: var(--a-muted); font-weight: 600; }
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.25rem 0; }
@media (max-width: 900px) { .bd-grid { grid-template-columns: 1fr; } }
.bd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bd-list li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 2.5rem 3rem; gap: .6rem; align-items: center; font-size: .9rem; }
.bd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-bar { height: 10px; background: #f0ede7; border-radius: 999px; overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.bd-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bd-pct { text-align: right; color: var(--a-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .chart { margin-left: 1.6rem; height: 200px; } .bar-x { font-size: .6rem; } }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; gap: .75rem; } .stat { padding: 1rem; } .stat b { font-size: 1.6rem; } }

/* Diagnostic serveur */
.diag { padding: .5rem 1.5rem; }
.diag-row { display: grid; grid-template-columns: 28px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--a-line); }
.diag-row:first-child { border-top: 0; }
.diag-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; }
.is-ok .diag-dot { background: #2e7d4f; }
.is-warn .diag-dot { background: #c98a1b; }
.is-bad .diag-dot { background: #b3362a; }
.diag-label { display: grid; }
.diag-label small { color: var(--a-muted); }
.diag-val { max-width: 280px; overflow-wrap: anywhere; text-align: right; }
.diag-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
@media (max-width: 640px) { .diag-row { grid-template-columns: 28px 1fr; } .diag-val { grid-column: 2; text-align: left; } }
.is-busy { opacity: .6; pointer-events: none; }
.diag-steps + .help { margin: 1rem 0 0; }

/* Galerie par saisons */
.season-settings { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.5rem; align-items: center; margin-bottom: 1.25rem; border-width: 2px; }
.season-now-hiver { border-color: #b9cfe8; background: linear-gradient(135deg, #f3f8ff, #fff 60%); }
.season-now-ete { border-color: #f1d3a6; background: linear-gradient(135deg, #fff8ec, #fff 60%); }
.ss-now { display: flex; align-items: center; gap: .8rem; }
.ss-now small { display: block; color: var(--a-muted); font-size: .78rem; }
.ss-now strong { font-size: 1.3rem; }
.ss-ico { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--a-line); color: var(--primary); }
.ss-ico .ico { width: 1.5rem; height: 1.5rem; }
.ss-fields { display: flex; flex-wrap: wrap; gap: .9rem 1.25rem; align-items: flex-end; justify-content: flex-end; }
.ss-fields label { display: grid; gap: .3rem; }
.dm { display: flex; gap: .35rem; }
.dm select { width: auto; }
.season-settings .help { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) { .season-settings { grid-template-columns: 1fr; } .ss-fields { justify-content: flex-start; } }
.gal-season { display: grid; gap: 1rem; }
.gs-head { display: flex; align-items: center; gap: .75rem; }
.gs-head .card-title { margin: 0; display: flex; align-items: center; gap: .5rem; }
.gs-ico { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; }
.gal-season-hiver .gs-ico { background: #e3eefb; color: #2b5a8a; }
.gal-season-ete .gs-ico { background: #fdeccf; color: #b06a12; }
.gal-season-divers .gs-ico { background: #ece6fb; color: #5b45a0; }
.gal-season-hiver { border-top: 4px solid #8fb5df; }
.gal-season-ete { border-top: 4px solid #f0b766; }
.gal-season-divers { border-top: 4px solid #a895da; }
.dropzone.small { padding: 1.1rem; }
.dropzone.small .ico { width: 26px; height: 26px; }
.gal-empty-note { color: var(--a-muted); font-size: .9rem; margin: 0; }
.gal-grid { min-height: 90px; border-radius: 12px; transition: background .2s; }
.gal-grid.drop-target { background: color-mix(in srgb, var(--accent) 10%, #fff); outline: 2px dashed var(--accent); outline-offset: 4px; }
.gal-item select { padding: .4rem .5rem; font-size: .85rem; }

/* Accueil : photo selon la saison et l'heure */
.hero-now { display: flex; gap: .75rem; align-items: center; }
.hero-now .ico { width: 1.6rem; height: 1.6rem; flex: none; }
.input-time { width: auto; min-width: 8rem; }
