/* Page Réservation */

.reservation {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: var(--section);
}

main {
  background: var(--lin);
}

.reservation__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.reservation__entete > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.etapes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.etapes li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--pierre);
}

.etapes li[aria-current='step'] {
  background: var(--foret);
  color: var(--lin);
}

.etapes li[aria-current='step'] span {
  color: var(--or);
}

.reservation__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}

.reservation__principal {
  flex: 999 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.carte-blanche {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background: var(--blanc);
}

.carte-blanche h2,
.recap h2 {
  font-family: var(--font-texte);
  font-size: 19px;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.activites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.choix {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  border: 2px solid var(--trait);
  border-radius: 16px;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--font-texte);
  text-align: left;
  cursor: pointer;
}

.choix[aria-pressed='true'] {
  border-color: var(--foret);
  background: var(--foret);
  color: var(--lin);
}

.choix__titre {
  font-size: 16px;
  font-weight: 700;
}

.choix__detail {
  font-size: 14px;
  opacity: 0.8;
}

.choix__prix {
  font-family: var(--font-titre);
  font-size: 22px;
  font-weight: 600;
}

.duo {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.duo > section:first-child {
  flex: 1 1 380px;
  min-width: 0;
}

.duo > section:last-child {
  flex: 1 1 280px;
  min-width: 0;
}

.calendrier__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendrier__entete > div {
  display: flex;
  gap: 8px;
}

.rond {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #c9d2c4;
  background: var(--blanc);
  color: var(--encre);
  font-size: 22px;
  cursor: pointer;
}

.rond:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendrier {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.calendrier .calendrier__jour {
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--pierre);
}

.calendrier .calendrier__date {
  height: 46px;
  border: 1px solid #c9d2c4;
  border-radius: 12px;
  background: #edf0e9;
  color: var(--encre);
  font: 700 15px var(--font-texte);
  cursor: pointer;
}

.calendrier .calendrier__date.est-choisi {
  border-color: var(--foret);
  background: var(--foret);
  color: var(--lin);
}

.calendrier .calendrier__date.est-complet {
  border: 1px dashed #a3aaa4;
  background: var(--blanc);
  color: #8e968f;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendrier .calendrier__date.est-passe {
  border-color: transparent;
  background: transparent;
  color: #b3b9b4;
  cursor: default;
}

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

.legende span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pastille {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.pastille--libre {
  background: #edf0e9;
  border: 1px solid #c9d2c4;
}

.pastille--choix {
  background: var(--foret);
}

.pastille--complet {
  border: 1px dashed #a3aaa4;
}

.creneaux {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.creneaux .creneau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid var(--trait);
  border-radius: 14px;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--font-texte);
  cursor: pointer;
}

.creneaux .creneau strong {
  font-size: 17px;
}

.creneaux .creneau span {
  font-size: 14px;
  font-weight: 600;
  color: var(--mousse);
}

.creneaux .creneau.est-choisi {
  border-color: var(--foret);
  background: var(--foret);
  color: var(--lin);
}

.creneaux .creneau.est-choisi span {
  color: var(--or);
}

.creneaux .creneau.est-complet {
  border: 1px dashed #a3aaa4;
  color: #8e968f;
  cursor: not-allowed;
}

.creneaux .creneau.est-complet span {
  color: #8e968f;
}

.participants {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--trait);
  font-weight: 700;
}

.participants > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.participants__nombre {
  min-width: 24px;
  text-align: center;
  font-size: 20px;
}

.coordonnees__ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.coordonnees__ligne label {
  flex: 1 1 220px;
}

:where(.reservation) label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

:where(.reservation) label > span {
  font-weight: 500;
  color: var(--pierre);
}

:where(.reservation) input:not([type='radio'], [type='checkbox']),
:where(.reservation) select,
:where(.reservation) textarea {
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--rayon-s);
  border: 1px solid #c9c3b4;
  background: var(--blanc);
  color: var(--encre);
  font: 400 16px var(--font-texte);
}

:where(.reservation) textarea {
  padding: 12px 16px;
}

.case {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texte);
}

.case input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--mousse);
}

.lien-retour {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--or-fonce);
  font: 700 15px var(--font-texte);
  cursor: pointer;
}

.confirmation {
  align-items: flex-start;
}

.confirmation h2 {
  font-family: var(--font-titre);
  font-size: 32px;
  font-weight: 500;
}

.confirmation__texte {
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
}

.confirmation__reference {
  font: 600 15px ui-monospace, Consolas, monospace;
  letter-spacing: 0.06em;
}

.piege {
  position: absolute;
  left: -9999px;
}

.recap {
  position: sticky;
  top: 24px;
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border-radius: 22px;
  background: var(--foret);
  color: var(--lin);
}

.recap h2 {
  font-family: var(--font-titre);
  font-size: 26px;
  font-weight: 500;
}

.recap dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  font-size: 15px;
}

.recap dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.recap dt {
  color: var(--brume);
}

.recap dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.recap__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--sous-bois-bord);
  color: var(--brume);
}

.recap__total strong {
  font-family: var(--font-titre);
  font-size: 40px;
  font-weight: 600;
  color: var(--or);
}

.paiement {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--sous-bois-bord);
  font-weight: 500;
  cursor: pointer;
}

.paiements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.paiements legend {
  padding-bottom: 10px;
  font-weight: 700;
}

.paiement:has(input:checked) {
  border-color: var(--or);
  background: var(--sous-bois);
}

.paiement input {
  width: 18px;
  height: 18px;
  accent-color: var(--or);
}

.paiement__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.confirmation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.paiement--seul {
  display: flex;
  border-color: var(--or);
  background: var(--sous-bois);
  cursor: default;
}

.paiement > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.paiement > span > span {
  font-size: 13px;
  color: var(--brume);
}

.recap .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.recap__erreur {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6e2de;
  color: #9b2c1f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.recap__aide {
  font-size: 13px;
  line-height: 1.6;
  color: var(--brume);
}

@media (max-width: 960px) {
  .recap {
    position: static;
  }
}

@media (max-width: 720px) {
  .activites {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .choix {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 16px;
  }

  .choix__prix {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 20px;
  }

  .calendrier {
    gap: 4px;
  }

  .calendrier .calendrier__date {
    height: 42px;
    font-size: 14px;
  }

  .recap {
    padding: 24px 20px;
  }
}
