@font-face {
  font-family: "FuturaLight";
  src: url("../../fonts/futura_light.ttf");
}

@font-face {
  font-family: "FuturaMedium";
  src: url("../../fonts/futura_medium.ttf");
}

@font-face {
  font-family: "FuturaHeavy";
  src: url("../../fonts/futura_heavy.ttf");
}

body {
  background-color: rgba(0, 0, 0, 0.1);
}

/* ---------------------------------- Lien pour revenir au portfolio ----------------------- */

.container-all {
  display: flex;
  align-items: flex-start;
  margin: 100px 2%;
  flex-wrap: wrap;
}

.retourner-portfolio {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  font-family: "FuturaLight";
  font-size: 1.5em;
  color: rgba(0, 0, 0, 0.5);
}

.retourner-portfolio svg {
  width: 20px;
  margin-right: 0.7em;
}

/* --------------------------------- Formulaire ------------------------------------- */
form {
  display: flex;
  justify-content: center;
  flex: 2;
}

.form-container {
  display: flex;
  align-items: flex-start !important;
  flex: 1;
  max-width: 800px;
}

.search-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 2;
  position: relative;
}

#search {
  align-items: center;
  justify-content: flex-start;
  padding: 1em;
  /* flex: 2; */
  margin: 0;
  text-align: left;
  outline: 0;
  border: 10px solid #f7f7f7;
  z-index: 2;
  border-radius: 5px;
  font-size: 1.5em;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.19);
}

.bouton-container {
  display: flex;
  margin-left: 0.7em;
  flex: 1;
  justify-content: center;
}

#search-button {
  border: none;
  background-color: #0089d4;
  color: white;
  margin: 10px 0;
  font-size: 1.5em;
  border-radius: 5px;
  padding: 1em;
}

.suggestions {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.suggestions li {
  background: white;
  list-style: none;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.14);
  margin: 0 10px;
  padding: 20px;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.suggestions li:first-child {
  /* background-color: rgba(0, 0, 0, 0.15); */
}

.suggestions li::first-letter {
  text-transform: capitalize;
}
.suggestions li:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

.noSuggestions {
  color: rgba(0, 0, 0, 0.3);
}

/* .suggestions li:nth-child(even) {
  transform: perspective(100px) rotateX(3deg) translateY(2px) scale(1.001);
  background: linear-gradient(to bottom, #ffffff 0%, #efefef 100%);
}

.suggestions li:nth-child(odd) {
  transform: perspective(100px) rotateX(-3deg) translateY(3px);
  background: linear-gradient(to top, #ffffff 0%, #efefef 100%);
} */

/* ---------------------------- Element de résultat ---------------------------- */
h1 {
  text-transform: capitalize;
  font-weight: 400;
}

.container {
  flex: 1;
  margin-left: 1em;
  padding: 1em;
  border: 10px solid #f7f7f7;
  background-color: #fff;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.location-header {
  display: flex;
  flex-direction: column;
}

.location-header h3 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
}

.location-title {
  justify-content: space-between;
  align-content: center;
  display: flex;
}

.location-title h1 {
  font-size: 2em;
  margin: 0;
}

.location-title h2 {
  font-size: 2em;
  margin: 0;
  font-weight: 400;
}

.location-body {
  text-align: center;
}

.location-body img {
  max-width: 20%;
}

.location-body h4 {
  font-size: 1.5em;
  margin: 0.5em 0;
  font-weight: 400;
  text-transform: lowercase;
}

.location-body h4::first-letter {
  text-transform: capitalize;
}

.infosVille {
  display: flex;
}

/* -------------------------- Media Queries -------------------------- */

/* ######################################## Extra small devices (portrait phones, less than 576px) ####################################################*/

