/* Page de demande de location de la salle Fondation.
   Direction artistique reprise de 42lausanne.ch, pensée d'abord pour le téléphone.
   Aucun style inline, la politique de sécurité de la page l'interdit. */

@font-face {
  font-family: "Jost";
  src: url("polices/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --noir: #000;
  --blanc: #fff;
  --primaire: #00babc;
  --primaire-clair: #e7fefe;
  --secondaire: #ed3491;
  --secondaire-clair: #96a3eb;
  --lavande: #e1e6ff;
  --degrade: linear-gradient(90deg, #00babc 0%, #96a3eb 100%);
  /* Assombri pour rester lisible sur blanc, lavande et turquoise clair (AA) */
  --erreur: #a50e58;
  --erreur-fond: #fff0f7;
  --gris: #4d4d4d;
  --gris-pris: #6b6b6b;
  --rayon: 20px;
  --rayon-moyen: 10px;
  --rayon-bouton: 5px;
  --duree: .2s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--blanc);
  color: var(--noir);
  font-family: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--noir);
  outline-offset: 2px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--noir);
  color: var(--blanc);
  border-radius: var(--rayon-bouton);
}

.evitement:focus {
  top: 1rem;
}

.conteneur {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Bandeau et en-tête */

.bandeau {
  background: var(--degrade);
  font-size: 1rem;
}

.bandeau-contenu {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .625rem;
  white-space: nowrap;
}

.entete {
  border-bottom: 1px solid var(--noir);
}

.entete-contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.entete-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.entete-logo img {
  width: auto;
  height: 3.5rem;
}

.entete-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.lien-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.lien-nav::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .375rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.lien-nav:hover::after {
  transform: scaleX(1);
}

/* Boutons, avec l'ombre rose du site au survol */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .625rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--rayon-bouton);
  background: none;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--duree) ease-in-out, box-shadow var(--duree) ease-in-out,
    background-color var(--duree) ease-in-out, color var(--duree) ease-in-out;
}

.btn-degrade {
  background: linear-gradient(to right, var(--primaire), var(--secondaire-clair));
  color: var(--noir);
}

@media (hover: hover) {
  .btn-degrade:hover {
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px var(--secondaire);
  }
}

.btn-degrade[aria-busy="true"] {
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.btn-contour {
  border-color: var(--noir);
  color: var(--noir);
}

@media (hover: hover) {
  .btn-contour:hover {
    background: var(--noir);
    color: var(--blanc);
  }
}

.btn-contour[aria-busy="true"] {
  background: none;
  color: var(--noir);
  cursor: progress;
}

.btn-noir {
  background: var(--noir);
  border-color: var(--noir);
  color: var(--blanc);
}

@media (hover: hover) {
  .btn-noir:hover {
    background: transparent;
    color: var(--noir);
  }
}

.btn-nav {
  min-height: 44px;
  padding: .5rem .875rem;
  font-size: 1rem;
}

.btn-large {
  width: 100%;
  min-height: 56px;
}

/* En-tête de page */

.heros {
  padding-block: 1.75rem;
}

.heros-grille {
  display: grid;
  gap: 1.25rem;
}

.invite {
  color: var(--secondaire);
  margin-right: .25rem;
}

.chapeau {
  margin-top: .875rem;
  max-width: 38rem;
}

.heros-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--rayon);
}

/* Parcours de réservation */

.reservation {
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--noir);
}

.titre-section {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.sans-cadre {
  min-width: 0;
  border: 0;
}

.etape {
  margin-bottom: 3rem;
  scroll-margin-top: 1rem;
  animation: apparition .35s ease-out both;
}

@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* La première étape est là dès l'ouverture, seules les suivantes apparaissent */
#etape-formule {
  animation: none;
}

.etape-titre {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  scroll-margin-top: 1rem;
}

.etape-numero {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--noir);
  border-radius: 50%;
  background: var(--blanc);
  font-size: 1.125rem;
  line-height: 1;
  transition: background-color var(--duree);
}

