/* ================= HORAIRES ================= */
.agenda {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 18px;
  margin-top: 25px;
}

.jour-col {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .2s ease;
  transform: translateY(10px);
  justify-content: flex-start;
}

.jour-col:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.jour-col h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  min-height: 22px;
}

.jour-date {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  min-height: 18px;
}

.horaire {
  font-size: 16px;
  margin: 3px 0;
  min-height: 24px;
}

.horaire.ouvert {
  font-weight: 600;
  color: #fff;
  background: #00649F;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-block;
}

.horaire.ferme {
  color: #9ca3af;
}

.horaire.inconnu {
  color: #cbd5e1;
  font-style: italic;
}

.horaire strong {
  font-weight: 600;
  color: #111827;
}

/* couleurs jours et horaires passés */
.jour-passe .horaire.ouvert {
  background: #f1f1f1;
  color: #777;
  border-color: #e2e2e2;
}

.jour-passe .horaire.ferme,
.jour-passe .horaire.inconnu {
  background: inherit;
  color: inherit;
}

.jour-passe h3 {
  color: #9a9a9a;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.jour-passe .jour-date {
  color: #b5b5b5;
}

.jour-passe:hover {
  transform: none;
  box-shadow: none;
}

.jour-passe {
  opacity: 0.92;
}

/* jour actuel */
.jour-actuel {
  border: 2px solid #1E7F74;
  background-color: #e6f7f5;
  position: relative;
}

.jour-actuel::before {
  content: attr(data-today);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E7F74;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* fade animation */
@keyframes fadeAgenda {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* next week */
.next-week {
  margin-top: 40px;
  opacity: 0.85;
}

.next-week h2 {
  font-size: 1.4rem;
  color: #666;
}

.semaine-next {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

/* matins / après-midi */
.matin { background: #f9f9f9; }
.apresmidi { background: #fefefe; }

/* RESPONSIVE */
@media screen and (max-width: 900px) {
  .agenda { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
  .agenda { flex-direction: column; }
  .jour-col { margin: 10px 0; }
}

@media screen and (max-width: 500px) {
  .agenda { grid-template-columns: 1fr; }
}