:root {
  /* Colors - Black & Gold Premium */
  --bg-primary: #0a0a0a;
  --bg-secondary: #050505;
  --bg-tertiary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;

  --accent-color: #c5a059;
  /* Doré / Or premium */
  --accent-hover: #e0b86d;

  --border-color: #2a2a2a;
  --border-color-hover: #c5a059;

  /* Layout & Spacing */
  --max-width: 1200px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 4px;
  /* Un peu plus carré style premium */
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.9);

  /* Layout Z-index */
  --z-nav: 100;
  --z-drawer: 200;
  --z-modal: 300;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Background Optimization */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://i.ibb.co/b5qsv1sn/Bg.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
  will-change: transform;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* Base layouts */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Utilities */
.text-accent {
  color: var(--accent-color);
}

.text-secondary {
  color: var(--text-secondary);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--bg-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--bg-secondary);
}

/* Header Component */
.header {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: var(--z-nav);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  display: none;
  /* Mobile first hidden */
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Component */
.hero {
  padding: 4rem 0;
  background-color: transparent;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    padding: 6rem 2rem;
  }
}

.hero-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (min-width: 768px) {
  .hero-text h2 {
    font-size: 3.5rem;
  }
}

.hero-text p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* Menu Layout & Containers */
.menu-container {
  background-color: var(--bg-secondary);
  padding-top: 4rem;
}

.menu-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.menu-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.menu-section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* MenuItemCard Component */
.menu-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.menu-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
  transform: translateY(-4px);
}

.menu-card-image {
  width: 100%;
  height: 180px;
  background-color: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.menu-card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Zoom on specific images to hide the Gemini logo in the bottom-right corner */
#cat-boissons .menu-card-image img,
#cat-soupe-riz .menu-card-image img,
.menu-card[data-image*="mochis.webp"] .menu-card-image img,
.zoom-gemini-hide {
  transform: scale(1.15);
  transform-origin: top left;
}

.menu-card-content {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex: 1;
}

.menu-card-info {
  flex: 1;
}

.menu-card-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.menu-card-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.price {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.125rem;
}

/* Modal Component */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  /* Controlled via active class */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-tertiary);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 2;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--border-color);
}

.modal-image-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  margin: 0;
  flex: 1;
}

.modal-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-left: 1rem;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Component */
.footer {
  background-color: var(--accent-color);
  color: #050505;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer h3 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer h4 {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.footer-desc {
  color: #050505;
  max-width: 300px;
  margin: 0 auto 2rem;
  font-weight: 500;
  opacity: 0.9;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
  }

  .footer h4 {
    margin-top: 0;
  }

  .footer-desc {
    margin: 0;
  }
}

.footer-contact,
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {

  .footer-contact,
  .footer-hours {
    align-items: flex-start;
  }
}

.footer-contact li,
.footer-hours li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #050505;
  font-weight: 500;
}

.footer-contact a {
  color: #050505;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  color: #050505;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Header Actions & Order button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn-header-order {
  background-color: var(--accent-color);
  color: var(--bg-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-header-order:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Modal Order Button */
.modal-order-btn {
  display: flex;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-color);
  color: var(--bg-secondary);
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
}

.modal-order-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}