.est-fait > .etape-titre .etape-numero {
  background: var(--degrade);
}

.etape-rappel {
  margin-bottom: 1rem;
}

/* Cartes de choix, un vrai bouton radio couvre toute la carte */

.choix-grille {
  display: grid;
  gap: .875rem;
}

.carte-choix {
  position: relative;
  display: block;
}

.carte-choix input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.carte-corps {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .125rem .75rem;
  align-items: start;
  height: 100%;
  min-height: 5.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--noir);
  border-radius: var(--rayon);
  background: var(--blanc);
  transition: transform var(--duree) ease-in-out, box-shadow var(--duree) ease-in-out;
}

.carte-texte,
.carte-prix {
  display: contents;
}

.carte-titre {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-transform: uppercase;
}

.carte-detail,
.carte-detail-suite,
.carte-tva,
.carte-etat {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.carte-detail {
  grid-column: 2;
  grid-row: 2;
}

.carte-detail-suite {
  grid-column: 2 / -1;
  grid-row: 3;
}

.carte-etat {
  grid-column: 2;
  grid-row: 3;
  font-weight: 500;
}

.carte-montant {
  grid-column: 3;
  grid-row: 1;
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-align: right;
  white-space: nowrap;
}

.carte-tva {
  grid-column: 3;
  grid-row: 2;
  text-align: right;
  white-space: nowrap;
}

.coche {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--noir);
  border-radius: 50%;
  background: var(--blanc);
}

@media (hover: hover) {
  .carte-choix input:hover:not(:disabled) + .carte-corps {
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px var(--secondaire);
  }
}

.carte-choix input:focus-visible + .carte-corps {
  outline: 3px solid var(--noir);
  outline-offset: 3px;
}

.carte-choix input:checked + .carte-corps {
  background: var(--degrade);
  box-shadow: inset 0 0 0 1px var(--noir);
}

@media (hover: hover) {
  .carte-choix input:checked:hover + .carte-corps {
    box-shadow: inset 0 0 0 1px var(--noir), 4px 4px var(--secondaire);
  }
}

.carte-choix input:checked + .carte-corps .coche {
  background: var(--noir);
}

.carte-choix input:checked + .carte-corps .coche::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .625rem;
  height: .3125rem;
  border-left: 2px solid var(--blanc);
  border-bottom: 2px solid var(--blanc);
  transform: translate(-50%, -65%) rotate(-45deg);
}

.carte-choix input:disabled {
  cursor: not-allowed;
}

.carte-choix input:disabled + .carte-corps {
  border-style: dashed;
  background: #f4f4f4;
  color: var(--gris);
}

.carte-choix input:disabled + .carte-corps .coche {
  background: transparent;
  border-style: dashed;
}

.carte-choix--compacte .carte-corps {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 4.5rem;
}

fieldset:disabled .carte-corps {
  opacity: .5;
}

fieldset:disabled .carte-choix input {
  cursor: not-allowed;
}

fieldset:disabled .recap {
  display: none;
}

/* Calendrier */

.calendrier {
  max-width: 36rem;
}

.calendrier-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
}

.calendrier-mois {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
}

.calendrier-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--noir);
  border-radius: var(--rayon-bouton);
  background: var(--blanc);
  cursor: pointer;
  transition: background-color var(--duree), color var(--duree);
}

@media (hover: hover) {
  .calendrier-nav:hover:not(:disabled) {
    background: var(--noir);
    color: var(--blanc);
  }
}

.calendrier-nav:disabled {
  border-color: #c9c9c9;
  color: #b0b0b0;
  cursor: not-allowed;
}

