* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*:focus {
  outline: none;
}
html {
  scroll-behavior: smooth;
  transition: all ease 0.3s;
}
a {
  text-decoration: none;
  background-color: transparent;
  color: inherit;
}
a:hover {
  text-decoration: none;
}
header {
  height: 63px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
}
header h1 {
  font-family: var(--font-shrik);
  font-size: 30px;
  font-weight: 400;
}
.header-arrow {
  position: absolute;
  left: 15px;
  color: var(--bg-darkgrey);
  font-size: 20px;
  display: flex;
}
nav {
  height: 50px;
  background: var(--bg-grey);
  color: var(--bg-darkgrey);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
nav h3 {
  font-weight: 500;
  font-size: 16px;
}
body {
  background: var(--bg-white);
  color: var(--color-black);
  font-family: var(--font-rob);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  transition: all ease 0.3s;
}
.top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 25px;
  align-items: center;
  background: var(--bg-lightgrey);
}
.top h1 {
  text-align: center;
}
.top p {
  text-align: center;
  font-weight: 300;
}
.button-gradient {
  background: var(--pink-gradient);
  height: 50px;
  border-radius: 1000px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all ease 0.3s;
  padding: 0 25px;
  box-shadow: var(--btn-shadow);
}
.button-gradient span {
  color: var(--bg-white);
}
.button-gradient:hover {
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(115%);
}
.fonctionnement {
  padding: 50px 15px;
}
.fonctionnement-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1440px;
  min-width: 320px;
  margin: auto;
}
.fonctionnement-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fonctionnement-item-block {
  display: flex;
  align-items: center;
  width: 100%;
}
.fonctionnement-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: var(--bg-lightgrey);
  border-radius: 20px;
  height: 70px;
  box-shadow: var(--shadow);
  width: 100%;
  padding: 0 25px;
}
.fonctionnement-item i {
  color: var(--bg-gray);
  transition: all ease 0.3s;
}
.fonctionnement-item-block:hover .fonctionnement-item i {
  color: var(--bg-purple);
}
.fonctionnement-item-count {
  background: var(--bg-purple);
  color: var(--bg-white);
  height: 24px !important;
  min-height: 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  border-radius: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-right: -12px;
  z-index: 1;
}
.restaurants {
  background: var(--bg-lightgrey);
}
.restaurants-section {
  background: var(--bg-lightgrey);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 50px 15px;
  max-width: 1440px;
  min-width: 320px;
  margin: auto;
}
.restaurants-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.restaurant-item {
  border-radius: 15px;
  background: var(--bg-white);
  overflow: hidden;
}
.restaurant-item-img {
  position: relative;
  height: 200px;
}
.new-restaurant {
  top: 15px;
  right: 15px;
  position: absolute;
  background: var(--bg-lightgreen);
  color: var(--bg-green);
  width: 80px;
  height: 30px;
  border-radius: 2px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.restaurant-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.restaurant-item-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}
