/* Bookma — widget de réservation (front) */
.bookma-app {
  --bk: #7fcb4d; --bk-on: #0d160b; --bk-soft: color-mix(in srgb, var(--bk) 16%, transparent); --bk-ink: color-mix(in srgb, var(--bk) 55%, #000);
  --bg: #ffffff; --ink: #0d160b; --mut: #5f6c5a; --line: #e0e8d8; --panel: #f3f8ee; --err: #d92d20;
  font-size: 15px; line-height: 1.55; font-family: inherit; color: var(--ink);
  max-width: 880px; margin: 32px auto; position: relative;
}
.bookma-app[data-theme="dark"] { --bg: #14162b; --ink: #f1f2fb; --mut: #9a9dc2; --line: #2a2d4d; --panel: #1b1e38; }
.bookma-app *, .bookma-app *::before, .bookma-app *::after { box-sizing: border-box; }
.bookma-app button, .bookma-app input, .bookma-app textarea { font: inherit; color: inherit; }
.bk-modal-ov .bookma-app { font-family: inherit; }

.bk-w { background: var(--bg); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 80px -20px rgba(13,22,11,.28); overflow: hidden; }
.bk-w-head { display: flex; align-items: center; gap: 14px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.bk-w-head img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.bk-w-head .bk-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(180deg, color-mix(in srgb, var(--bk) 55%, #fff), var(--bk)); display: grid; place-items: center; color: var(--bk-on); }
.bk-w-head .bk-logo svg { width: 20px; height: 20px; stroke: var(--bk-on); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bk-w-head b { font-size: 17px; letter-spacing: -.01em; }
.bk-w-head small { display: block; color: var(--mut); line-height: 1.2; }
.bk-steps { margin-left: auto; display: flex; gap: 6px; }
.bk-steps i { width: 26px; height: 6px; border-radius: 9px; background: var(--line); transition: all .3s; }
.bk-steps i.on { background: var(--bk); width: 40px; }
.bk-steps i.done { background: color-mix(in srgb, var(--bk) 45%, var(--line)); }

.bk-w-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.bk-w-main { padding: 28px; min-height: 420px; }
.bk-w-main.anim { animation: bkw-in .35s cubic-bezier(.2,.8,.2,1); }
.bk-w-main h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.bk-w-main > p { margin: 0 0 22px; color: var(--mut); }
.bk-w-side { background: var(--panel); border-left: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.bk-w-side h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.bk-sum { display: flex; flex-direction: column; gap: 14px; }
.bk-sum div span { display: block; font-size: 12px; color: var(--mut); }
.bk-sum div b { font-weight: 600; }
.bk-sum .bk-empty { color: var(--mut); font-size: 14px; }
.bk-total { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.bk-total b { font-size: 22px; letter-spacing: -.02em; }

.bk-opts { display: grid; gap: 12px; }
.bk-opt {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; padding: 16px 18px; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 18px; cursor: pointer; transition: border-color .15s, transform .12s, box-shadow .15s; position: relative;
}
.bk-opt:hover { border-color: var(--bk); transform: translateY(-1px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--bk) 60%, transparent); }
.bk-opt:focus-visible { outline: 3px solid var(--bk-soft); border-color: var(--bk); }
.bk-opt .sw { width: 6px; align-self: stretch; border-radius: 9px; background: var(--c, var(--bk)); flex: none; }
.bk-opt .tx { flex: 1; min-width: 0; }
.bk-opt .tx b { display: block; font-size: 16px; }
.bk-opt .tx span { color: var(--mut); font-size: 13.5px; display: block; }
.bk-opt .pr { text-align: right; font-weight: 700; white-space: nowrap; }
.bk-opt .pr small { display: block; color: var(--mut); font-weight: 500; font-size: 12.5px; }
.bk-opt .av { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--c, var(--bk)); flex: none; }
.bk-opt .av.any { background: var(--bk-soft); color: var(--bk); }

.bk-dt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px); gap: 26px; }
.bk-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bk-cal-h b { text-transform: capitalize; font-size: 16px; }
.bk-nv { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.bk-nv:hover:not(:disabled) { border-color: var(--bk); }
.bk-nv:disabled { opacity: .35; cursor: default; }
.bk-nv svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal .dw { text-align: center; font-size: 11.5px; color: var(--mut); font-weight: 600; text-transform: uppercase; padding-bottom: 6px; }
.bk-cal button { aspect-ratio: 1; border: 0; border-radius: 13px; background: transparent; cursor: pointer; font-weight: 500; position: relative; }
.bk-cal button:disabled { color: color-mix(in srgb, var(--mut) 55%, transparent); cursor: default; }
.bk-cal button.av { background: var(--bk-soft); color: var(--bk-ink); font-weight: 700; }
.bookma-app[data-theme="dark"] .bk-cal button.av { color: #fff; }
.bk-cal button.av:hover { background: color-mix(in srgb, var(--bk) 22%, transparent); }
.bk-cal button.sel { background: var(--bk); color: var(--bk-on); box-shadow: 0 8px 18px -6px var(--bk); }
.bk-cal button.today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.bk-cal.loading { opacity: .5; }

.bk-times h5 { margin: 0 0 10px; font-size: 14px; text-transform: capitalize; }
.bk-times .bk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 330px; overflow: auto; padding: 2px; }
.bk-times button { padding: 10px 0; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; cursor: pointer; font-weight: 600; }
.bk-times button:hover { border-color: var(--bk); color: var(--bk); }
.bk-times button.sel { background: var(--bk); border-color: var(--bk); color: var(--bk-on); }
.bk-times button { border-radius: 999px; }
.bk-times .bk-none { color: var(--mut); font-size: 14px; grid-column: 1 / -1; }

.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-form .full { grid-column: 1 / -1; }
.bk-form label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.bk-form input, .bk-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); outline: 0; transition: border-color .15s, box-shadow .15s; }
.bk-form input:focus, .bk-form textarea:focus { border-color: var(--bk); box-shadow: 0 0 0 4px var(--bk-soft); }
.bk-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.bk-b { padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 650; }
.bk-b:hover { border-color: var(--bk); }
.bk-b.pri { background: linear-gradient(180deg, color-mix(in srgb, var(--bk) 55%, #fff), var(--bk)); border-color: transparent; color: var(--bk-on); box-shadow: 0 12px 26px -10px var(--bk); }
.bk-b.pri:hover { filter: brightness(1.05); }
.bk-b[disabled] { opacity: .45; pointer-events: none; }
.bk-err { color: var(--err); font-weight: 600; margin-top: 14px; }

.bk-done { text-align: center; padding: 36px 10px 12px; }
.bk-done .bk-ring { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--bk-soft); animation: bkw-pop .5s cubic-bezier(.2,1.4,.4,1); }
.bk-done .bk-ring svg { width: 40px; height: 40px; stroke: var(--bk); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: bkw-draw .5s .25s forwards; }
.bk-done h2 { font-size: 28px; }
.bk-done .bk-card { display: inline-block; text-align: left; margin: 22px 0; padding: 18px 24px; background: var(--panel); border-radius: 18px; border: 1px solid var(--line); min-width: 280px; }
.bk-done .bk-card div { padding: 5px 0; }
.bk-done .bk-card span { color: var(--mut); display: inline-block; width: 78px; font-size: 13.5px; }
.bk-foot { text-align: center; padding: 12px; font-size: 12px; color: var(--mut); border-top: 1px solid var(--line); }
.bk-foot a { color: inherit; font-weight: 600; text-decoration: none; }
.bk-load { padding: 60px; text-align: center; color: var(--mut); }

@keyframes bkw-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes bkw-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes bkw-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .bookma-app * { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  .bk-w-grid { grid-template-columns: 1fr; }
  .bk-w-side { border-left: 0; border-top: 1px solid var(--line); order: 2; }
  .bk-w-main { padding: 22px 18px; min-height: 0; }
  .bk-dt, .bk-form { grid-template-columns: 1fr; }
  .bk-w-head { padding: 16px 18px; } .bk-steps i { width: 14px; } .bk-steps i.on { width: 24px; }
  .bk-times .bk-list { grid-template-columns: repeat(3, 1fr); max-height: none; }
}

.bk-opt .av svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Bouton + pop-up */
.bookma-trigger {
  --bk: #7fcb4d; --bk-on: #0d160b; display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 650; font-size: 16px; line-height: 1.2; font-family: inherit; color: var(--bk-on);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bk) 55%, #fff), var(--bk)); box-shadow: 0 14px 30px -10px var(--bk);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.bookma-trigger:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 34px -10px var(--bk); }
.bookma-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--bk) 40%, transparent); outline-offset: 3px; }
.bookma-trigger svg { width: 20px; height: 20px; stroke: var(--bk-on); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html.bk-lock, html.bk-lock body { overflow: hidden; }
.bk-modal-ov { position: fixed; inset: 0; z-index: 2147483000; background: rgba(13,22,11,.55); backdrop-filter: blur(6px); overflow: auto; display: flex; padding: 24px 16px; animation: bkw-fade .2s; }
.bk-modal-ov.out { opacity: 0; transition: opacity .18s; }
.bk-modal-box { position: relative; width: min(900px, 100%); margin: auto; animation: bkw-pop-in .3s cubic-bezier(.2,.9,.3,1.1); }
.bk-modal-box .bookma-app { margin: 0; max-width: none; }
.bk-modal-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 12px; border: 1px solid #e0e8d8; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.bk-modal-x:hover { background: #f3f8ee; }
.bk-modal-x svg { width: 18px; height: 18px; stroke: #0d160b; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.bk-modal-box .bk-steps { margin-right: 52px; }
@keyframes bkw-fade { from { opacity: 0; } }
@keyframes bkw-pop-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Protection contre les styles globaux des thèmes */
.bookma-app button, .bookma-app input, .bookma-app textarea { text-transform: none; letter-spacing: normal; margin: 0; }
.bookma-app button { box-shadow: none; text-shadow: none; min-height: 0; }
.bookma-app .bk-b.pri { box-shadow: 0 12px 26px -10px var(--bk); }
.bookma-app .bk-cal button.sel { box-shadow: 0 8px 18px -6px var(--bk); }
.bookma-app h2, .bookma-app h4, .bookma-app h5 { text-transform: none; letter-spacing: -.02em; color: var(--ink); font-family: inherit; }
.bookma-app p { margin-top: 0; }
.bookma-app, .bookma-app * { -webkit-font-smoothing: antialiased; }

.bookma-app .bk-w-side h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); font-weight: 700; }

.bk-w-head img { width: auto; height: 38px; max-width: 130px; object-fit: contain; border-radius: 0; }
.bk-w-head img.bk-logo-bg { box-sizing: border-box; height: 40px; padding: 8px 13px; border-radius: 12px; }

/* Champs du formulaire : couleur forcée (certains thèmes imposent un texte blanc) */
.bookma-app .bk-form input,
.bookma-app .bk-form textarea {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  background-color: var(--bg) !important;
  background-image: none !important;
  opacity: 1 !important;
}
.bookma-app .bk-form input::placeholder,
.bookma-app .bk-form textarea::placeholder { color: var(--mut) !important; -webkit-text-fill-color: var(--mut) !important; opacity: .75; }
.bookma-app .bk-form input:-webkit-autofill { -webkit-text-fill-color: var(--ink) !important; box-shadow: 0 0 0 40px var(--bg) inset !important; }
