*{
font-family: 'Raleway', sans-serif;
}

body {
    margin: 0px;
    padding: 0px;
    background-color: #fafafa;
}

.cart-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
}

.cart-item-image img {
  width: 80px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.cart-info {
  flex: 1;
}


.cart-remove {
  background: #e74c3c;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.cart-price,
.cart-price-total {
  font-weight: bold;
  color: #222;
}

.cart-quantity {
  display: inline-block;
  margin: 5px 0;
  padding: 3px 8px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 0.9rem;
}

.cart-quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.cart-quantity-control button {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-quantity-control button:hover {
  background-color: #e0e0e0;
}

.empty {
  text-align: center;
  color: #888;
  font-style: italic;
}

.reservation-section {
  margin-top: 30px;
}

.reservation-button {
  padding: 12px 20px;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.reservation-form {
  margin-top: 20px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reservation-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  position: relative;
}

.reservation-form h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ff9900;
  margin-top: 8px;
  border-radius: 2px;
}

.reservation-form input,
.reservation-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.reservation-form input:focus,
.reservation-form textarea:focus {
  border-color: #ff9900;
  outline: none;
}

.reservation-form button[type="submit"] {
  padding: 14px 20px;
  background-color: #ff9900;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.reservation-form button[type="submit"]:hover {
  background-color: #e68a00;
  transform: translateY(-2px);
}
.reservation-form.hidden {
  display: none !important;
}


.form-selection {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.form-selection button {
  padding: 10px 16px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.form-selection button:hover {
  background-color: #333;
}

.form-selection button.active {
  background-color: #222;
  font-weight: bold;
}

.added-to-cart {
  background-color: #28a745 !important;
  color: white !important;
  font-weight: bold;
  pointer-events: none;
  border-radius: 6px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  transition: all 0.3s ease;
}
    #suggestions li:hover {
      background-color: #eee;
    }
    #selected-dates {
  font-size: 1.2rem;
  background-color: #fff8ed;
  padding: 12px 20px;
  border: 2px solid #ff9900;
  border-radius: 8px;
  color: #d35400;
  margin-bottom: 25px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

#selected-dates::before {
  content: "📅 ";
  font-size: 1.3rem;
  position: relative;
  top: 0;
  left: 0;
}
/* Corrige l'affichage et le style des suggestions */
.reservation-form {
  position: relative;
}

#suggestions,
#suggestions_particulier {
  position: absolute;
  top: calc(100% + 4px); /* espace entre champ et suggestions */
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}

#suggestions li,
#suggestions_particulier li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f2f2f2;
}

#suggestions li:last-child,
#suggestions_particulier li:last-child {
  border-bottom: none;
}

#suggestions li:hover,
#suggestions_particulier li:hover {
  background-color: #f7f7f7;
}


.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

#suggestions_particulier {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 20;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
}

#suggestions_particulier li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

#suggestions_particulier li:hover {
  background-color: #f2f2f2;
}
#total-items-count.animate-update {
  animation: smoothUpdate 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-block;
  transform-origin: left center;
}

@keyframes smoothUpdate {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translateY(2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
