/* Conteneur général du datepicker */
.datepicker {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fbfd;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #2e3a59;
  user-select: none;
}

/* Entête avec mois et navigation */
.datepicker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #2c3e50;
}

/* Flèches navigation */
.datepicker-arrow {
  cursor: pointer;
  font-size: 1.4rem;
  color: #2c3e50;
  transition: color 0.3s ease;
}
.datepicker-arrow:hover {
  color: #d64550;
}

/* Tableau calendrier */
.datepicker table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #33475b;
}

/* Ligne des jours de la semaine avec fond gris clair */
.datepicker thead tr th {
  padding: 5px 0;
  background-color: #f4f4f4;
  color: #e3000b;
  font-weight: 600;
  border: 0.5px solid #fdfdfd;
  text-align: center;
  text-transform: uppercase;
}

/* Première colonne # (semaine) */
.datepicker tbody tr td:first-child {
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  padding: 10px 8px;
  border: 0.5px solid #fdfdfd;
  background-color: #f4f4f4;
}

/* Cellules dates */
.datepicker tbody tr td {
  text-align: center;
  padding: 10px 8px;
  color: #2c3e50;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Dates hors mois en gris clair */
.datepicker tbody tr td.outside-month {
  color: #b0b8ce;
  cursor: default;
}

/* Hover pour les dates valides */
.datepicker tbody tr td:not(.outside-month):hover {
  background-color: #fce3e3;
  color: #d64550;
  border-radius: 4px;
}

/* Jour sélectionné avec soulignement rouge */
.datepicker tbody tr td.selected {
  color: #d64550;
}
.datepicker tbody tr td.selected::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 25%;
  width: 50%;
  height: 2px;
  background-color: #d64550;
  border-radius: 1px;
}

/* Ligne de séparation entre semaines */
.datepicker tbody tr {
  border-bottom: 1px solid #f4f4f4;
}


.datepicker table tr td.active, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled:hover, .datepicker table tr td.active:hover{
    background: #e3000b !important;
}