/* Réservation & espace de gestion — Les Voies d'Améa */
.bk-page { min-height: 100vh; background: var(--ivoire); padding: 6.5rem 0 4rem; }
.bk-wrap { width: min(920px, 100% - 2rem); margin: 0 auto; }
.bk-head { text-align: center; margin-bottom: 2rem; }
.bk-head h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: .3rem; }
.bk-head p { color: var(--texte-doux); max-width: 560px; margin: 0 auto; }
.bk-card { background: #FBF8F2; border: 1px solid rgba(215,178,122,.45); border-radius: 20px; padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--ombre); margin-bottom: 1.2rem; }
.bk-step-title { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.5rem; color: var(--prune); margin: 0 0 1rem; }
.bk-step-title .n { width: 30px; height: 30px; border-radius: 50%; background: var(--prune); color: var(--or-clair); display: grid; place-items: center; font-family: var(--sans); font-size: .85rem; flex: none; }
.bk-muted { color: var(--texte-doux); font-size: .88rem; }
.bk-services { display: grid; gap: .7rem; }
.bk-service { display: flex; gap: 1rem; align-items: flex-start; text-align: left; width: 100%; background: #fff; border: 1.5px solid var(--sable); border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s; }
.bk-service:hover { border-color: var(--or); }
.bk-service[aria-pressed="true"] { border-color: var(--prune); box-shadow: 0 0 0 3px rgba(90,58,86,.12); }
.bk-service .t { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--prune); line-height: 1.2; }
.bk-service .d { display: block; font-size: .86rem; color: var(--texte-doux); margin-top: .2rem; }
.bk-service .p { margin-left: auto; text-align: right; white-space: nowrap; font-family: var(--serif); font-size: 1.35rem; color: var(--terracotta); }
.bk-service .p small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; color: var(--texte-doux); }
.bk-modes { display: flex; gap: .6rem; flex-wrap: wrap; }
.bk-chip { border: 1.5px solid var(--sable); background: #fff; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-size: .9rem; cursor: pointer; color: var(--texte); }
.bk-chip[aria-pressed="true"], .bk-chip.on { background: var(--prune); color: var(--ivoire); border-color: var(--prune); }
.bk-chip:disabled { opacity: .4; cursor: default; }
.bk-cal { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 760px) { .bk-cal { grid-template-columns: 1.1fr 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-head b { font-family: var(--serif); font-size: 1.35rem; color: var(--prune); font-weight: 500; text-transform: capitalize; }
.cal-nav { background: none; border: 1px solid var(--sable); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; color: var(--prune); font-size: 1.1rem; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; }
.cal-grid .dow { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); padding: .3rem 0; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font: inherit; color: #b9aeb5; cursor: default; }
.cal-day.avail { background: #fff; color: var(--prune); font-weight: 600; cursor: pointer; border: 1px solid rgba(215,178,122,.6); }
.cal-day.avail:hover { border-color: var(--prune); }
.cal-day.sel { background: var(--prune); color: var(--ivoire); border-color: var(--prune); }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.bk-form { display: grid; gap: .9rem; }
.bk-form .row2 { display: grid; gap: .9rem; }
@media (min-width: 640px) { .bk-form .row2 { grid-template-columns: 1fr 1fr; } }
.bk-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--prune); }
.bk-field input, .bk-field textarea, .bk-field select { width: 100%; font: inherit; font-size: .95rem; padding: .75rem .9rem; border: 1.5px solid var(--sable); border-radius: 12px; background: #fff; color: var(--texte); }
.bk-field input:focus, .bk-field textarea:focus, .bk-field select:focus { outline: none; border-color: var(--prune); }
.bk-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--texte-doux); }
.bk-check input { margin-top: .25rem; accent-color: var(--prune); }
.bk-summary { background: var(--prune-fonce); color: var(--ivoire); border-radius: 16px; padding: 1.1rem 1.3rem; display: grid; gap: .2rem; }
.bk-summary b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--or-clair); }
.bk-error { background: #fbeae6; color: #8a3a2a; border: 1px solid #e7b9ad; border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; }
.bk-ok { text-align: center; padding: 1rem 0; }
.bk-ok .ico { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--prune); color: var(--or-clair); font-size: 2rem; }
.hp { position: absolute; left: -9999px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.bk-empty { text-align: center; padding: 1.2rem; color: var(--texte-doux); }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- Espace de gestion ---------- */
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.adm-top h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.adm-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.adm-tabs button { position: relative; }
.adm-tabs .badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: .72rem; margin-left: .35rem; }
.adm-tabs .badge[hidden] { display: none; }
.adm-list { display: grid; gap: .8rem; }
.adm-item { background: #fff; border: 1px solid var(--sable); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: .5rem; }
.adm-item .when { font-family: var(--serif); font-size: 1.3rem; color: var(--prune); line-height: 1.2; }
.adm-item .meta { font-size: .86rem; color: var(--texte-doux); letter-spacing: normal; text-transform: none; margin: 0; }
[data-panel] { padding: 0; }
[data-panel="agenda"] > .adm-item { margin-bottom: .8rem; }
.adm-item .msg { font-size: .88rem; background: #FBF8F2; border-radius: 10px; padding: .6rem .8rem; font-style: italic; white-space: pre-wrap; }
.adm-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.adm-actions .btn { padding: .55rem 1.1rem; font-size: .84rem; }
.btn-ligne { border-color: var(--prune); color: var(--prune); background: transparent; }
.btn-ligne:hover { background: var(--prune); color: var(--ivoire); }
.btn-danger { border-color: #b4533f; color: #b4533f; background: transparent; }
.pill { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--sable); color: var(--prune-fonce); }
.pill.confirmed { background: #dfe6d6; color: #45512f; }
.pill.pending { background: #f4dfc4; color: #7a4a17; }
.pill.refused, .pill.cancelled { background: #eee3e6; color: #7a5a66; }
.adm-day { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); margin: 1rem 0 .2rem; }
.week-row { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid rgba(219,196,176,.6); }
.week-row:last-child { border-bottom: 0; }
.week-row .dn { font-weight: 600; color: var(--prune); padding-top: .45rem; }
.ranges { display: grid; gap: .45rem; }
.range { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.range input[type=time] { font: inherit; padding: .4rem .5rem; border: 1.5px solid var(--sable); border-radius: 10px; background: #fff; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--texte-doux); font-size: 1.1rem; padding: .2rem .4rem; }
.link-btn { border: 0; background: none; color: var(--prune); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; justify-self: start; }
.grid2 { display: grid; gap: .9rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.svc-row { display: grid; grid-template-columns: 1fr 80px 80px; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid rgba(219,196,176,.6); }
.svc-row .bk-check input { width: auto; margin-top: .2rem; }
.svc-row input[type=number] { width: 100%; font: inherit; padding: .45rem .5rem; border: 1.5px solid var(--sable); border-radius: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--prune-nuit); color: var(--ivoire); padding: .8rem 1.2rem; border-radius: 12px; font-size: .9rem; z-index: 100; box-shadow: var(--ombre); max-width: 90vw; }
.modal-bg { position: fixed; inset: 0; background: rgba(46,26,45,.55); display: grid; place-items: center; z-index: 90; padding: 1rem; }
.modal { background: var(--ivoire); border-radius: 18px; padding: 1.4rem; width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.modal h3 { margin-bottom: .8rem; }
.notice { background: #f4dfc4; color: #6b3f12; border-radius: 12px; padding: .8rem 1rem; font-size: .88rem; margin-bottom: 1rem; }

/* ---------- Fenêtre de réservation (pop-up) ---------- */
html.bkm-lock, html.bkm-lock body { overflow: hidden; }
.bkm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.bkm[hidden] { display: none; }
.bkm-bg { position: absolute; inset: 0; background: rgba(46, 26, 45, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.bkm-box { position: relative; width: min(560px, 100%); max-height: min(760px, calc(100vh - 2rem)); max-height: min(760px, calc(100dvh - 2rem)); display: flex; flex-direction: column; background: var(--ivoire); border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(46, 26, 45, .8); overflow: hidden; transform: translateY(18px) scale(.98); opacity: 0; transition: transform .22s ease, opacity .22s ease; color: var(--texte); text-align: left; font-family: var(--sans); }
.bkm.on .bkm-bg { opacity: 1; }
.bkm.on .bkm-box { transform: none; opacity: 1; }
.bkm-head { display: flex; align-items: center; gap: .6rem; padding: 1rem 1rem .9rem 1.1rem; background: var(--prune-fonce); color: var(--ivoire); }
.bkm-headtxt { flex: 1; min-width: 0; }
.bkm-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--or-clair); }
.bkm-sub { font-size: .78rem; letter-spacing: .06em; opacity: .85; }
.bkm-back, .bkm-x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(241, 217, 166, .35); background: transparent; color: var(--ivoire); font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.bkm-back { font-size: 1.5rem; padding-bottom: 3px; }
.bkm-back:hover, .bkm-x:hover { background: rgba(241, 217, 166, .12); }
.bkm-steps { list-style: none; display: flex; margin: 0; padding: .7rem 1rem; gap: .3rem; border-bottom: 1px solid rgba(219, 196, 176, .7); background: #FBF8F2; }
.bkm-steps[hidden] { display: none; }
.bkm-steps li { flex: 1; }
.bkm-steps li > * { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; font: inherit; font-size: .78rem; color: var(--texte-doux); background: none; border: 0; padding: .2rem 0; }
.bkm-steps li button { cursor: pointer; }
.bkm-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; border: 1px solid var(--sable); color: var(--texte-doux); font-weight: 600; flex: none; }
.bkm-steps li.cur > * { color: var(--prune); font-weight: 600; }
.bkm-steps li.cur b { background: var(--prune); border-color: var(--prune); color: var(--or-clair); }
.bkm-steps li.done b { background: var(--sauge); border-color: var(--sauge); color: #fff; }
.bkm-body { padding: 1.2rem 1.3rem 1.4rem; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bkm-q { font-family: var(--serif); font-size: 1.35rem; color: var(--prune); margin: 0 0 .8rem; line-height: 1.2; }
.bkm-msg { text-align: center; padding: 2rem .5rem; display: grid; gap: .6rem; justify-items: center; }
.bkm-legend { display: flex; align-items: center; gap: .45rem; margin: .8rem 0 0; font-size: .78rem; }
.bkm-legend .dot { width: 12px; height: 12px; border-radius: 4px; background: #fff; border: 1px solid rgba(215,178,122,.8); }
.bkm .cal-day { display: grid; place-items: center; font-size: .92rem; }
.bkm .cal-day.avail { box-shadow: inset 0 -3px 0 -1px var(--or); }
.bkm .cal-day.sel { box-shadow: none; }
.bkm-group { margin-top: .9rem; }
.bkm-group > span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .45rem; }
.bkm .bk-chip { text-align: center; }
.bkm .bk-chip:hover:not(:disabled) { border-color: var(--prune); }
.bkm .bk-modes .bk-chip { text-align: left; line-height: 1.25; }
.bkm .bk-modes .bk-chip small { display: block; font-size: .72rem; opacity: .75; }
.bkm-recap { position: relative; margin-bottom: 1.1rem; padding-right: 5.5rem; }
.bkm-recap .link-btn { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--or-clair); }
.bkm-submit { justify-self: stretch; }
.bkm .bk-ok h2 { font-size: 1.9rem; }
.bk-service .m { display: block; font-size: .74rem; letter-spacing: .06em; color: var(--sauge); margin-top: .35rem; font-weight: 500; }
.bk-service .p em { display: block; font-style: normal; font-family: var(--sans); font-size: .78rem; color: var(--prune); margin-top: .5rem; font-weight: 500; }
@media (max-width: 640px) {
  .bkm { padding: 0; place-items: end stretch; }
  .bkm-box { width: 100%; max-height: 94vh; max-height: 94dvh; height: 94dvh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .bkm-body { padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); }
  .bkm-steps li > * { flex-direction: column; gap: .2rem; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .bkm-bg, .bkm-box { transition: none; } }
@media (min-width: 641px) { .bkm .cal-day { aspect-ratio: auto; height: 44px; } }
