@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&family=Shrikhand&display=swap");
@keyframes card-apparition {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes point {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-30px);
  }
}
@keyframes loader {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    z-index: -1;
  }
}
* {
  font-family: "Roboto", sans-serif;
  text-decoration: none;
  color: black;
}

body {
  background-color: #f7f7f7;
  margin: 0;
}

.button {
  background: linear-gradient(172deg, #FF79DA 0%, #9356DC 100%);
  width: 220px;
  height: 50px;
  border-radius: 45px;
  border: none;
  box-shadow: 0px 0px 7px rgba(71, 31, 19, 0.58);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: opacity 250ms ease-in-out;
}
.button__text {
  color: white;
  font-size: 1em;
}
.button:hover {
  opacity: 0.8;
  box-shadow: 0px 0px 10px black;
}

.loader {
  height: 100%;
  width: 100%;
  background-color: white;
  animation: loader 0.5s ease-in-out 2.5s forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  cursor: wait;
  top: 0;
  left: 0;
  z-index: 2;
}
.loader__text {
  font-family: "Shrikhand", cursive;
  font-size: 7vw;
  text-align: center;
  background: linear-gradient(172deg, #FF79DA 0%, #9356DC 100%);
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media all and (min-width: 992px) {
  .loader__text {
    font-size: 5vw;
  }
}
.loader__ellipsis {
  width: 100%;
  display: flex;
  justify-content: center;
}
.loader__ellipsis__point {
  width: 4vw;
  height: 4vw;
  background: linear-gradient(172deg, #FF79DA 0%, #9356DC 100%);
  border-radius: 50%;
  margin: 10% 5%;
  animation: point 1.2s ease-in-out backwards infinite alternate;
}
@media all and (min-width: 992px) {
  .loader__ellipsis__point {
    width: 3vw;
    height: 3vw;
    margin: 10% 2%;
  }
}
.loader__ellipsis__point--1 {
  animation-delay: 0.4s;
}
.loader__ellipsis__point--2 {
  animation-delay: 0.8s;
}
.loader__ellipsis__point--3 {
  animation-delay: 1.2s;
}

.button {
  background: linear-gradient(172deg, #FF79DA 0%, #9356DC 100%);
  width: 220px;
  height: 50px;
  border-radius: 45px;
  border: none;
  box-shadow: 0px 0px 7px rgba(71, 31, 19, 0.58);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: opacity 250ms ease-in-out;
}
.button__text {
  color: white;
  font-size: 1em;
}
.button:hover {
  opacity: 0.8;
  box-shadow: 0px 0px 10px black;
}

.localisation {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ebebeb;
  box-shadow: 0px 14px 8px -14px #a8a7a7 inset;
}
.localisation__icon {
  padding-right: 15px;
  transform: translateX(25px);
}
.localisation__input {
  font-weight: 500;
  font-size: 1em;
  border: none;
  background: #ebebeb;
  transform: translateX(25px);
}

.abstract {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.abstract__title {
  font-size: 1.45em;
  margin: 40px 15% 0 15%;
  font-weight: 700;
}
.abstract__text {
  font-size: 1.1em;
  margin: 10px 5% 30px 5%;
  font-weight: 300;
}
.abstract__button {
  margin-bottom: 55px;
}

.operation {
  background-color: white;
  padding-left: 5.3%;
  display: flex;
  flex-direction: column;
  padding-bottom: 45px;
}
.operation__title {
  font-size: 1.45em;
  padding-top: 28px;
  padding-bottom: 10px;
  width: 100%;
}
.operation__button {
  height: 75px;
  width: 92%;
  background: #f7f7f7;
  border-radius: 20px;
  margin-bottom: 25px;
  margin-left: 15px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  box-shadow: rgb(51 51 51 / 12%) 0px 7px 7px;
}
.operation__button__number {
  transform: translateX(-15px);
  border-radius: 50%;
  background-color: #9356DC;
  color: white;
  width: 25px;
  height: 21px;
  text-align: center;
  padding-top: 4px;
  font-size: 0.9em;
}
.operation__button__icon {
  width: 25px;
  font-size: 1.2em;
  color: #858585;
  z-index: 1;
}
.operation__button__icon--hover {
  width: 25px;
  color: #9356DC;
  font-size: 1.2em;
  z-index: 1;
  transform: translateX(-99%);
  opacity: 0;
}
.operation__button__text {
  font-weight: 500;
}
.operation__button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: #f2eafb;
  opacity: 0;
  z-index: -1;
  transition: opacity 250ms;
  border-radius: 20px;
}
.operation__button:hover::after {
  opacity: 1;
}
.operation__button:hover .operation__button__icon--hover {
  opacity: 1;
}
@media all and (min-width: 992px) {
  .operation__button {
    width: 30%;
    margin-bottom: 50px;
  }
}
@media all and (min-width: 992px) {
  .operation {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    padding-right: 5%;
  }
}

.restaurants {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-left: 5.3%;
  padding-bottom: 20px;
}
.restaurants__title {
  margin-top: 60px;
  width: 100%;
}
.card__img {
  height: 170px;
  object-fit: cover;
  object-position: 0% 100%;
  flex-shrink: 0;  
}

#note_enchantee {
  height: 170px;
  object-fit: cover;
  object-position: 0% 60%;
  flex-shrink: 0;  
}

@media all and (min-width: 768px) {
  .restaurants {
    flex-direction: row;
    justify-content: space-between;
    padding-right: 5%;
  }
}

.card {
  height: 250px;
  width: 94%;
  margin-bottom: 20px;
  margin-right: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  position: relative;
  box-shadow: rgb(51 51 51 / 12%) 0px 7px 7px;
}

@media only screen and (min-width : 1224px){
.card__img {
  height: 170px;
  object-fit: cover;
  object-position: 0% 60%;
  flex-shrink: 0;  
}  }

.card__body {
  background: white;
  height: 75px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-left: 15px;
  z-index: 0;
}
.card__body__title {
  margin: 18px 0 0 0;
}
.card__body__text {
  margin: 3px 0;
  font-size: 1em;
  font-weight: 300;
}
.card__body__favorite {
  font-size: 1.6em;
  position: absolute;
  top: 35%;
  left: 85%;
  display: flex;
}
.card__body__favorite--hover {
  transform: translateX(-99%);
  background: #9356DC;
  background: -webkit-linear-gradient(to bottom, #9356DC 0%, #FF79DA 100%);
  background: -moz-linear-gradient(to bottom, #9356DC 0%, #FF79DA 100%);
  background: linear-gradient(to bottom, #9356DC 0%, #FF79DA 100%);
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
  transform-origin: bottom;
}
.card__body__favorite:hover .card__body__favorite--hover, .card__body__favorite:focus .card__body__favorite--hover {
  opacity: 1;
}
.card__new {
  position: absolute;
  top: 5.6%;
  left: 72%;
  height: 12%;
  width: 23%;
  background-color: #99E2D0;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card__new__text {
  color: #278870;
  font-weight: 500;
  font-size: 0.85em;
}
@media all and (min-width: 768px) {
  .card {
    width: 45%;
  }
}

.footer {
  background-color: #353535;
  height: 173px;
  display: flex;
  flex-direction: column;
  padding-top: 25px;
  padding-left: 6%;
  font-size: 1em;
}
.footer__title {
  color: white;
  font-family: "Shrikhand", cursive;
  font-size: 1.1em;
  margin-bottom: 20px;
}
.footer__icon {
  color: white;
  font-size: 1em;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-size: 0.75em;
  width: 15px;
}
.footer__partner {
  color: white;
  font-size: 1em;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.footer__link {
  color: white;
  font-size: 1em;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 300;
}

.header {
  width: 100%;
  height: 60px;
  margin: 0;
  margin-top: 0;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.header__arrow {
  position: absolute;
  top: 35%;
  left: 5%;
  color: black;
}
.header__title {
  font-size: 1.85em;
  font-weight: 500;
  font-family: "Shrikhand", cursive;
  letter-spacing: 0.5px;
}

.menu {
  width: 97%;
  height: 68px;
  margin-bottom: 17px;
  background-color: white;
  position: relative;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  overflow: hidden;
  padding-left: 3%;
  opacity: 0;
  animation: card-apparition 1s ease-in-out both;
  box-shadow: rgb(51 51 51 / 15%) 0px 10px 25px;
}
.menu--1 {
  animation-delay: 0.075s;
}
.menu--2 {
  animation-delay: 0.15s;
}
.menu--3 {
  animation-delay: 0.225s;
}
.menu--4 {
  animation-delay: 0.3s;
}
.menu--5 {
  animation-delay: 0.375s;
}
.menu--6 {
  animation-delay: 0.45s;
}
.menu--7 {
  animation-delay: 0.525s;
}
.menu--8 {
  animation-delay: 0.6s;
}
.menu--9 {
  animation-delay: 0.675s;
}
.menu--10 {
  animation-delay: 0.75s;
}
.menu__title {
  margin: 15px 0 5px 0;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
  font-weight: 500;
  width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: width 0.3s ease-in-out;
}
.menu__text {
  text-align: start;
  font-weight: 300;
  font-size: 1em;
  margin: 0;
  padding-bottom: 5px;
  width: 87%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: width 0.3s ease-in-out;
}
.menu__price {
  font-weight: bold;
  display: block;
  position: relative;
  font-size: 0.9em;
  height: 100%;
  right: 0;
  text-align: end;
  padding-top: 41px;
  padding-right: 20px;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
}
.menu__checked {
  background-color: #99E2D0;
  height: 100%;
  width: 60px;
  right: 0;
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
  transform-origin: 100% 50%;
}
.menu__checked i {
  color: white;
  font-size: 20px;
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}
.menu:hover .menu__title, .menu:active .menu__title {
  width: 80%;
}
.menu:hover .menu__text, .menu:active .menu__text {
  width: 65%;
}
.menu:hover .menu__price, .menu:active .menu__price {
  transform: translateX(-60px);
}
.menu:hover .menu__checked, .menu:active .menu__checked {
  transform: scaleX(1);
}
.menu:hover .menu__checked i, .menu:active .menu__checked i {
  transform: rotate(360deg);
}

.mainPicture {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.restaurant {
  padding-left: 5%;
  width: 95%;
  transform: translateY(-50px);
  background-color: #f7f7f7;
  border-radius: 45px 45px 0 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  position: relative;
}
.restaurant__name {
  margin: 30px 0 20px 0;
  font-size: 1.7em;
  font-family: "Shrikhand", cursive;
  font-weight: 500;
  width: 100%;
}
.restaurant__favorite {
  position: absolute;
  display: flex;
  top: 3%;
  left: 85%;
  font-size: 1.7em;
}
.restaurant__favorite--hover {
  transform: translateX(-99%);
  background: #9356DC;
  background: -webkit-linear-gradient(to bottom, #9356DC 0%, #FF79DA 100%);
  background: -moz-linear-gradient(to bottom, #9356DC 0%, #FF79DA 100%);
  background: linear-gradient(to bottom, #9356DC 0%, #FF79DA 100%);
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
  transform-origin: bottom;
}
.restaurant__favorite:hover .restaurant__favorite--hover, .restaurant__favorite:focus .restaurant__favorite--hover {
  opacity: 1;
}
@media all and (min-width: 992px) {
  .restaurant__favorite {
    top: 4%;
  }
}
@media all and (min-width: 1185px) {
  .restaurant__favorite {
    top: 6%;
  }
}
@media all and (min-width: 992px) {
  .restaurant {
    flex-direction: row;
    justify-content: space-around;
  }
}

.meal-step {
  width: 94%;
  display: flex;
  flex-direction: column;
}
.meal-step__title {
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 400;
  position: relative;
  padding-bottom: 8px;
}
.meal-step__title::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  width: 40px;
  border-bottom: 3px solid #99E2D0;
}
@media all and (min-width: 992px) {
  .meal-step {
    width: 30%;
    min-width: 350px;
    margin-right: 25px;
  }
}

.button-container {
  margin-top: 30px;
  padding-right: 7%;
  width: 93%;
  display: flex;
  justify-content: center;
}