.restaurant-item-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fa-heart {
  position: relative;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.3s;
  transition: all ease 0.3s;
}
.restaurant-item-bottom-heart {
  display: flex;
  position: relative;
  transition: all ease 0.3s;
}
.restaurant-item-bottom-heart .heart-solid {
  opacity: 0;
  position: absolute;
  transition: all ease 0.3s;
}
.restaurant-item-bottom-heart:hover > .heart-solid {
  opacity: 1;
  transition: all ease 0.3s;
}
.restaurant-item-bottom-heart:hover > .heart-regular {
  opacity: 0;
  transition: all ease 0.3s;
}
.heart-solid {
  background: var(--heart-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.top-restaurant {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.restaurant {
  background: var(--bg-lightgrey);
  padding: 30px 15px;
  z-index: 1;
  border-top-right-radius: 40px;
  border-top-left-radius: 40px;
  margin-top: -60px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  min-width: 320px;
  margin-left: auto;
  margin-right: auto;
  gap: 35px;
}
.restaurant-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.restaurant-header h1 {
  font-family: var(--font-shrik);
}
.restaurant-header .restaurant-item-bottom-heart {
  margin-right: 20px;
}
.plats-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.plats-header h3 {
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
}
.plats-divider {
  height: 3px;
  width: 40px;
  background: var(--bg-lightgreen);
}
.plats-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.plats-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.plats-item {
  display: flex;
  background: var(--bg-lightgrey);
  border-radius: 20px;
  height: 70px;
  box-shadow: var(--shadow);
  flex-direction: row;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.plats-item-left h3 {
  font-size: 18px;
  font-weight: 500;
  max-width: 290px;
  transition: all ease 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plats-item-bottom {
  display: flex;
  justify-content: space-between;
}
.plats-item-bottom span {
  font-size: 15px;
  font-weight: 300;
  max-width: 290px;
  white-space: nowrap;
  overflow: hidden;
  transition: all ease 0.3s;
  text-overflow: ellipsis;
}
.plats-item:hover > .plats-item-left > .plats-item-bottom span {
  max-width: calc(290px - 99px);
}
.plats-item:hover > .plats-item-left > h3 {
  max-width: calc(290px - 99px);
}
.plats-item-bottom-price span {
  font-size: 15px;
  font-weight: 500;
}
.plats-item-left {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  padding: 15px;
}
.plats-item-bottom-check {
  background: var(--bg-lightgreen);
  color: var(--bg-white);
  min-width: 59px;
  display: flex;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  margin-right: -59px;
  transition: all ease 0.3s;
}
.plats-item:hover > .plats-item-bottom-check {
  margin-right: 0px;
}
.btn-bottom {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.btn-bottom .button-gradient {
  width: 55%;
}
footer {
  background: var(--bg-darkgrey);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.logo-text {
  color: var(--bg-white);
  font-family: var(--font-shrik);
  font-size: 27px;
}
.footer-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--bg-white);
  gap: 11px;
}
.footer-link i {
  width: 20px;
}
footer img {
  filter: var(--svg-white);
}
@media (min-width: 769px) {
  header {
    height: 90px;
  }
  .fonctionnement-items {
    flex-direction: row;
  }
  .restaurants-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
  }
  .restaurant {
    padding-left: 10%;
    padding-right: 10%;
  }
  .restaurant-header {
    justify-content: center;
    gap: 40px;
  }
  .restaurant-header .restaurant-item-bottom-heart {
    margin-right: 0;
  }
  .plats-item-left h3 {
    max-width: 100%;
  }
  .plats-item:hover > .plats-item-left > h3 {
    max-width: 100%;
  }
  .plats-item-bottom span {
    max-width: 100%;
  }
  .plats-item:hover > .plats-item-left > .plats-item-bottom span {
    max-width: 100%;
  }
  .btn-bottom .button-gradient {
    width: 20%;
  }
  footer {
    flex-direction: row-reverse;
    gap: 90px;
    padding-right: 70px;
  }
  .footer-links {
    flex-direction: row;
    gap: 40px;
  }
  .footer-links-block {
    gap: 11px;
    flex-direction: row;
  }
}
:root {
  --bg-white: #fdfdfd;
  --bg-lightgreen: #99e2d0;
  --bg-green: #008766;
  --bg-lightblue: #89c8fa;
  --bg-blue: #003a68;
  --bg-purple: #9356dc;
  --bg-gray: #7e7e7e;
  --bg-lightgrey: #f6f6f6;
  --bg-grey: #eaeaea;
  --bg-darkgrey: #353535;
  --color-lightblack: #101010;
  --color-black: #000000;
  --font-shrik: "Shrikhand", serif;
  --font-rob: "Roboto", serif;
  --svg-white: invert(100%) sepia(0%) saturate(7478%) hue-rotate(25deg)
    brightness(120%) contrast(95%);
  --pink-gradient: linear-gradient(0deg, #9356dc 0%, #ff79da 100%);
  --heart-gradient: linear-gradient(to top, #ff79da, #9356dc);
  --shadow: 4px 0 15px 0 rgba(0, 0, 0, 0.15);
  --card-shadow: 4px 0 15px 0 rgba(0, 0, 0, 0.1);
  --btn-shadow: 4px 0 10px 0 rgba(0, 0, 0, 0.25);
  --btn-shadow-hover: 4px 0 15px 0 rgba(0, 0, 0, 0.35);
}
