/* Vue Réserver : noire, quatre volets exclusifs, résumé collé au-dessus des onglets, bon de session sur ordinateur. */
#reserver { background: var(--noir); color: var(--blanc); min-height: calc(100svh - var(--barre-h)); }
#reserver .v-titre { color: var(--blanc); }
.etape { border-top: 1px solid var(--filet); }
.etape:last-of-type { border-bottom: 1px solid var(--filet); }
.etape summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none;
  padding: 0 max(var(--marge), env(safe-area-inset-right)) 0 max(var(--marge), env(safe-area-inset-left));
}
.etape summary::-webkit-details-marker { display: none; }
.e-nom { font: 700 17px/1 var(--f-texte); }
.e-val { font: 700 20px/1 var(--f-titre); text-transform: uppercase; color: var(--acide); text-align: right; }
.etape[open] summary { background: var(--carbone); }
.etape[open] .e-nom { color: var(--acide); }
.e-corps { padding: 12px max(var(--marge), env(safe-area-inset-right)) 22px max(var(--marge), env(safe-area-inset-left)); background: var(--carbone); }

.m-ligne { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "code nom compteur" "code reste compteur";
  align-items: center; column-gap: 10px; min-height: 76px; padding: 10px 0; border-bottom: 1px solid var(--filet); }
.m-ligne:last-child { border-bottom: 0; }
.m-code { grid-area: code; font: 900 40px/.9 var(--f-titre); color: var(--gris); }
.m-ligne.pris .m-code { color: var(--acide); }
.m-nom { grid-area: nom; align-self: end; font: 500 16px/1.25 var(--f-texte); }
.m-nom span { display: block; font-size: 15px; color: var(--gris); }
.m-reste { grid-area: reste; align-self: start; font: 500 15px/1.3 var(--f-texte); color: var(--acide); min-height: 1em; }
.compteur { grid-area: compteur; display: flex; align-items: center; }
.compteur button { display: grid; place-items: center; width: 48px; height: 48px; box-shadow: inset 0 0 0 2px var(--gris); color: var(--blanc); }
.compteur button svg { width: 20px; height: 20px; }
.compteur button:disabled { box-shadow: inset 0 0 0 2px var(--filet); color: var(--filet); cursor: not-allowed; }
.c-n { width: 40px; text-align: center; font: 700 28px/1 var(--f-titre); }

