.meung-openings {
  width: 100%;
}

.meung-openings__legend {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.meung-openings__legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meung-openings__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.18);
  flex: 0 0 auto;
}

.meung-openings__months {
  display: grid;
  gap: 18px;
}

/* Desktop: 4 cols */
@media (min-width: 1200px) {
  .meung-openings__months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet: 2 cols */
@media (min-width: 768px) and (max-width: 1199px) {
  .meung-openings__months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 col */
@media (max-width: 767px) {
  .meung-openings__months {
    grid-template-columns: 1fr;
  }
}

.meung-openings__month {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: transparent;
}

.meung-openings__month-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  letter-spacing: .06em;
}

.meung-openings__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.meung-openings__dow {
  font-size: 11px;
  opacity: .75;
  padding: 2px 0;
  text-align: center;
}

.meung-openings__cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.meung-openings__cell.is-empty {
  border: none;
  background: transparent;
  cursor: default;
}

.meung-openings__daynum {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Statuts */
.meung-openings__swatch.is-closed,
.meung-openings__cell.is-closed {
  background: #c1121f;
  color: #ffffff;
  border-color: rgba(0,0,0,.08);
}

.meung-openings__swatch.is-standard,
.meung-openings__cell.is-standard {
  background: #5b8f3b;
  color: #ffffff;
  border-color: rgba(0,0,0,.08);
}

.meung-openings__swatch.is-extended,
.meung-openings__cell.is-extended {
  background: #e9c46a;
  color: #1b1b1b;
}

.meung-openings__swatch.is-afternoon,
.meung-openings__cell.is-afternoon {
  background: #3d6f8e;
  color: #ffffff;
  border-color: rgba(0,0,0,.08);
}

/* Tooltip desktop */
@media (hover: hover) and (pointer: fine) {
  .meung-openings__cell:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    background: #111;
    color: #fff;
    font-size: 12px;
    z-index: 50;
    pointer-events: none;
  }

  .meung-openings__cell:hover::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    width: 10px;
    height: 10px;
    background: #111;
    border-left: 1px solid rgba(0,0,0,.12);
    border-bottom: 1px solid rgba(0,0,0,.12);
    transform: translateX(-50%) rotate(45deg);
    z-index: 49;
  }
}

/* Tooltip mobile */
.meung-openings__cell.is-tooltip-open::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #111;
  color: #fff;
  font-size: 12px;
  z-index: 50;
}

.meung-openings__cell.is-tooltip-open::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #111;
  border-left: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
  z-index: 49;
}