.period-summary {
  margin: 22px 0 16px;
  padding: 18px 20px;
  border: 1px solid #c7d8d4;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}
.period-kicker {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.period-summary h3 {
  margin: 0;
  color: var(--ink);
  font: 700 clamp(19px, 2.4vw, 25px)/1.25 Georgia, serif;
}
.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.slot-legend span { display: inline-flex; align-items: center; gap: 7px; }
.slot-legend i { width: 17px; height: 17px; border-radius: 5px; border: 1px solid; }
.legend-available { background: #daf1e4; border-color: #3b8562!important; }
.legend-unavailable { background: #eef0ef; border-color: #c9cecc!important; }
.slot-toolbar button:disabled {
  color: #858d8b;
  border-color: #d6dcda;
  background: #e9eceb;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}
.slot-toolbar-hidden { display: none; }
.slot-legend-discovery span:last-child { display: none; }
.availability-summary {
  margin: 22px 0 14px;
  color: #245d42;
  font-size: 17px;
}
.empty-prominent {
  display: grid;
  gap: 9px;
  margin: 24px 0 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid #d9b79e;
  background: #fff8f2;
  color: #63331d;
  text-align: left;
}
.empty-prominent strong {
  font: 800 clamp(21px, 3vw, 29px)/1.25 Georgia, serif;
}
.empty-prominent span { font-size: 15px; line-height: 1.55; }
.fifteen-day-empty {
  margin-bottom: 14px;
  text-align: center;
}
.fifteen-day-empty strong {
  font-size: clamp(19px, 2.4vw, 25px);
}
.next-availability-label {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.next-availability-list {
  display: grid;
  gap: 12px;
}
.next-availability-day {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(280px, 1.4fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #bcd4c8;
  border-radius: 14px;
  background: rgba(245, 252, 247, .9);
}
.next-availability-day h3 {
  margin: 0;
  color: var(--ink);
  font: 700 18px/1.3 Georgia, serif;
}
.next-availability-day .slot-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.next-availability-day .slot-button {
  padding: 10px 8px 8px;
  text-align: center;
}
.next-availability-day .slot-button small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.no-later-availability {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid #9da9a5;
  border-radius: 9px;
  background: #f0f2f1;
  color: #596461;
  font-size: 15px;
  line-height: 1.55;
}
.week-calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.week-calendar .slot-day {
  min-width: 0;
  padding: 18px;
  border: 1px solid #ccd9d6;
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
}
.week-calendar .slot-day h3 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}
.week-calendar .slot-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.week-calendar .slot-button {
  min-width: 0;
  padding: 9px 5px 8px;
  border-radius: 9px;
  line-height: 1.1;
  text-align: center;
}
.week-calendar .slot-button small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.slot-button-available {
  border: 1px solid #438460;
  background: #dff3e7;
  color: #174e32;
}
.slot-button-available:hover,
.slot-button-available:focus-visible {
  border-color: #174e32;
  outline: 3px solid rgba(31, 112, 69, .22);
  background: #28744c;
  color: #fff;
}
.slot-button-unavailable,
.slot-button-unavailable:disabled {
  border: 1px solid #d3d8d6;
  background: #eff1f0;
  color: #89918e;
  cursor: not-allowed;
  opacity: 1;
}
.slot-day-closed { background: rgba(240, 242, 241, .7)!important; }
.day-closed { margin: 0; color: #8a918f; font-size: 13px; line-height: 1.45; }
.slots-loading { padding: 24px; border-radius: 12px; background: #f5f8f7; color: var(--muted); }
@media (max-width: 760px) {
  .week-calendar { grid-template-columns: 1fr; }
  .slot-toolbar { align-items: stretch; }
  .slot-toolbar button { flex: 1; }
  .next-availability-day { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .week-calendar .slot-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-toolbar { flex-direction: column; }
}

/* Parcours bilingue et priorité mobile : la tâche commence dans le premier écran. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.booking-date-browser {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--aqua-line);
  border-left: 4px solid var(--aqua-sage-dark);
  border-radius: 12px;
  background: rgba(255, 253, 247, .9);
  color: var(--ink);
}
.booking-date-browser h3 { margin: 0 0 14px; font: 700 19px/1.35 Georgia, serif; }
.booking-date-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px; }
.booking-date-controls label { flex: 1 1 190px; min-width: 0; margin: 0; font-size: 16px; }
.booking-date-controls input { min-width: 0; min-height: 48px; font-size: 16px; border-color: var(--aqua-sage-dark); }
.booking-date-controls button { flex: 1 1 215px; }
.booking-date-controls .primary {
  /* Keep the watercolor texture with sufficient contrast even on its lightest areas. */
  background-image: linear-gradient(rgba(101, 48, 13, .75), rgba(101, 48, 13, .75)), var(--aqua-accent);
}
.booking-date-controls button,
.booking-later-dates,
.slot-toolbar button { min-height: 48px; font: inherit; font-size: 16px; font-weight: 700; }
.booking-date-browser p { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.booking-later-dates {
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid var(--brand-dark);
  border-radius: 10px;
  background: #fffdf7;
  color: var(--brand-dark);
  cursor: pointer;
}
.booking-later-dates:hover { background: #f7f0e2; }
.booking-later-dates[hidden] { display: none; }
.booking-date-controls button:disabled,
.booking-later-dates:disabled { cursor: wait; opacity: .65; }
.booking-date-controls :focus-visible,
.booking-later-dates:focus-visible,
.slot-toolbar button:focus-visible,
#period-title:focus { outline: 3px solid var(--brand-dark); outline-offset: 4px; }
#period-title { scroll-margin-top: 24px; }
@media (max-width: 540px) {
  .booking-date-controls { flex-direction: column; align-items: stretch; }
  .booking-date-controls label,
  .booking-date-controls button { flex: auto; width: 100%; }
  .booking-later-dates { width: 100%; }
}

.booking-skip {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 11px 15px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.booking-skip:focus { transform: translateY(0); }
.booking-header-actions { display: flex; align-items: center; gap: 14px; }
.booking-header-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.booking-header-actions a:focus-visible { outline: 3px solid rgba(212,166,42,.4); outline-offset: 2px; }
.account-person-icon { width:20px; height:20px; flex:0 0 20px; fill:rgba(22,125,141,.11); stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.booking-header-actions .account-access-link-connected { gap:7px; padding-right:13px; background:#eef8f5; }
.booking-summary h2 {
  margin: 7px 0 20px;
  color: var(--ink);
  font: 700 35px/1.08 Georgia, serif;
}
.mobile-selection-summary { display: none; }
.privacy-note-mobile { display: none; }
.step h2:focus { outline: 0; }

@media (max-width: 800px) {
  .booking-layout {
    display: block;
    width: min(100% - 20px, 760px);
    margin: 16px auto 34px;
  }
  .booking-summary { display: none; }
  .booking-card { min-height: 0; border-radius: 18px; }
  .mobile-selection-summary:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 2px clamp(18px,5vw,34px) 0;
    padding: 12px 14px;
    border: 1px solid #c8dcd7;
    border-radius: 10px;
    background: #eef7f4;
    color: var(--muted);
    font-size: 13px;
  }
  .mobile-selection-summary strong { color: var(--ink); }
  .privacy-note-mobile { display: block; }
  .booking-header { padding-inline: 14px; }
  .booking-header-actions > span { display: none; }
  .service:has(.service-thumb) { grid-template-columns: 96px minmax(0,1fr); }
  .service-thumb { width: 96px; min-height: 112px; align-self: stretch; }
  .service-thumb img { height: 100%; object-fit: cover; }
}

@media (max-width: 540px) {
  .booking-header .brand { min-width: 0; flex: 1 1 auto; font-size: 15px; line-height: 1.12; }
  .booking-header .brand span { overflow: visible; text-overflow: clip; white-space: normal; }
  .booking-header-actions { flex: 0 0 auto; gap: 6px; }
  .booking-header-actions a { min-height: 38px; padding-inline: 9px; }
  .booking-card .step { padding-inline: 18px; }
  .service,
  .service:has(.service-thumb) { grid-template-columns: 84px minmax(0,1fr); }
  .service-thumb { width: 84px; min-height: 126px; }
  .service-duration { grid-column: 2; justify-self: start; text-align: left; }
}
