.abn_calendrier_avent {
  --abn-ca-opened-bg: #f3e2b8;
  --abn-ca-opened-text: #3a2414;
  --abn-ca-closed-text: #ffffff;
  --abn-ca-gap: 0.85rem;
}

.abn_calendrier_avent__grid {
  display: grid;
  gap: var(--abn-ca-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0.15rem;
}

@media (min-width: 36em) {
  .abn_calendrier_avent__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 56em) {
  .abn_calendrier_avent__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 78em) {
  .abn_calendrier_avent__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.abn_calendrier_avent__cell {
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.abn_calendrier_avent__door {
  aspect-ratio: 1;
  background: transparent;
  border: none;
  border-radius: 0.22rem;
  color: var(--abn-ca-closed-text);
  cursor: default;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.abn_calendrier_avent__door--closed {
  cursor: not-allowed;
}

.abn_calendrier_avent__door--open {
  color: var(--abn-ca-opened-text);
  cursor: pointer;
}

.abn_calendrier_avent__door--open:hover,
.abn_calendrier_avent__door--open:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.abn_calendrier_avent__well {
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 38%),
    var(--abn-ca-opened-bg);
  box-shadow:
    inset 0 0.45rem 0.85rem rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(80, 50, 20, 0.16);
  display: flex;
  inset: 0;
  justify-content: stretch;
  overflow: hidden;
  position: absolute;
}

.abn_calendrier_avent__door--closed .abn_calendrier_avent__well {
  background: #5a3d28;
}

.abn_calendrier_avent__preview {
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.abn_calendrier_avent__door--open:hover .abn_calendrier_avent__preview,
.abn_calendrier_avent__door--open:focus-visible .abn_calendrier_avent__preview {
  transform: scale(1.06);
}

.abn_calendrier_avent__teaser {
  background: linear-gradient(180deg, transparent, rgba(20, 12, 8, 0.72) 55%);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  justify-content: flex-end;
  min-height: 48%;
  padding: 1.7rem 0.45rem 0.45rem;
  position: relative;
  text-align: left;
  width: 100%;
  z-index: 1;
}

.abn_calendrier_avent__teaser-title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abn_calendrier_avent__teaser-text {
  display: -webkit-box;
  font-size: 0.68rem;
  line-height: 1.25;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.abn_calendrier_avent__flap {
  align-items: center;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.03) 11px,
      rgba(255, 255, 255, 0.03) 12px
    ),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, transparent 38%, rgba(0, 0, 0, 0.16) 100%),
    var(--abn-ca-door, #8B1E3F);
  border-radius: 0.18rem;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 0.28rem rgba(0, 0, 0, 0.08),
    0 0.18rem 0.25rem rgba(0, 0, 0, 0.22);
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
  transition: inset 0.35s ease, border-radius 0.35s ease, box-shadow 0.35s ease;
}

.abn_calendrier_avent__door--closed .abn_calendrier_avent__flap {
  outline: 1px dashed rgba(255, 255, 255, 0.22);
  outline-offset: -0.38rem;
}

.abn_calendrier_avent__door--open .abn_calendrier_avent__flap {
  border-radius: 0.22rem 0.22rem 1rem 1rem;
  bottom: auto;
  box-shadow:
    inset 0 0 0 0.18rem rgba(0, 0, 0, 0.08),
    0 0.22rem 0.35rem rgba(0, 0, 0, 0.28);
  inset: 0 0 auto;
  min-height: 24%;
}

.abn_calendrier_avent__door--open .abn_calendrier_avent__flap::after {
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 0.15rem 0.15rem 0.85rem 0.85rem;
  bottom: 0.28rem;
  content: "";
  left: 0.28rem;
  pointer-events: none;
  position: absolute;
  right: 0.28rem;
  top: 0.28rem;
}

.abn_calendrier_avent__roll {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 8px,
      rgba(0, 0, 0, 0.08) 8px,
      rgba(0, 0, 0, 0.08) 16px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.28));
  border-radius: 999px;
  bottom: -0.32rem;
  box-shadow: 0 0.18rem 0.28rem rgba(0, 0, 0, 0.28);
  display: none;
  height: 0.64rem;
  left: 6%;
  position: absolute;
  right: 6%;
}

.abn_calendrier_avent__num {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  position: relative;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.abn_calendrier_avent__door--open .abn_calendrier_avent__num {
  color: var(--abn-ca-closed-text);
  font-size: 0.95rem;
  padding: 0.35rem 0.4rem 0.55rem;
}

.abn_calendrier_avent__empty {
  margin: 0;
}

.abn_calendrier_avent__modal[hidden] {
  display: none;
}

.abn_calendrier_avent__modal {
  inset: 0;
  position: fixed;
  z-index: 10000000;
}

.abn_calendrier_avent__modal-backdrop {
  background: rgba(20, 12, 8, 0.62);
  inset: 0;
  position: absolute;
}

.abn_calendrier_avent__modal-dialog {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  left: 50%;
  margin: 0;
  max-height: 88vh;
  max-width: 40rem;
  overflow: auto;
  padding: 1.5rem 1.4rem 1.6rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 1.5rem);
}

.abn_calendrier_avent__modal-close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  position: absolute;
  right: 0.55rem;
  top: 0.4rem;
}

.abn_calendrier_avent__modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 1.75rem 0.85rem 0;
}

.abn_calendrier_avent__modal-image {
  border-radius: 0.3rem;
  display: block;
  height: auto;
  margin: 0 0 1rem;
  max-width: 100%;
}

.abn_calendrier_avent__modal-content {
  line-height: 1.5;
}

.abn_calendrier_avent__modal-content > *:first-child {
  margin-top: 0;
}

.abn_calendrier_avent__modal-content > *:last-child {
  margin-bottom: 0;
}

.abn_calendrier_avent__modal-content img {
  height: auto;
  max-width: 100%;
}

body.abn-avent-modal-open {
  overflow: hidden;
}