.fleche {
  display: block;
  width: .625rem;
  height: .625rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.fleche--gauche {
  transform: translateX(2px) rotate(45deg);
}

.fleche--droite {
  transform: translateX(-2px) rotate(-135deg);
}

.calendrier-grille {
  width: calc(100% + 4px);
  margin-inline: -2px;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
  transition: opacity var(--duree);
}

.calendrier-grille th {
  padding-block: .25rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.calendrier-grille td {
  padding: 0;
}

.calendrier.est-en-chargement .calendrier-grille {
  opacity: .45;
}

.calendrier-etat {
  margin-top: .75rem;
  font-size: 1rem;
}

.jour {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 44px;
  aspect-ratio: 1 / .95;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--rayon-moyen);
  background: none;
  font-size: 1.0625rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--duree);
}

button.jour {
  cursor: pointer;
}

.jour-marque {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.jour--libre {
  background: var(--primaire-clair);
  border-color: var(--noir);
  font-weight: 600;
}

.jour--libre .jour-marque {
  background: var(--noir);
}

.jour--partiel {
  background: linear-gradient(135deg, var(--primaire-clair) 50%, var(--blanc) 50%);
  border: 1px dashed var(--noir);
  font-weight: 500;
}

.jour--partiel .jour-marque {
  border: 1px solid var(--noir);
  background: linear-gradient(90deg, var(--noir) 50%, transparent 50%);
}

.jour--pris {
  color: var(--gris-pris);
}

.jour--pris .jour-marque {
  visibility: hidden;
}

button.jour--inactif {
  cursor: not-allowed;
}

.jour--partiel.jour--inactif {
  background: var(--blanc);
}

@media (hover: hover) {
  button.jour:not(.jour--inactif):not(.jour--choisi):hover {
    background: var(--primaire);
  }
}

.jour--choisi {
  background: var(--noir);
  border: 1px solid var(--noir);
  color: var(--blanc);
  font-weight: 600;
}

.jour--choisi .jour-marque {
  width: 11px;
  height: 6px;
  margin-top: -2px;
  border: 0;
  border-left: 2px solid var(--blanc);
  border-bottom: 2px solid var(--blanc);
  border-radius: 0;
  background: none;
  transform: rotate(-45deg);
}

.jour[aria-current="date"] .jour-numero {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button.jour:focus-visible {
  z-index: 2;
}

.jour--fantome {
  min-height: 44px;
  aspect-ratio: 1 / .95;
  border-radius: var(--rayon-moyen);
  background: #efefef;
  animation: pulsation 1.4s ease-in-out infinite;
}

@keyframes pulsation {
  50% {
    opacity: .45;
  }
}

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1rem;
  font-size: 1rem;
}

.legende li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.jour--mini {
  flex: none;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  min-height: 0;
  aspect-ratio: auto;
  gap: 2px;
  border-radius: 7px;
  font-size: .8125rem;
}

.jour--mini .jour-marque {
  width: 5px;
  height: 5px;
}

.aide {
  margin-top: .75rem;
  font-size: 1rem;
  color: var(--gris);
}

.aide:empty {
  display: none;
}

.aide--message {
  color: var(--noir);
  font-weight: 500;
}

/* Cases à cocher, le libellé couvre aussi la zone autour de la case */

.case {
  position: relative;
  margin-top: 1rem;
}

.case input {
  position: absolute;
  left: .25rem;
  top: .625rem;
  width: 1.5rem;
  height: 1.5rem;
  accent-color: var(--noir);
  cursor: pointer;
}

.case label {
  display: block;
  min-height: 44px;
  padding: .5rem 0 .5rem 2.5rem;
  cursor: pointer;
}

.case-aide {
  display: block;
  font-size: 1rem;
  color: var(--gris);
}

.horaire-final {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--noir);
}

.horaire-final strong {
  font-weight: 600;
}

/* Champs de formulaire */

.groupe {
  min-width: 0;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border: 0;
  border-top: 1px solid var(--noir);
}

.groupe legend {
  float: left;
  width: 100%;
  margin-bottom: .75rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.groupe .champs {
  clear: both;
}

.champs {
  display: grid;
  gap: 1rem;
}

.champ {
  min-width: 0;
}

.champ label {
  display: block;
  margin-bottom: .25rem;
  font-size: 1rem;
  font-weight: 500;
}

.champ input,
.champ select,
.champ textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .5625rem .875rem;
  border: 1px solid var(--noir);
  border-radius: var(--rayon-bouton);
  background-color: var(--blanc);
  font-size: 1.125rem;
  line-height: 1.5;
}

