/* === Page Horaires — DA v2 === */
.horaires { margin-top: 1.5rem; }

.horaires-title {
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
  display: block;
  width: min(88%, var(--max-width));
  max-width: var(--max-width);
  margin: 0 auto 1.1rem;
}

.horaires-container {
  width: min(88%, var(--max-width));
  max-width: var(--max-width);
  margin: 0 auto;
}

.horaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Card jour */
.horaire-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 4px 16px rgba(20,8,0,.07);
  padding: 1rem 1.1rem 1.1rem;
  transition: transform .2s, box-shadow .25s;
}
.horaire-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,8,0,.11); }

.horaire-card.is-open   { border-left: 4px solid var(--accent); }
.horaire-card.is-closed { border-left: 4px solid var(--danger); }
.horaire-card.is-closed .horaire-title { color: var(--danger); }
.horaire-card.is-today {
  background: #FBF8F2;
  box-shadow: 0 12px 28px rgba(181,117,46,.14);
  border-color: var(--brand);
}

.horaire-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
  margin-bottom: .35rem;
}
.horaire-title {
  margin: 0; font-size: 1.1rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent);
}
.horaire-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: .18rem .55rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-weight: 700; font-size: .82rem; white-space: nowrap; line-height: 1;
}
.pill--today  { border-color: #c7e1ff; background: #eef6ff; color: #0b4a6f; }
.pill--open   { border-color: #b7e4c7; background: #f3fcf6; color: #1F5038; }
.pill--closed { border-color: #f2a5a0; background: #fdecea; color: #a33226; }
.pill--date   { border-color: var(--line); background: var(--bg-soft); }

/* Lignes horaires */
.time-rows { display: flex; flex-direction: column; gap: .3rem; margin-top: .3rem; }
.time-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: .25rem 0;
  border-bottom: 1px dotted var(--line);
}
.time-row:last-child { border-bottom: none; }
.time-label  { font-weight: 700; color: var(--text); font-size: .93rem; }
.time-value  { font-variant-numeric: tabular-nums; color: var(--muted); }
.closed-text { font-weight: 800; color: var(--danger); }
.note        { color: var(--muted); font-size: .88rem; }

/* Onglets services */
.tabs { display: flex; gap: 8px; justify-content: center; margin: 0 0 1rem; }
.tab-btn {
  padding: .52rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 700; font-family: inherit;
  transition: background .2s, box-shadow .2s;
}
.tab-btn:hover { background: var(--bg-soft); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px rgba(181,117,46,.25);
}

/* Exceptions */
.exceptions-prochaines { margin: 2rem 0 0; padding: 1.2rem 0 0; }
.changes-head h2 {
  text-align: left; margin: 0 0 .75rem;
  font-size: 1.2rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent);
}
.changes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.change-item {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border: 1px dashed var(--line);
  border-radius: 10px; padding: .65rem .9rem;
}
.change-text { color: var(--text); }
.muted { color: var(--muted); }

.horaire-card--exception { margin: 0 0 1rem; }

main > h1 {
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
  display: block;
  width: min(88%, var(--max-width));
  max-width: var(--max-width);
  margin: 0 auto 1rem;
}

@media (max-width: 900px) { .horaires-container { width: 94%; } }
