:root {
  --hc-burgundy: #8d0713;
  --hc-closed: #bcbcbc;
  --hc-light: #f4f0e8;
}

.bloc-horaires {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 !important;
  color: #fff;
  background: transparent !important;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.bloc-horaires .texte-ouverture {
  color: inherit;
}

.bloc-horaires .pastille-horaire {
  display: inline-block;
  flex: 0 0 auto;
  padding: 10px 28px;
  border-radius: 999px;
  color: #8b0015 !important;
  background: #f4f0e8 !important;
  font-weight: 800;
  white-space: nowrap;
}

.hc-calendar,
.hc-calendar *,
.hc-month-details,
.hc-month-details * {
  box-sizing: border-box;
}

.hc-calendar {
  width: 100%;
  max-width: 520px;
  color: #080808;
  font-family: inherit;
}

.hc-calendar__header {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hc-calendar__title {
  margin: 0;
  color: var(--hc-burgundy);
  font: inherit;
  font-size: clamp(21px, 3vw, 25px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.hc-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--hc-burgundy);
  background: transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.hc-calendar__nav:hover,
.hc-calendar__nav:focus-visible {
  background: rgba(141, 7, 19, .09);
  transform: scale(1.06);
  outline: none;
}

.hc-calendar__nav::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.hc-calendar__nav--previous::before {
  border-right: 8px solid currentColor;
}

.hc-calendar__nav--next::before {
  border-left: 8px solid currentColor;
}

.hc-calendar__weekdays,
.hc-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.hc-calendar__weekdays {
  margin-bottom: 12px;
}

.hc-calendar__weekday {
  color: #111;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.hc-calendar__day,
.hc-calendar__blank {
  aspect-ratio: 1;
  min-width: 0;
}

.hc-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 48px;
  margin: auto;
  border-radius: 50%;
  color: #fff;
  background: var(--hc-day-color, var(--hc-closed));
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: default;
  transition: transform .18s ease, filter .18s ease;
}

.hc-calendar__day:hover {
  transform: translateY(-2px);
  filter: brightness(.96);
}

.hc-calendar__day[aria-current="date"] {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hc-burgundy);
}

.hc-calendar__legend {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.hc-calendar__legend-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 14px;
  color: #73000c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.hc-calendar__legend-dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hc-legend-color, var(--hc-closed));
}

/* Calendrier accompagné des informations complémentaires */
.hc-month-details {
  width: 100%;
  color: #171717;
  font-family: inherit;
}

/* Le calendrier, sa légende et l’encadré forment désormais une seule colonne. */
.hc-month-details__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hc-month-details__calendar {
  width: 100%;
  max-width: none;
}

.hc-month-details__info {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--hc-burgundy);
  background: var(--hc-light);
}

.hc-month-details__info::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--hc-burgundy);
}

.hc-month-details__info-inner {
  display: flex;
  width: 100%;
  padding: clamp(34px, 4vw, 56px);
  flex-direction: column;
  justify-content: center;
}

.hc-month-details__eyebrow {
  display: block;
  margin: 0 0 26px;
  color: var(--hc-burgundy);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  line-height: 1.15;
}

.hc-month-details__info-content {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  animation: hcInfoFade .28s ease;
}

.hc-month-details__info-content.is-changing {
  animation: hcInfoFade .28s ease;
}

.hc-month-details__info-content p {
  margin: 0 0 14px;
  padding: 0;
}

.hc-month-details__info-content p:last-child {
  margin-bottom: 0;
}

.hc-month-details__info-content strong {
  font-weight: 800;
}

.hc-month-details__info-content ul,
.hc-month-details__info-content ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.hc-month-details__info.is-empty {
  color: #5f5f5f;
  background: #f5f5f5;
}

.hc-month-details__info.is-empty .hc-month-details__eyebrow {
  color: #555;
}

@keyframes hcInfoFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hc-monthly-info__empty {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--hc-burgundy);
  background: #f1f1f1;
}

@media (max-width: 980px) {
  .hc-month-details__layout {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .bloc-horaires {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 20px;
  }

  .bloc-horaires .pastille-horaire {
    padding: 7px 18px;
    font-size: 14px;
  }

  .hc-calendar__header {
    margin-bottom: 22px;
  }

  .hc-calendar__weekdays,
  .hc-calendar__days {
    gap: 6px;
  }

  .hc-calendar__weekday {
    font-size: 14px;
  }

  .hc-calendar__day {
    max-width: 42px;
    font-size: 13px;
  }

  .hc-calendar__legend {
    margin-top: 28px;
  }

  .hc-calendar__legend-item {
    grid-template-columns: 32px 1fr;
    gap: 12px;
    font-size: 15px;
  }

  .hc-calendar__legend-dot {
    width: 31px;
    height: 31px;
  }

  .hc-month-details__layout {
    gap: 34px;
  }

  .hc-month-details__info::before {
    inset: 0 0 auto;
    width: 100%;
    height: 7px;
  }

  .hc-month-details__info-inner {
    padding: 35px 25px 30px;
  }

  .hc-month-details__eyebrow {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .hc-month-details__info-content {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .hc-calendar__weekdays,
  .hc-calendar__days {
    gap: 4px;
  }

  .hc-calendar__day {
    font-size: 12px;
  }
}
