body {
  font-family: Arial, sans-serif;
  background-image: url("images/try3.png");
  background-size: cover;
}

h1 {
  color: #333;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gym-eau {
  width: 12.5%;
  max-width: 150px;
}

@media (max-width: 600px) {
  .header {
    flex-direction: row;  /* pour garder texte à gauche, image à droite */
    justify-content: flex-start; /* si tu veux que tout soit à gauche, sinon keep space-between */
  }
  .gym-eau {
    width: 60px !important;
    max-width: none;
    margin-left: auto; /* pousse l’image à droite */
  }
}

.container {
  background: rgba(160, 158, 158, 0.678);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: auto;
}

input[type="date"] {
  padding: 8px;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot {
  background-color: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slot:hover {
  background-color: #c0c0ff;
}

.slot.selected {
  background-color: #7f7fff;
  color: white;
  font-weight: bold;
}

.selected-info {
  margin-top: 20px;
  font-weight: bold;
}

.reservation-list {
  margin-top: 30px;
  background: #fafafa;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.reservation-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  background: #f0f0ff;
  padding: 8px;
  border-radius: 6px;
}

.cancel-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.cancel-btn:hover {
  background: #d11a1a;
}

.horaire-block {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f9f9ff;
  border-left: 4px solid #4a90e2;
  border-radius: 6px;
}

.horaire-block h4 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: #333;
}

#datePicker {
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #ccc;
}