@media (max-width: 575.98px) {
  .container-all {
    /* width: 90%; */
  }

  .bouton-container {
    flex-direction: column;
    flex: 1;
    margin: 1em;
  }

  #search-button {
    font-size: 1em;
    margin: 5px 1em 5px 1em;
  }

  .form-container {
  }

  .container {
    margin: 0 1em 1em 1em;
    flex-basis: auto;
    align-self: flex-start;
    /* flex:  */
    order: -1;
  }

  .location-header h3 {
    font-size: 1em;
  }

  .location-title h1 {
    font-size: 1.5em;
  }

  .location-title h2 {
    font-size: 1.5em;
  }

  .location-body h4 {
    font-size: 1em;
  }

  form {
    margin: 1em 0 1em 1em;
    text-align: center;
    display: flex;
    /* max-width: 100px; */
    flex: 1;
  }

  #search {
    font-size: 1em;
    width: 75%;
    flex: 1;
    border: 5px solid #f7f7f7;
    padding: 1em;
  }
}

/* ######################################## Small devices (landscape phones, 576px and up) ######################################## */

@media (min-width: 576px) and (max-width: 767.98px) {
  .container-all {
    /* width: 90%; */
  }

  .bouton-container {
    flex-direction: column;
    flex: 1;
    margin: 1em;
  }

  #search-button {
    font-size: 1em;
    margin: 5px 1em 5px 1em;
  }

  .form-container {
    flex-basis: auto;
  }

  .container {
    margin: 0 1em 1em 1em;
    flex-basis: auto;
    align-self: flex-start;
    /* flex:  */
    order: -1;
  }

  form {
    margin: 1em 0 1em 1em;
    text-align: center;
    display: flex;
    /* max-width: 100px; */
    flex: 2;
  }

  #search {
    font-size: 1em;
    width: 75%;
    flex: 1;
    border: 5px solid #f7f7f7;
    padding: 1em;
  }
}

/* ######################################## Medium devices (tablets, 768px and up) ######################################## */

@media (min-width: 768px) and (max-width: 991.98px) {
  .container-all {
    /* width: 90%; */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bouton-container {
    flex-direction: column;
    flex: 1;
    margin: 1em;
  }

  #search-button {
    font-size: 1em;
    margin: 5px 1em 5px 1em;
  }

  .form-container {
    flex-basis: auto;
  }

  .container {
    margin: 0 1em 1em 1em;
    flex-basis: auto;
    /* align-self: flex-start; */
    /* flex:  */
    order: -1;
  }

  form {
    margin: 1em 0 1em 1em;
    text-align: center;
    display: flex;
    /* max-width: 100px; */
    flex: 2;
  }

  #search {
    font-size: 1em;
    /* width: 75%; */
    flex: 1;
    border: 5px solid #f7f7f7;
    padding: 1em;
  }
}

/* ######################################## Large devices (desktops, 992px and up) ######################################## */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container-all {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bouton-container {
    flex-direction: column;
    flex: 1;
    margin: 1em;
  }

  #search-button {
    font-size: 1em;
    margin: 5px 1em 5px 1em;
  }

  .form-container {
    flex-basis: auto;
    flex: 1;
  }

  .location-body {
    height: 100%;
  }

  .container {
    margin: 0 1em 1em 1em;
    /* flex-basis: auto; */
    /* align-self: flex-start; */
    /* flex: 2; */
    /* flex-grow: 2; */
    order: -1;
  }

  form {
    margin: 1em 0 1em 1em;
    text-align: center;
    display: flex;
    /* max-width: 100px; */
    flex: 2;
  }

  #search {
    font-size: 1em;
    width: 75%;
    flex: 1;
    border: 5px solid #f7f7f7;
    padding: 1em;
  }
}

/* ######################################## Extra large devices (large desktops, 1200px and up) ######################################## */

@media (min-width: 1200px) {
}

/* @media (max-width: 1024px) {
  .container-all {
    border: solid 1px red;
  }

  .bouton-container {
    flex-direction: column;
    margin-left: 0.7em;
    margin: 1em;
  }

  .container {
    border: solid 1px red;
    margin: 0 1em 1em 1em;
    flex-basis: auto;
  }

  form {
    border: solid 1px red;
    text-align: center;
    margin: 1em;
    display: flex;
  }
} */
