:root {
  --color-red: #D3362D;
  --color-yellow: #F9C742;
  --color-green: #3A9243;
  --color-brown: #4C2A14;
  --color-black: #1C1C1C;
}

body {
  background-color: #fdfdfd;
  font-family: 'Segoe UI', sans-serif;
}

.logo {
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.header {
  background-color: var(--color-green);
  color: white;
  padding: 15px;
  text-align: center;
}

.total-box {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-black);
}

.btn-success {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

.btn-success:hover {
  background-color: #2e6d32;
  border-color: #2e6d32;
}

.btn-danger {
  background-color: var(--color-red);
  border-color: var(--color-red);
}

.btn-danger:hover {
  background-color: #a7281e;
  border-color: #a7281e;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 0.25rem rgba(211, 54, 45, 0.25);
}

.menu-section {
  display: none;
  margin-bottom: 30px;
  border-left: 4px solid var(--color-red);
  padding-left: 1rem;
  background-color: #fffaf7;
  border-radius: 5px;
}

.menu-section h5 {
  color: var(--color-red);
  margin-top: 1rem;
}

.menu-section label {
  font-weight: bold;
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
}

.menu-section label .popup-info {
  margin-left: 8px;
  font-size: 0.85rem;
  background-color: var(--color-green);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}

.modal-body img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

#recapitulatif {
  background-color: #f8f9fa;
  border: 1px dashed var(--color-green);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  position: sticky;
  top: 20px;
  z-index: 100;
}

#scrollToRecapBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

#scrollToRecapBtn:hover {
  background-color: #287a3a;
}

.flash {
  animation: flashItem 1s ease-in-out;
}

@keyframes flashItem {
  0% { background-color: #d4edda; }
  100% { background-color: transparent; }
}
