/* Page publique de réservation NJNOOS — sobre, responsive, sans dépendance. */
* { box-sizing: border-box; margin: 0; }
body { font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: #f4f6f8; color: #1f2d3d; }
.bk-wrap { max-width: 860px; margin: 0 auto; padding: 28px 16px 40px; }
.bk-head { text-align: center; margin-bottom: 22px; }
.bk-brand { font-weight: 800; letter-spacing: .12em; color: #ff7a59; font-size: 14px; margin-bottom: 10px; }
h1 { font-size: 24px; margin-bottom: 6px; }
.bk-muted { color: #64748b; font-size: 14px; }
.bk-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.bk-day { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.bk-day-h { font-weight: 700; font-size: 13px; margin-bottom: 8px; text-transform: capitalize; }
.bk-slot { display: block; width: 100%; margin: 6px 0; padding: 9px; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #1f2d3d; font-size: 14px; cursor: pointer; }
.bk-slot:hover { border-color: #ff7a59; color: #ff7a59; }
.bk-form { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bk-chosen { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bk-chosen button { background: none; border: none; color: #ff7a59; cursor: pointer; text-decoration: underline; font-size: 13px; }
.bk-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #475569; }
.bk-form input, .bk-form textarea { border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; font: inherit; color: #1f2d3d; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-cta { background: #ff7a59; color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.bk-cta:disabled { opacity: .6; }
.bk-err { color: #b91c1c; font-size: 13px; }
.bk-done { text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 34px 20px; max-width: 460px; margin: 0 auto; }
.bk-check { width: 52px; height: 52px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 28px; line-height: 52px; margin: 0 auto 12px; }
.bk-done h2 { margin-bottom: 8px; }
.bk-foot { text-align: center; margin-top: 30px; font-size: 12px; }
@media (max-width: 520px) { .bk-grid { grid-template-columns: 1fr; } }

/* ===================== Page de réservation façon Calendly (cz-*) =====================
   Carte centrée en deux volets : l'événement à gauche, calendrier mensuel + horaires à
   droite. Les classes bk-* ci-dessus restent utilisées par la page de gestion (manage). */
.cz-body { background: #f6f8fb; color: #1a1a1a; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 16px 24px; font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.cz-card { width: 100%; max-width: 1040px; min-height: 560px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 1px 8px rgba(0,0,0,.08); display: flex; overflow: hidden; }
.cz-event { position: relative; width: 340px; flex-shrink: 0; border-right: 1px solid #e5e7eb; padding: 28px 26px; }
.cz-back { position: absolute; top: 20px; left: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d4d8de; background: #fff; color: #006bff; font-size: 20px; cursor: pointer; }
.cz-back:hover { background: #f0f5ff; }
.cz-avatar { width: 64px; height: 64px; border-radius: 50%; background: #1a1a1a; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; margin: 44px 0 16px; }
.cz-host { color: #6b7280; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cz-title { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 0 0 22px; color: #1a1a1a; }
.cz-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; color: #4b5563; font-weight: 600; font-size: 15px; }
.cz-meta li { display: flex; gap: 10px; align-items: flex-start; }
.cz-ico { width: 20px; flex-shrink: 0; text-align: center; filter: grayscale(1); opacity: .7; }
.cz-when { color: #1a1a1a; }
.cz-desc { margin-top: 20px; color: #4b5563; font-size: 14.5px; line-height: 1.55; white-space: pre-line; }

.cz-main { flex: 1; padding: 28px 32px; min-width: 0; }
.cz-h2 { font-size: 20px; font-weight: 700; margin: 0 0 22px; color: #1a1a1a; }
.cz-status { color: #6b7280; font-size: 15px; }
.cz-pick { display: flex; gap: 28px; }
.cz-cal { flex: 1; max-width: 420px; }
.cz-cal-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 18px; }
.cz-month { font-size: 16px; min-width: 150px; text-align: center; text-transform: capitalize; }
.cz-nav { width: 38px; height: 38px; border-radius: 50%; border: none; background: #f0f5ff; color: #006bff; font-size: 22px; cursor: pointer; }
.cz-nav:disabled { background: none; color: #c4c9d1; cursor: default; }
.cz-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cz-dow span { font-size: 11px; font-weight: 600; color: #4b5563; text-transform: uppercase; padding-bottom: 6px; }
.cz-day { aspect-ratio: 1; max-width: 48px; width: 100%; margin: 0 auto; border-radius: 50%; border: none; background: none; color: #9ca3af; font-size: 15px; font-weight: 500; cursor: default; position: relative; }
.cz-day.avail { background: #f0f5ff; color: #006bff; font-weight: 700; cursor: pointer; }
.cz-day.avail:hover { background: #dbe8ff; }
.cz-day.sel { background: #006bff; color: #fff; }
.cz-day.today::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }

.cz-times { width: 220px; flex-shrink: 0; }
.cz-times-day { font-size: 15px; font-weight: 500; margin: 8px 0 18px; text-transform: capitalize; }
.cz-times-list { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 4px; }
.cz-time-row { display: flex; gap: 8px; }
.cz-time { flex: 1; height: 52px; border: 1px solid #99c2ff; border-radius: 6px; background: #fff; color: #006bff; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .15s; }
.cz-time:hover { border: 2px solid #006bff; }
.cz-time.sel { background: #4d4d4d; border-color: #4d4d4d; color: #fff; flex: 1; }
.cz-next { flex: 1; height: 52px; border: none; border-radius: 6px; background: #006bff; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.cz-next:hover { background: #0057d1; }

.cz-form { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.cz-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.cz-form input, .cz-form textarea { border: 1px solid #b2b9c3; border-radius: 8px; padding: 12px 14px; font: inherit; font-weight: 400; font-size: 15px; color: #1a1a1a; }
.cz-form input:focus, .cz-form textarea:focus { outline: none; border-color: #006bff; box-shadow: 0 0 0 1px #006bff; }
.cz-cta { align-self: flex-start; border: none; border-radius: 40px; background: #006bff; color: #fff; font-size: 15px; font-weight: 700; padding: 13px 26px; cursor: pointer; }
.cz-cta:hover { background: #0057d1; }
.cz-cta:disabled { opacity: .6; cursor: default; }
.cz-err { color: #b91c1c; font-size: 14px; margin: 0; }

.cz-done { text-align: center; padding-top: 30px; }
.cz-check { width: 44px; height: 44px; border-radius: 50%; background: #1a8f4a; color: #fff; font-size: 24px; line-height: 44px; margin: 0 auto 14px; }
.cz-done .cz-h2 { margin-bottom: 8px; }
.cz-done-sub { color: #4b5563; margin: 0 0 26px; }
.cz-recap { display: inline-flex; flex-direction: column; gap: 10px; text-align: left; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px 26px; color: #4b5563; font-weight: 600; font-size: 15px; }
.cz-recap-title { color: #1a1a1a; font-size: 17px; font-weight: 700; }
.cz-recap a { color: #006bff; }
.cz-foot { color: #9ca3af; font-size: 12px; margin-top: 18px; }

@media (max-width: 820px) {
  .cz-body { padding: 0; }
  .cz-card { flex-direction: column; border-radius: 0; border: none; min-height: 100vh; box-shadow: none; }
  .cz-event { width: auto; border-right: none; border-bottom: 1px solid #e5e7eb; padding: 20px; }
  .cz-avatar { margin: 36px 0 10px; width: 48px; height: 48px; font-size: 16px; }
  .cz-title { font-size: 22px; margin-bottom: 14px; }
  .cz-main { padding: 20px; }
  .cz-pick { flex-direction: column; }
  .cz-cal { max-width: none; }
  .cz-times { width: auto; }
  .cz-times-list { max-height: none; }
}

/* L’attribut hidden doit primer sur les display des classes (formulaire, ligne date…). */
[hidden] { display: none !important; }

/* Choix du format de RDV (visio / appel), cartes radio façon Calendly. */
.cz-modes { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cz-modes legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.cz-mode { flex-direction: row !important; align-items: flex-start; gap: 12px !important; border: 1px solid #b2b9c3; border-radius: 8px; padding: 12px 14px; cursor: pointer; font-weight: 400 !important; }
.cz-mode:has(input:checked) { border-color: #006bff; box-shadow: 0 0 0 1px #006bff; background: #f5f9ff; }
.cz-mode input { margin-top: 3px; accent-color: #006bff; width: 16px; height: 16px; flex-shrink: 0; }
.cz-mode span { display: flex; flex-direction: column; gap: 3px; }
.cz-mode b { font-size: 15px; color: #1a1a1a; }
.cz-mode small { font-size: 13px; color: #4b5563; }
