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

:root {
  --green: #014727;
}

body {
  font-family: 'Courier New', Courier, monospace;
  color: var(--green);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-image 0.5s ease-in-out;
}

/* En-tête */
.top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 25px 40px;
  width: 100%;
  z-index: 20;
}

.logo {
  font-size: 28px;
  letter-spacing: 4px;
  font-weight: 800;
}

.btn-reserver {
  background-color: var(--green);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 2px;
  border: none;
  font-size: 14px;
}

/* Zone Centrale (Desktop) */
.main-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding-right: 8%;
  box-sizing: border-box;
  flex-grow: 1;
}

/* Feuille de Menu Papier (Desktop) */
.menu-paper {
  background-image: url('./paper-bg.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  
  width: 540px;
  max-height: 82vh;
  padding: 70px 50px 50px 50px;
  position: relative;
  box-sizing: border-box;
  transform: translateX(80px);
}

/* Zone interne de défilement */
.menu-scroll-area {
  max-height: calc(82vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

.menu-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.menu-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.menu-header h2 {
  font-size: 22px;
  letter-spacing: 3px;
}

.menu-header .subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 25px;
  opacity: 0.8;
}

.menu-section {
  margin-bottom: 22px;
}

.menu-section h3 {
  font-size: 13px;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--green);
  padding-bottom: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  color: #222;
}

/* Footer */
.footer-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  z-index: 10;
}

.footer-bar a {
  color: var(--green);
  text-decoration: none;
}

.sep {
  opacity: 0.5;
}

/* Responsive Mobile */
.mobile-only { display: none !important; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  /* Force l'affichage du header tout en haut */
  .top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 25px !important;
    width: 100% !important;
  }

  .main-container {
    justify-content: center !important;
    align-items: flex-end !important;
    padding-right: 0 !important;
    padding-bottom: 50px !important; /* Calage parfait juste sous le centre */
  }

  /* Boutons empilés vertikalement */
  .mobile-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .btn-menu {
    background: none;
    border: none;
    color: var(--green);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
  }

  /* Feuille papier ajustée */
  .menu-paper {
    display: none !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    width: 94vw !important;
    max-width: 410px !important;
    height: 125vw !important;
    max-height: 570px !important;
    
    background-image: url('./paper-bg.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    
    padding: 55px 28px 25px 28px !important;
    z-index: 100 !important;
  }

  .menu-paper.active {
    display: block !important;
  }

  .menu-scroll-area {
    max-height: calc(100% - 15px) !important;
  }

  .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--green);
    cursor: pointer;
    z-index: 101;
  }

  /* Typographie mobile */
  .menu-paper .menu-header h2 { font-size: 16px !important; }
  .menu-paper .menu-header .subtitle { font-size: 9px !important; margin-bottom: 10px !important; }
  .menu-paper .menu-section h3 { font-size: 10px !important; margin-bottom: 5px !important; }
  .menu-paper .menu-item { font-size: 9,5px !important; margin-bottom: 2px !important; }
}
