.bk-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 80px;
}
.bk-col-left  { grid-column: 1; display: flex; flex-direction: column; }
.bk-col-left .bk-card { flex: 1; }
.bk-col-right { grid-column: 2; display: flex; flex-direction: column; gap: 24px; }

/* ── Carte commune ── */
.bk-card {
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bk-card-head {
  background: var(--main-blue);
  padding: 20px 28px 22px;
  flex-shrink: 0;
}
.bk-card-head h3 {
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 700;
  margin-bottom: 4px;
}
.bk-card-head p {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.bk-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Calendrier ── */
.bk-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.bk-cal-month {
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
}
.bk-cal-btn {
  background: none;
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s, box-shadow .18s;
}
.bk-cal-btn:hover {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  box-shadow: var(--ring);
}
.bk-cal-btn svg { width: 14px; height: 14px; }

.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  flex-shrink: 0;
}
.bk-cal-dow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 6px 0 10px;
}
.bk-cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
  position: relative;
  user-select: none;
  color: var(--text);
}
.bk-cal-day:hover:not(.bk-empty):not(.bk-past):not(.bk-weekend) {
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
  transform: scale(1.08);
}
.bk-empty   { cursor: default; }
.bk-past    { color: color-mix(in srgb, var(--muted) 35%, transparent) !important; cursor: not-allowed; }
.bk-weekend { color: color-mix(in srgb, var(--muted) 50%, transparent) !important; cursor: not-allowed; }
.bk-today   { border: 1.5px solid var(--brand); color: var(--brand); }
.bk-selected { background: var(--brand) !important; color: #fff !important; transform: scale(1.08); }
.bk-has-busy::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #f87171;
}
.bk-legend {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  flex-wrap: wrap;
}
.bk-legend-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: var(--muted);
}
.bk-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bk-dot-brand { background: var(--brand); }
.bk-dot-red   { background: #f87171; }
.bk-dot-today { border: 1.5px solid var(--brand); background: transparent; }

/* ── Créneaux ── */
.bk-slots-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 10px;
  color: var(--muted);
  font-size: .85rem;
}
.bk-spinner {
  width: 18px; height: 18px;
  border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: bk-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-slots-date-label {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
  flex-shrink: 0;
}
.bk-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bk-slot-btn {
  padding: 11px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
  background: var(--surface);
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  font-family: ui-monospace, monospace;
}
.bk-slot-btn:hover:not(.bk-slot-busy):not(.bk-slot-selected) {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
}
.bk-slot-btn.bk-slot-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 15%, var(--surface));
  color: var(--brand);
  box-shadow: var(--ring);
}
.bk-slot-btn.bk-slot-busy {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.bk-slot-status {
  display: block;
  font-size: .65rem;
  font-weight: 400;
  font-family: inherit;
  margin-top: 2px;
  color: var(--muted);
}
.bk-slot-btn.bk-slot-selected .bk-slot-status { color: var(--brand); }
.bk-slot-btn.bk-slot-busy     .bk-slot-status { color: #f87171; }

/* ── Formulaire ── */
.bk-summary {
  background: var(--surface);
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: .82rem;
  color: var(--muted);
  display: none;
  gap: 6px;
  flex-direction: column;
  flex-shrink: 0;
}
.bk-summary.visible { display: flex; }
.bk-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bk-summary-row svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  flex-shrink: 0;
}
.bk-summary-row svg[fill="var(--brand)"] { fill: var(--brand); stroke: none; }
.bk-summary-row strong { color: var(--text); }

/* ── Grille formulaire ── */
.bk-form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  flex: 1;
}

/* Champs pleine largeur */
.bk-form-inner .bk-fg-location,
.bk-form-inner .bk-fg-address,
.bk-form-inner .bk-fg-subject,
.bk-form-inner .bk-fg-email {
  grid-column: 1 / -1;
}

.bk-fg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.bk-fg label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
}
.bk-fg input,
.bk-fg textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.bk-fg textarea { resize: none; min-height: 80px; }
.bk-fg input:focus,
.bk-fg textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.bk-fg input::placeholder,
.bk-fg textarea::placeholder { color: color-mix(in srgb, var(--muted) 50%, transparent); }

/* ── Select personnalisé ── */
.bk-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.bk-select-wrap select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.bk-select-wrap select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.bk-select-wrap select option[value=""][disabled] {
  color: color-mix(in srgb, var(--muted) 50%, transparent);
}
.bk-select-arrow {
  position: absolute;
  right: 14px;
  width: 16px; height: 16px;
  pointer-events: none;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Bouton submit ── */
.bk-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--cta-bg);
  color: var(--cta-text);
  border: none;
  border-radius: 10px;
  font-weight: 900;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  margin-top: auto;
}
.bk-submit-btn:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.bk-submit-btn:disabled { opacity: .28; cursor: not-allowed; }

/* ── Succès ── */
.bk-success {
  display: none;
  text-align: center;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.bk-success.visible { display: flex; }
.bk-success-icon {
  width: 56px; height: 56px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto;
}
.bk-success-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 2.5; }
.bk-success h4 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.bk-success p  { font-size: .85rem; color: var(--muted); }

/* ── Bloc info alternative ── */
.bk-alternative-box {
  padding: 16px;
  background: color-mix(in srgb, var(--brand) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--radius);
  text-align: center;
  margin-top: 30px;
  align-items: center;
  gap: 10px;
}
.bk-alternative-box p {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.bk-alternative-box span {
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}
.bk-alternative-box strong {
  color: var(--brand);
  font-weight: 800;
}

/* ── Croix légende ── */
.bk-legend-cross {
  width: 10px; height: 10px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  margin: 0;
}
.bk-legend-cross::before,
.bk-legend-cross::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 1.5px;
  background-color: #ef4444;
  border-radius: 1px;
}
.bk-legend-cross::before { transform: translate(-50%, -50%) rotate(45deg); }
.bk-legend-cross::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ── Jour complet (croix rouge) ── */
.bk-cal-day.bk-full { position: relative; z-index: 1; }
.bk-cal-day.bk-full::before,
.bk-cal-day.bk-full::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 2px;
  background: #ef4444;
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
}
.bk-cal-day.bk-full::before { transform: translate(-50%, -50%) rotate(45deg); }
.bk-cal-day.bk-full::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.bk-cal-day.bk-selected::before,
.bk-cal-day.bk-selected::after { display: none; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .bk-wrap { grid-template-columns: 1fr; }
  .bk-col-left  { grid-column: 1; }
  .bk-col-right { grid-column: 1; }
  .bk-form-inner { grid-template-columns: 1fr; }
  .bk-legend { margin-top: 20px; padding-top: 16px; }
}
@media (max-width: 480px) {
  .bk-alternative-box { margin-top: 20px; padding: 12px; }
}
@media (max-width: 380px) {
  .bk-slots-grid { grid-template-columns: 1fr; }
}