/* --- Wrapper bordure grise + coins rouges --- */
.litepicker-borderbox {
  position: relative;
  background: #fff;
  border-radius: 15px;
  border: 3px solid #e0e0e0;
  padding: 10px;
  margin: 0 auto;
  max-width: 303px;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
}

/* Coin haut droit rouge */
.litepicker-borderbox::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70px;
  height: 70px;
  background-color: #b40202;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 2;
}

/* Coin bas gauche rouge */
.litepicker-borderbox::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 70px;
  background-color: #b40202;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  z-index: 2;
}

/* --- Calendrier Litepicker à l'intérieur --- */
#litepicker-embedded {
  background: transparent !important; /* Laisse le fond au parent */
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto;
  min-width: 0;
  min-height: 0;
  font-family: 'Poppins', Arial, sans-serif !important;
}

/* Applique la police partout */
#litepicker-embedded *,
.litepicker * {
  font-family: 'Poppins', Arial, sans-serif !important;
	z-index:3;
}

/* --- Style du calendrier, jours, header --- */
.litepicker .container__months .month-item,
.litepicker .container__days-of-the-week .day-of-the-week {
  color: #b40202 !important;
  font-weight: bold;
}
.litepicker .container__months .button-next,
.litepicker .container__months .button-prev {
  background: none;
  color: #b40202;
  font-size: 1.4em;
}
.litepicker .day-item {
  border-radius: 7px;
  font-weight: 500;
  font-size: 1.05em;
  transition: background 0.17s;
}
.litepicker .day-item:hover:not(.is-locked):not(.is-today) {
  background: #ffd6d6 !important;
  color: #b30000 !important;
  cursor: pointer;
}
.litepicker .day-item.is-today {
  background: #fff4f4 !important;
  border: 1.5px solid #b30000 !important;
}
.litepicker .day-item.is-locked {
  background: #f4f4f4 !important;
  color: #aaa !important;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .litepicker-borderbox {
    padding: 7vw;
    border-width: 3px;
    border-radius: 16px;
    max-width: 97vw;
  }
  .litepicker-borderbox::before,
  .litepicker-borderbox::after {
    width: 15vw;
    height: 15vw;
    min-width: 34px; min-height: 34px;
    max-width: 60px; max-height: 60px;
  }
}