.champ select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("images/chevron.svg");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  cursor: pointer;
}

.champ textarea {
  resize: vertical;
}

.champ [aria-invalid="true"] {
  border-color: var(--erreur);
  box-shadow: inset 0 0 0 1px var(--erreur);
}

.erreur {
  margin-top: .25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--erreur);
}

.erreur::before {
  content: "! ";
  font-weight: 700;
}

.erreur:empty {
  display: none;
}

/* Pot de miel, hors écran et retiré du parcours par l'attribut inert */

.pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Récapitulatif */

.recap {
  padding: 1.5rem 1.25rem;
  border-radius: var(--rayon);
  background: var(--lavande);
  scroll-margin-top: 1rem;
  animation: apparition .35s ease-out both;
}

.recap:not(.est-pret) {
  display: none;
}

.recap .etape-numero {
  background: transparent;
}

.recap-lignes {
  border-top: 1px solid var(--noir);
}

.recap-lignes > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .625rem;
  border-bottom: 1px solid var(--noir);
}

.recap-lignes dt {
  flex: none;
  font-weight: 500;
}

.recap-lignes dd {
  text-align: right;
}

.recap-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-weight: 500;
}

.recap-total strong {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.recap-tva {
  font-size: 1rem;
  text-align: right;
}

.case--accord {
  margin-top: 1.25rem;
}

.recap .btn-large {
  margin-top: 1rem;
}

/* Alertes */

.alerte {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--noir);
  border-radius: var(--rayon);
}

.alerte:empty {
  display: none;
}

.alerte--info {
  background: var(--primaire-clair);
}

.alerte--erreur {
  background: var(--erreur-fond);
  border: 2px solid var(--erreur);
}

.alerte--bloc {
  margin-bottom: 2rem;
  padding: 1.5rem;
  max-width: 44rem;
  scroll-margin-top: 1rem;
}

.alerte-titre {
  margin-bottom: .5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.alerte .btn {
  margin-top: 1rem;
}

.recap .alerte {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Confirmation */

.confirmation {
  max-width: 46rem;
  padding: 1.75rem 1.25rem;
  border-radius: var(--rayon);
  background: var(--degrade);
  animation: apparition .35s ease-out both;
  scroll-margin-top: 1rem;
}

.confirmation h3 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.confirmation-reference {
  margin-block: 1.25rem;
}

.confirmation-reference span {
  display: block;
  font-weight: 500;
}

.confirmation-reference strong {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.confirmation-mention {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--rayon);
  background: var(--blanc);
}

.confirmation-mention strong {
  font-weight: 600;
}

.confirmation-mention p + p {
  margin-top: .25rem;
}

/* La salle */

.salle {
  padding-block: 4rem;
  background: var(--primaire-clair);
}

.salle-grille {
  display: grid;
  gap: 2.5rem;
}

.faits li {
  position: relative;
  padding: 0 0 1.5rem 2rem;
}

.faits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: .9375rem;
  height: .9375rem;
  border: 2px solid var(--noir);
  border-radius: 50%;
  background: var(--blanc);
}

.faits li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(.46875rem - 1px);
  top: 1.45rem;
  bottom: -.1rem;
  width: 2px;
  background: var(--noir);
}

.faits h3 {
  font-size: 1.125rem;
  line-height: 1.5;
}

.salle-photos {
  display: grid;
  gap: 1.5rem;
}

.salle-photos img {
  width: 100%;
  border-radius: var(--rayon);
}

.salle-photos figcaption {
  margin-top: .5rem;
  font-size: 1rem;
}

/* Pied de page */

.pied {
  padding-block: 3rem;
  background: var(--degrade);
}

.pied-grille {
  display: grid;
  gap: 2rem;
}

