@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200&family=Raleway:wght@100;200;300;400;500;600;700;800;900&family=Roboto:wght@300;400;500&family=Source+Sans+Pro:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200&family=Raleway:wght@100;200;300;400;500;600;700;800;900&family=Roboto:wght@300;400;500&family=Shrikhand&family=Source+Sans+Pro:wght@300&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", "sans-serif";
  overflow-x: hidden;
}

#logo {
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-top: 30px;
  width: 180px;
}

/* LOADER */
.loader{
  background-color: white;
  height: 100vh;
  position: fixed;
  display: flex;
  place-items: center;
  justify-content: center;
  inset: 0;
  z-index: 2;
  opacity: 0.8;
  animation: vanishing 100ms 2s forwards; 
  animation-duration: 0.5ms; 
}

.loader::before{
  content: "";
  height: 100px;
  width: 100px;
  border-top: solid #99e2d0 15px;
  border-left: solid #99e2d0 10px;
  border-bottom: solid #99e2d0 5px;
  border-right: solid 10px transparent;
  border-radius: 50%;
  animation: spin 1s ease-in-out;
  animation-iteration-count: 2;
}



@keyframes vanishing {
  from{
    transform: scaleX(1);
  }

  to{
    transform: scaleY(0);
  }
  
}

@keyframes spin {
   from{
    transform: rotate(0deg);
   }

  to{
    transform: rotate(360deg);
  }
  
}

header {
  padding-bottom: 20px;
  padding-top: 15px;
}

.shadow {
  box-shadow: 0px 3px 3px 1px grey;
}

/* LOCALISATION */
main .location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #e6e6e6;
  text-align: center;
  opacity: 0.8;
  font-size: 12px;
}

main .location i {
  font-size: 18px;
}

/* RECHERCHE */
.explore {
  text-align: center;
  background-color: #f2f2f2;
  padding-bottom: 50px;
  padding-top: 15px;
}

.explore h2 {
  margin-top: 10px;
  font-size: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

.explore p {
  font-weight: 100;
  font-size: 15px;
  margin: 10px;
}

.explore button {
  color: white;
  font-size: medium;
  border: none;
  padding: 18px;
  width: 225px;
  height: 50px;
  padding-top: 15px;
  border-radius: 32px;
  box-shadow: 2px 5px 15px -7px black;
  margin-top: 15px;
  background-image: linear-gradient(
    to  top left,
    rgba(147, 86, 220, 0.9),
    rgba(225, 121, 218, 0.9) 70%
    
  );
  cursor: pointer;
}

.explore button:hover {
  background-image: linear-gradient(
    to top left,
    rgba(225, 121, 218, 0.9) ,
    rgba(147, 86, 220, 0.9)
  );
}

/* FONCTIONNEMENT */
.functioning h2 {
  margin-left: 17px;
}

.functioning ol {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-right: 25px;
  padding-left: 30px;
}

.functioning li {
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 16px;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0px 3px 5px 1px rgb(211, 211, 211);
  list-style-type: none;
  cursor: pointer;
}

.functioning li:hover {
  background-color: #f2eafb;
}

.step {
  position: relative;
  left: -35px;
  border: solid 1px rgba(147, 86, 220, 0.9);
  padding: 3px 7px 3px 7px;
  font-size: 14px;
  border-radius: 100%;
  color: white;
  background-color: rgba(147, 86, 220, 0.9);
}

li i {
  margin-right: 20px;
  color: gray;
  font-size: 20px;
}

li:hover i {
  color: rgba(147, 86, 220, 0.9);
}

@media screen and (min-width: 600px) {

  h2 {
    text-align: center;
    margin-left: 0px;
  }

  .functioning ol {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
  }
}

/* RESTAURANTS */

.restaurants {
  background-color: #f2f2f2;
  margin-top: 50px;
  padding-bottom: 50px;
}

.restaurants h2 {
  margin-left: 17px;
  padding-top: 35px;
  margin-bottom: 0;
  font-size: 22px;
}

.restauCard {
  display: flex;
  flex-direction: column;
}

.new-card {
  height: 230px;
  width: 90%;
  margin: 15px;
  border-radius: 16px 16px 16px 16px;
  background: white;
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.1);
}

.new-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.new-card::before {
  content: "Nouveau";
  position: relative;
  height: 25px;
  width: 70px;
  background-color: #99e2d0;
  color: rgb(19, 134, 104);
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  right: 8%;
  border-radius: 2px 2px 2px 2px;
  z-index: 1;
  margin-left: 85%;
}

.new-card img {
  position: relative;
  top: -45px;
}

.new-card .text-card {
  margin-top: -45px;
}

.card {
  height: 230px;
  width: 90%;
  margin: 15px;
  border-radius: 16px 16px 16px 16px;
  background: white;
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.1);
}

.card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-card h4 {
  margin: 9px;
}

.text-card p {
  margin: 9px;
  font-size: 14px;
}

.restauCard .like {
  font-size: 25px;
  position: relative;
  bottom: 50px;
  left: 88%;
  width: 60px;
}

.restauCard .fa-solid {
  color: transparent;
  background: linear-gradient(
    to top,
    rgba(147, 86, 220, 0.9),
    rgba(225, 121, 218, 0.9)
  );
  background-clip: text;
  -webkit-background-clip: text;
  opacity: 0;
  position: relative;
  right: 31px;
  transition: all, 0.8s;
}

.like .fa-solid:hover {
  opacity: 1;
}

@media screen and (min-width: 700px) {
  
  .restauCard {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
  }
  .new-card {
    width: 40vw;
  }
  .new-card::before {
    margin-left: 75%;
  }
  .card {
    width: 40vw;
  }
}

@media screen and (min-width: 1200px) {

  .new-card {
    width: 20vw;
  }

  .card {
    width: 20vw;
  }
}

/* FOOTER */

footer {
  background-color: rgb(56, 56, 56);
  height: 220px;
}

footer img {
  filter: brightness(50);
  width: 100px;
  margin-left: 30px;
  margin-top: 25px;
  margin-bottom: 15px;
}

footer p {
  margin: 9px;
  padding-left: 20px;
  color: white;
}
