html {
  box-sizing: border-box;
  font-size: clamp(0.95rem, 0.7vw + 0.5vh, 1.125rem);
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Oswald", sans-serif;
  background: #fff;
  color: #fff;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 50px;
  text-align: center;
  margin-bottom: 50px;
}
.menu-section {
  padding: 60px 20px;
  position: relative;
  background: none;
}

.menu-section::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("../images/fond-carte.jpg") top left 36%/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}


.menu-filter {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.filter-button {
background: none;
    border: 2px solid #d0c5a9;
    color: #d0c5a9;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: "Oswald", sans-serif;
    font-size: 1.8rem;
    background-color: #0000005c;
    backdrop-filter: blur(4px);
}

.filter-button.active,
.filter-button:hover {
  background: #d0c5a9;
  color: white;
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
}

.menu-card {
  background-color: rgb(0 0 0 / 35%);
  backdrop-filter: blur(4px);
  border: solid 1px #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
  width: 20rem;
}
.menu-card:hover {
  transform: scale(1.02);
}

.menu-card img {
  width: 100%;
  height: 368px;
  object-fit: cover;
}

.menu-info {
  padding: 20px;
}

.menu-price {
  font-weight: bold;
  color: #d0c5a9;
  font-size: 16px;
}

.plate-name {
  font-size: 1.35rem;
  color: #bba98d;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.plate-desc {
  font-size: 0.9rem;
}

.menu-card__overlay {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-shadow: black 4px 4px 4px;
}

@media (min-width: 480px) {
  .container {
    max-width: 440px;
  }
}

@media (min-width: 640px) {
  .container {
    max-width: 580px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1440px;
  }
}