#reserver .jours { padding-inline: 0; margin-inline: calc(var(--marge) * -1); padding: 0 var(--marge) 4px; }
#reserver .jour { box-shadow: inset 0 0 0 2px var(--gris); }
#reserver .jour[aria-checked="true"] { background: var(--acide); color: var(--noir); box-shadow: none; }
#reserver .jour[aria-disabled="true"] { background: repeating-linear-gradient(135deg, rgb(242 244 239 / .12) 0 2px, transparent 2px 7px); box-shadow: none; color: var(--gris); }
#reserver .autre-date { padding-inline: 0; }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.heure { height: 48px; box-shadow: inset 0 0 0 2px var(--gris); font: 700 20px/1 var(--f-titre); }
.heure[aria-checked="true"] { background: var(--acide); color: var(--noir); box-shadow: none; }
.heures-vide { font: 500 15px/1.4 var(--f-texte); color: var(--gris); }
.durees-r .duree { box-shadow: inset 0 0 0 2px var(--gris); }
.durees-r .duree[aria-checked="true"] { background: var(--acide); color: var(--noir); box-shadow: none; }
.durees-r .duree[aria-disabled="true"] { background: repeating-linear-gradient(135deg, rgb(242 244 239 / .12) 0 2px, transparent 2px 7px); box-shadow: none; color: var(--gris); }
.durees-r .duree.attend { background: none; box-shadow: inset 0 0 0 2px var(--filet); color: var(--gris); }
@media (hover: hover) { .heure:hover, #reserver .jour:not([aria-disabled]):not([aria-checked="true"]):hover, .compteur button:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--acide); } }

.r-regle { padding: 14px max(var(--marge), env(safe-area-inset-left)) 0; font: 400 16px/1.45 var(--f-texte); color: var(--blanc); max-width: 40em; }
html[data-noir] .am-toast { outline: 2px solid var(--acide); outline-offset: 0; }
.r-regle:last-of-type { padding-bottom: 28px; }
.volet-bon { display: none !important; }

.r-resume {
  position: fixed; left: var(--rail); right: 0; z-index: 49; bottom: calc(var(--onglets-h) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "phrase bouton" "total bouton"; align-items: center; column-gap: 12px;
  height: 72px; padding: 0 max(var(--marge), env(safe-area-inset-right)) 0 max(var(--marge), env(safe-area-inset-left));
  background: var(--carbone); border-top: 1px solid var(--filet); color: var(--blanc);
}
html:not([data-vue="reserver"]) .r-resume { display: none; }
html[data-vue="reserver"] body { padding-bottom: calc(var(--onglets-h) + 72px + env(safe-area-inset-bottom)); }
.rr-phrase { grid-area: phrase; align-self: end; font: 500 15px/1.25 var(--f-texte); color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-pret .rr-phrase { color: var(--blanc); }
.rr-total { grid-area: total; align-self: start; font: 700 28px/1.05 var(--f-titre); color: var(--acide); min-height: 1em; }
.rr-continuer { grid-area: bouton; min-height: 48px; }

@media (min-width: 768px) {
  .r-resume { bottom: 0; }
  html[data-vue="reserver"] body { padding-bottom: 72px; }
}

@media (min-width: 1100px) {
  #reserver { min-height: 0; }
  #reserver .v-tete::before { background: var(--noir); border-bottom-color: var(--filet); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { #reserver .v-tete::before { background: rgb(14 15 13 / .88); } }
  #reserver .volet-liste { border-right-color: var(--filet); }
  #reserver .volet-liste .r-regle { display: none; }
  .r-resume { display: none; }
  .volet-bon { display: block !important; }
  .bon { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 48px var(--marge) 56px; max-width: 1100px; }
  .b-label { font: 500 15px/1 var(--f-texte); color: var(--gris); }
  .b-heures { display: flex; align-items: center; gap: .18em; font: 900 clamp(96px, 9.4vw, 184px)/1 var(--f-titre); color: var(--acide); }
  .b-heures svg { width: .34em; height: auto; color: var(--gris); flex: none; }
  .b-jour { font: 700 26px/1.1 var(--f-titre); text-transform: uppercase; }
  .b-lignes { margin-top: 10px; border-top: 1px solid var(--filet); max-width: 640px; }
  .b-lignes li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); font: 500 17px/1.3 var(--f-texte); }
  .b-lignes li span:last-child { font: 700 22px/1 var(--f-titre); color: var(--acide); }
  .b-total { display: flex; align-items: baseline; gap: 16px; margin-top: 8px; }
  .b-t-mot { font: 500 17px/1 var(--f-texte); color: var(--gris); }
  .b-t-val { font: 900 120px/1 var(--f-titre); color: var(--acide); }
  .b-euro { font: 900 64px/1 var(--f-titre); color: var(--acide); }
  .b-caution, .b-annul { font: 400 16px/1.45 var(--f-texte); color: var(--gris); max-width: 60ch; }
  .b-etat { font: 500 16px/1.3 var(--f-texte); color: var(--acide); min-height: 1.3em; }
  #reserver:not(.a-depart) .b-heures, #reserver:not(.est-pret) .b-heures svg, #reserver:not(.est-pret) .b-ret, #reserver:not(.est-pret) .b-total { display: none; }
  #reserver:not(.est-pret) .b-etat { font: 700 clamp(56px, 5vw, 96px)/.95 var(--f-titre); text-transform: uppercase; color: var(--blanc); max-width: 12em; order: -1; }
  .b-label { order: -2; }
  .b-continuer { align-self: flex-start; min-width: 320px; min-height: 64px; font-size: 19px; }
}
