/* Mise en page générale et panneau sombre de gauche (photo, titre, calendrier). */
:root {
  --side-bg: #3d4654;
  --side-fg: #ffffff;
  --side-muted: rgba(255, 255, 255, 0.55);
  --day-open: rgba(255, 255, 255, 0.16);
  --day-open-hover: rgba(255, 255, 255, 0.28);
  --page-bg: #eef0f3;
  --focus: #6aa8ff;
  --radius: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --page-bg: #15181d; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  line-height: 1.45;
}
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.booking {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(300px, 420px);
  width: 100%;
  max-width: 820px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(20, 30, 50, 0.18);
}

.side {
  background: var(--side-bg);
  color: var(--side-fg);
  padding: 32px 28px 24px;
  text-align: center;
}
.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
  border: 3px solid rgba(255, 255, 255, 0.18);
}
.side h1 { font-size: 1.5rem; text-wrap: balance; font-weight: 300; margin: 0 0 6px; letter-spacing: 0.01em; }
.intro { color: var(--side-muted); font-size: 0.9rem; margin: 0 0 22px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 1.05rem; font-weight: 400; margin: 0; text-transform: capitalize; }
.cal-nav {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--side-fg);
  font-size: 1.6rem; line-height: 1;
}
.cal-nav:hover:not(:disabled) { background: var(--day-open); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }

.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  justify-items: center;
}
.cal-weekdays span { color: var(--side-muted); font-size: 0.8rem; padding: 4px 0; }
.cal-day {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--side-muted);
  font-size: 0.92rem;
  text-decoration: line-through;
}
.cal-day:disabled { cursor: default; }
.cal-day.open { background: var(--day-open); color: var(--side-fg); text-decoration: none; font-weight: 500; }
.cal-day.open:hover { background: var(--day-open-hover); }
.cal-day.selected, .cal-day.selected:hover { background: #ffffff; color: var(--side-bg); font-weight: 600; }
.cal-day.today:not(.selected) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.cal-blank { width: 40px; height: 40px; }
.cal-status { min-height: 1.4em; color: var(--side-muted); font-size: 0.85rem; margin: 12px 0 0; }

.noscript { text-align: center; padding: 16px; }

@media (max-width: 760px) {
  body { align-items: flex-start; padding: 12px; }
  .booking { grid-template-columns: 1fr; max-width: 440px; }
  .side { padding: 24px 16px 18px; }
  .avatar { width: 88px; height: 88px; margin-bottom: 12px; }
  .side h1 { font-size: 1.35rem; }
  .cal-day, .cal-blank { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
