.reservation-dialog {
  --reservation-ink: #211d19;
  --reservation-paper: #fff0c5;
  width: min(720px,calc(100% - 36px));
  height: min(808px,calc(100vh - 36px));
  height: min(808px,calc(100dvh - 36px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--reservation-ink);
  overflow: hidden;
  color: var(--reservation-ink);
  background: white;
  box-shadow: 0 18px 72px #140d0966;
}
.reservation-dialog:not([open]) { display: none; }
.reservation-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.reservation-dialog::backdrop { background: rgba(26,20,16,.77); }
html:has(.reservation-dialog[open]) { overflow: hidden; }
.reservation-barre {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  color: var(--reservation-paper);
  background: var(--reservation-ink);
  border-bottom: 3px solid var(--ember);
}
.reservation-signe { display: block; width: 48px; height: 48px; --couleur-broche: var(--ember); }
.reservation-titres p {
  margin: 0 0 3px;
  color: var(--reservation-paper);
  font: 650 14px/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.reservation-titres h2 { margin: 0; font: 700 36px/.99 var(--display); letter-spacing: -.02em; }
.reservation-fermer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  color: inherit;
  border: 1px solid #847a69;
  background: transparent;
  font: 650 14px/1 var(--sans);
  cursor: pointer;
}
.reservation-fermer span { font: 450 23px/1 var(--sans); }
.reservation-fermer:hover { background: var(--reservation-paper); color: var(--reservation-ink); }
.reservation-fermer:focus-visible { outline: 2px solid var(--reservation-paper); outline-offset: 2px; }
.reservation-formulaire { position: relative; min-height: 0; background: white; }
.reservation-widget { display: block; width: 100%; height: 100%; border: 0; }
.reservation-dialog[data-fermeture] .reservation-widget { pointer-events: none; }
.reservation-attente {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  margin: 0;
  padding: 22px;
  text-align: center;
  color: #5e503f;
  background: white;
  font: 500 14px/1.4 var(--sans);
  pointer-events: none;
}
.reservation-attente[hidden] { display: none; }
.reservation-pied { display: flex; align-items: center; justify-content: flex-end; padding: 0 17px; border-top: 1px solid #d8ccb4; background: #fff7e4; }
.reservation-secours { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--reservation-ink); font: 600 14px/1.3 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.reservation-secours svg { width: 15px; height: 15px; }
@media (max-width: 620px) {
  .reservation-barre { gap: 9px; padding: 9px 11px; }
  .reservation-signe { width: 37px; height: 37px; }
  .reservation-titres h2 { font-size: clamp(27px,7vw,34px); }
  .reservation-titres p { font-size: 14px; }
  .reservation-pied { padding-inline: 11px; }
}
@media (max-height: 480px) {
  .reservation-dialog { height: calc(100vh - 8px); height: calc(100dvh - 8px); }
  .reservation-barre { padding-block: 4px; }
  .reservation-signe { width: 33px; height: 33px; }
  .reservation-titres h2 { font-size: 26px; }
}
@keyframes reservation-entre {
  from { opacity: .4; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .reservation-dialog[open] { animation: reservation-entre .18s ease-out; }
}
@media (max-width: 620px), (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .reservation-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: calc(100vh - 12px);
    height: calc(100dvh - max(12px, env(safe-area-inset-top,0px)));
    margin: 0 auto;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    padding-inline: env(safe-area-inset-left,0px) env(safe-area-inset-right,0px);
  }
  .reservation-pied { padding-bottom: env(safe-area-inset-bottom,0px); }
  .reservation-barre {
    position: relative;
    touch-action: pan-x pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
  }
  .reservation-barre:active { cursor: grabbing; }
  .reservation-barre::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 30px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: #b9a991;
  }
  @media (prefers-reduced-motion: no-preference) {
    html[data-motion="on"] .reservation-dialog[open] { animation: reservation-monte .64s cubic-bezier(.2,.65,.23,1); }
    html[data-motion="on"] .reservation-dialog[open][data-manipulee] { animation: none; }
    html[data-motion="on"] .reservation-dialog[open]::backdrop {
      animation: reservation-voile .44s ease-out;
      transition: opacity .38s ease-out;
    }
    html[data-motion="on"] .reservation-dialog[open][data-fermeture]::backdrop { animation: none; opacity: 0; }
  }
}
@keyframes reservation-monte {
  from { transform: translate3d(0,100%,0); }
  to { transform: translate3d(0,0,0); }
}
@keyframes reservation-voile {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media print {
  .reservation-dialog[open], .reservation-dialog::backdrop { display: none; }
  html:has(.reservation-dialog[open]) { overflow: visible; }
}
