body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 2rem;
  background-color: #f9fafb;
  color: #111827;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

th {
  background-color: #f3f4f6;
  font-weight: 600;
}

td:hover {
  background-color: #f9fafb;
}

tr:last-child td {
  border-bottom: none;
}

button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}

button:hover {
  background-color: #1d4ed8;
}

#grocery-list {
  margin-top: 1rem;
  padding-left: 1rem;
}

#grocery-list li {
  margin-bottom: 0.5rem;
}
#meal-body td:first-child {
  cursor: default;
  background: #f3f4f6;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 41, 55, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  position: relative;
}

.modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.modal-content ul {
  list-style: none;
  padding-left: 0;
  max-height: 300px;
  overflow-y: auto;
}

.modal-content li {
  padding: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

.modal-content li:hover {
  background-color: #f3f4f6;
}

.hidden {
  display: none;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
}
.sub-info {
  font-size: 0.8rem;
  color: #6b7280; /* gris pâle */
}

#weekly-summary {
  margin-top: 2rem;
  background: #f3f4f6;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}
#weekly-summary h3 {
  margin-bottom: 0.5rem;
}
#weekly-summary p {
  margin: 0.25rem 0;
  color: #374151;
}

#reset-plan {
  background-color: #dc2626; /* rouge */
}

#reset-plan:hover {
  background-color: #b91c1c;
}
