/* === Base globale === */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #ececec; /* gris doux */
  color: #222;
  line-height: 1.6;
}

main { padding: 20px; }
footer { text-align: center; padding: 12px; color: #666; }

/* === Header === */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #b22222; /* rouge BurgerShot */
  padding: 14px 24px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.main-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

/* Navigation */
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-left a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.nav-left a:hover { opacity: 0.8; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  font-size: 14px;
  font-style: italic;
}

.logout-btn {
  background: #fff;
  color: #b22222;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.logout-btn:hover { background: #f2f2f2; }

/* === Boutons === */
button,
form button,
a.btn {
  background: #b22222;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

button:hover,
form button:hover,
a.btn:hover { background: #8b1a1a; }

.btn-delete {
  background: #dc3545;
}

.btn-delete:hover { background: #a71d2a; }

/* === Cartes === */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.card.management {
  background: #fff8f8;
  border-left: 6px solid #b22222;
}

.card.management h3 {
  margin-top: 0;
  color: #b22222;
  font-size: 18px;
  font-weight: bold;
}

/* === Messages === */
.alert,
.success {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.alert {
  background: #ffe9e9;
  border: 1px solid #f5c2c7;
  color: #842029;
}

.success {
  background: #e9ffe9;
  border: 1px solid #c2f5c7;
  color: #206b84;
}

/* === Formulaires === */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

form label {
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

/* === Tableaux === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background: #b22222;
  color: #fff;
}

table th, table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th { font-weight: bold; }

table tr:nth-child(even) { background: #f9f9f9; }

table img {
  max-width: 80px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* === PAGE D’ACCUEIL — CARTE BURGERSHOT === */
.menu-wrapper {
  max-width: 750px;
  margin: 40px auto;
  padding: 30px 20px;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.menu-title {
  text-align: center;
  margin-bottom: 25px;
}

.menu-title h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  color: #b22222;
  text-shadow: 1px 1px 0 #fff;
}

.menu-title p {
  margin: 5px 0 0;
  font-style: italic;
  color: #444;
}

/* Catégories */
.menu-category {
  background: #fff;
  padding: 20px 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  border-left: 6px solid #b22222;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.menu-category h3 {
  margin-top: 0;
  font-size: 20px;
  color: #b22222;
  border-bottom: 2px solid #b22222;
  padding-bottom: 6px;
}

/* Liste d’items */
.menu-list { margin-top: 15px; }

.line {
  display: flex;
  justify-content: space-between;
  padding: 10px 6px;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

.line:last-child { border-bottom: none; }

.line span:first-child { font-weight: 600; }

.line span:last-child {
  color: #b22222;
  font-weight: bold;
}

.hero-image {
  width: 45%;
  max-width: 1200px;   /* limite sur grands écrans */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.hero-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}