.pied-logo {
  width: auto;
  height: 3.5rem;
  margin-bottom: .75rem;
}

.pied address {
  font-style: normal;
}

.pied a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pied-titre {
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

/* Très petits écrans et zoom fort, on allège l'en-tête */

@media (max-width: 22rem) {
  .bandeau-contenu span,
  .lien-nav {
    display: none;
  }
}

/* Tablette et plus */

@media (min-width: 30rem) {
  .choix-grille--deux {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 40rem) {
  .champs {
    grid-template-columns: 1fr 1fr;
  }

  .champ--large {
    grid-column: 1 / -1;
  }

  .choix-grille:not(.choix-grille--deux) {
    grid-template-columns: 1fr 1fr;
  }

  /* Cartes de formule en hauteur quand il y a la place */
  .choix-grille:not(.choix-grille--deux) .carte-corps {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.5rem;
    gap: .125rem 1rem;
    align-content: start;
  }

  .choix-grille:not(.choix-grille--deux) .carte-titre {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.25rem;
  }

  .choix-grille:not(.choix-grille--deux) .coche {
    grid-column: 2;
    grid-row: 1;
  }

  .choix-grille:not(.choix-grille--deux) .carte-montant {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: .75rem;
    font-size: 2.25rem;
    line-height: 1.1;
    text-align: left;
  }

  .choix-grille:not(.choix-grille--deux) .carte-tva {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
  }

  .choix-grille:not(.choix-grille--deux) .carte-detail {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--noir);
  }

  .choix-grille:not(.choix-grille--deux) .carte-detail-suite {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

@media (min-width: 48rem) {
  body {
    font-size: 1.25rem;
  }

  .lien-nav,
  .btn-nav {
    font-size: 1.125rem;
  }

  .conteneur {
    padding-inline: 2rem;
  }

  .heros {
    padding-block: 5rem 4rem;
  }

  .chapeau {
    margin-top: 1.25rem;
  }

  .reservation {
    padding-block: 5rem 6rem;
  }

  .salle {
    padding-block: 6rem;
  }

  .pied {
    padding-block: 4.5rem;
  }

  .pied-grille {
    grid-template-columns: 1fr 1.2fr 1.4fr;
    gap: 3rem;
  }

  .titre-section {
    margin-bottom: 3rem;
  }

  /* Filet vertical entre les étapes, comme les listes du site */
  .etape {
    position: relative;
    margin-bottom: 0;
    padding: 0 0 4rem 4.75rem;
  }

  .etape::before {
    content: "";
    position: absolute;
    left: calc(1.5rem - 1px);
    top: 3.5rem;
    bottom: .5rem;
    width: 2px;
    background: var(--noir);
  }

  .etape:not(:has(~ .etape:not([hidden])))::before {
    display: none;
  }

  .etape > .etape-titre {
    min-height: 3rem;
  }

  .etape > .etape-titre .etape-numero {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
  }

  .recap {
    padding: 2rem;
  }
}

@media (min-width: 64rem) {
  .conteneur {
    padding-inline: 3rem;
  }

  .heros {
    padding-block: 5.5rem 5rem;
  }

  .heros-grille {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .heros-image {
    aspect-ratio: 4 / 3;
    object-position: center;
  }

  .parcours-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 3.5rem;
    align-items: start;
  }

  .recap,
  .recap:not(.est-pret) {
    display: block;
    position: sticky;
    top: 1.5rem;
  }

  .salle-grille {
    grid-template-columns: 1fr 1.25fr;
    gap: 5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .btn-degrade:hover,
  .carte-choix input:hover:not(:disabled) + .carte-corps {
    transform: none;
  }
}

/* Contraste forcé du système, les fonds disparaissent, on garde les repères */

@media (forced-colors: active) {
  .jour--libre .jour-marque,
  .carte-choix input:checked + .carte-corps .coche {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .jour--choisi {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .carte-choix input:checked + .carte-corps {
    border-width: 3px;
    border-color: Highlight;
  }
}
