main > .topInstitutsSection {
  background-image: url(../../img/instituts/top.jpeg);
  background-position: 70% 50%;
}
.searchForm {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.searchInput {
  width: 100%;
  height: 40px;
  background-color: var(--spaWhite);
  color: var(--spaPrimary);
  border: none;
  border-radius: 20px;
  font-family: var(--titles-font-family);
  font-size: var(--button-font-size);
  font-weight: 600;
  padding: 0 10px 5px 10px;
}
.searchInput::placeholder {
  color: var(--spaPrimaryTransparent);
}
.searchInput[type="button"] {
  max-width: 200px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
@media screen and (min-width: 800px) {
  .searchInput {
    max-width: 585px;
    height: 60px;
    border-radius: 30px;
    font-size: var(--subtitle-font-size);
    margin-top: 50px;
  }
  .searchInput[type="button"] {
    max-width: 310px;
  }
}
@media screen and (min-width: 800px) {
  .institutsSection {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }
}
.institutsCardsSection {
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
}
@media screen and (min-width: 800px) {
  .institutsCardsSection {
    width: fit-content;
    height: 1050px;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 0 10px 0 2px;
  }
}
.institutsList {
  width: fit-content;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 30px;
}
@media screen and (min-width: 800px) {
  .institutsList {
    flex-direction: column;
    gap: 30px;
  }
}
.institutCard {
  position: relative;
  height: 570px;
  width: 345px;
  border: none;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0px 4px 4px 2px #00000040;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  color: var(--spaGray);
  background-color: var(--spaWhite);
}
.mapContainer .leaflet-popup-content p {
  margin: 0;
}
@media screen and (min-width: 800px) {
  .institutCard {
    height: 100%;
    width: 100%;
  }
  .mapContainer .institutCard {
    height: 495px;
    width: 345px;
  }
}
.institutPicture {
  width: 100%;
  height: 180px;
  border-radius: 25px;
  object-fit: cover;
}
.institutCard > h5 {
  color: var(--spaBlack);
  font-weight: 600;
  font-size: var(--body-font-size);
  font-family: var(--body-font-family);
  text-transform: uppercase;
}
.institutCard.closedInstitut > h5 {
  color: var(--spaPrimary);
}
.institutCard p {
  margin: 0;
}
.currentInstitut {
  background-color: var(--spaPrimaryTransparent);
}
.openHoursDetails {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--spaGray);
}
.bulletPoint {
  font-size: 25px;
  vertical-align: middle;
}
.open {
  color: green;
}
.closed {
  color: var(--spaAlert);
}
#hoursDetailsContainer {
  display: none;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2100;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: #00000040;
}
#hoursDetailsContainer.open {
  display: flex;
}
#hoursDetailsContainer > .institutCard {
  height: fit-content;
  padding-bottom: 40px;
}
.iconButtonLink {
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.iconButtonLink.closeButton {
  top: 10px;
  font-size: 30px;
  transform: rotate(45deg);
}
@media screen and (min-width: 800px) {
  .hoursContainer {
    font-size: var(--xs-font-size);
  }
}
.institutCard.closedInstitut .iconButtonLink {
  display: none;
}
.institutCard .closedInfo {
  display: none;
}
.institutCard.closedInstitut .closedInfo {
  display: initial;
  width: calc(100% - 20px);
  text-align: center;
  background-color: var(--spaPrimary);
  padding: 5px;
  color: var(--spaWhite);
  border-radius: 10px;
  position: absolute;
  bottom: 20px;
}
.institutCard.closedInstitut .hoursContainer {
  display: none;
}
.mapVerticalContainer {
  height: fit-content;
}
@media screen and (min-width: 800px) {
  .mapVerticalContainer {
    height: 1050px;
    width: 100%;
    max-width: 700px;
  }
}
@media screen and (min-width: 800px) {
  .institutsSection .mapContainer {
    max-width: 700px;
    height: 700px;
    padding: 0;
  }
}
.institutsSection .candlesImage {
  width: 100%;
  max-width: 700px;
  height: 320px;
  object-position: 50% 30%;
}

/* Responsive actions: empiler les boutons pour petits écrans (<800px), côte-à-côte au-dessus */
.card-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 1299px) {
  .card-actions {
    flex-direction: column !important;
    gap: 10px;
    align-items: stretch;
  }
  .card-actions a {
    max-width: 100% !important;
    width: 100% !important;
  }
  .card-actions a span {
    font-size: 13px;
  }
}
