@font-face {
  font-family: "Syne Mono";
  src: url(/fonts/SyneMono-Regular.ttf);
}

body {
  background-color: rgba(4, 62, 47, 1);
  color: #fffdd0;
  font-family: "Syne Mono";
  margin: 0rem;
  padding: 0;
  max-height: 180vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #fffdd0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #fffdd0;
  text-decoration: none;
  position: relative;
  opacity: 0.5;
  transition: opacity 1s ease;
}

nav ul li a:hover {
  opacity: 1;
}

nav ul li a.active {
  opacity: 1;
}

a {
  color: #fffdd0;
  text-decoration: none;
}

.contact {
  position: absolute;
  right: 4rem;
}

h1 {
  font-weight: normal;
  font-size: 2rem;
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sectionduhaut {
  text-align: left;
  max-width: 50rem;
  height: 45vh;
  margin: auto;
  padding: auto;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.sectiondubas {
  text-align: left;
  max-width: 50rem;
  height: 40vh;
  margin: auto;
  padding: auto;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.separator {
  margin: 0 auto;
  border: none;
  height: 1px;
  background-color: #fffdd0;
  width: 100%;
}

.sectionducontact {
  text-align: center;
  max-width: 50rem;
  height: 40vh;
  margin: auto;
  padding: auto;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-links {
  display: flex;
  flex-direction: row;
  gap: 35rem;
  font-size: 1rem;
  text-align: left;
}

.contact-links p {
  font-size: 1rem;
}

.contact-links a {
  color: #fffdd0;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.contact-links a:hover {
  opacity: 1;
}

/* === SECTION STORE === */

.nb {
  font-size: 2rem;
  font-weight: bold;
}

.sectionduhaut-produits {
  width: 100vw;
  height: 45vh;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-container {
  display: flex;
}

.produit-item {
  flex: 0 0 40%;
  position: relative;
  display: block;
}

.produit {
  position: relative;
  width: 100%;
  height: auto;
}

.produit img {
  width: 100%;
  height: 100%;
  max-height: 50vh;
  object-fit: cover;
  gap: 0rem;
  border-right: 1px solid #fffdd0;
  border-left: 1px solid #fffdd0;
}

.produit-info {
  font-size: 0.7rem;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.5rem;
  z-index: 90;
}

.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
  will-change: transform;
}

.desktop-menu {
  display: block;
}
.burger,
.mobile-menu {
  display: none;
}

/* === MEDIA QUERIES === */

@media (max-width: 1200px) {
  .sectionduhaut {
    max-width: 40rem;
    font-size: 0.9rem;
  }

  .sectiondubas {
    max-width: 40rem;
    font-size: 0.9rem;
  }

  .sectionducontact {
    max-width: 40rem;
    font-size: 0.9rem;
  }

  .contact-links {
    gap: 25rem;
  }
}

@media (max-height: 700px) {
  .sectionduhaut {
    font-size: 0.9rem;
  }

  .sectiondubas {
    font-size: 0.9rem;
  }

  .sectionducontact {
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .sectionduhaut {
    max-width: 20rem;
    font-size: 0.7rem;
  }

  .sectiondubas {
    max-width: 20rem;
    font-size: 0.7rem;
  }

  .sectionducontact {
    max-width: 20rem;
    font-size: 0.7rem;
  }

  .contact-links {
    gap: 10rem;
  }

  .contact-links p {
    font-size: 0.7rem;
  }

  .produit-item {
    flex: 0 0 100%;
    position: relative;
    display: block;
  }

  .produit {
    position: relative;
    width: 100%;
    height: auto;
  }

  .produit img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    gap: 0rem;
  }

  .produit-info {
    font-size: 0.7rem;
  }

  .desktop-menu {
    display: none;
  }

  .burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    font-family: "Syne Mono";
    left: 1rem;
    top: 2.1rem;
    z-index: 1000;
    color: #fffdd0;
    font-size: 1rem;
    transition: opacity 0.3s ease;
  }

  .burger:hover {
    opacity: 0.7;
  }

  .burger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #fffdd0;
    transition: 0.3s;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding-top: 4rem;
    z-index: 999;
  }

  .mobile-menu.active {
    opacity: 1;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu ul {
    list-style: none;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: left;
  }
  .mobile-menu ul li {
    margin: 1rem 0;
  }
  .mobile-menu ul li a {
    color: #fffdd0;
    text-decoration: none;
    font-size: 1rem;
  }

  header {
    padding: 3rem;
  }
}
