/** {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
}
*/

.dp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.dp-field-group {
  position: relative;
}

.dp-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dp-input-row label {
  font-size: 13px;
  color: #666;
}
/*
.dp-input {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dp-input:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}
*/
.dp-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  visibility: hidden;
  width: 280px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dp-dropdown.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-nav {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

.dp-nav:hover {
  background: #f5f5f5;
  color: #111;
}

.dp-month-year {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.dp-month-year:hover {
  background: #f5f5f5;
}

.dp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dp-dow {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  padding: 4px 0;
}

.dp-dow.we {
  color: #185FA5;
  font-weight: 500;
}

.dp-day {
  font-size: 13px;
  text-align: center;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  color: #111;
  border: none;
  background: none;
}

.dp-day.weekend:hover:not(.dp-selected) {
  background: #E6F1FB;
  color: #185FA5;
}

.dp-day.disabled {
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.35;
}

.dp-day.dp-other {
  opacity: 0.25;
}

.dp-today {
  font-weight: 500;
  color: #185FA5;
}

.dp-selected {
  background: #185FA5 !important;
  color: white !important;
}

.dp-months-grid,
.dp-years-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dp-month-btn,
.dp-year-btn {
  font-size: 13px;
  padding: 8px 4px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  color: #111;
  text-align: center;
}

.dp-month-btn:hover,
.dp-year-btn:hover {
  background: #f5f5f5;
}

.dp-month-btn.dp-sel,
.dp-year-btn.dp-sel {
  background: #185FA5;
  color: white;
}

.dp-hint {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-top: 8px;
}

.dp-clear-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.dp-clear {
  font-size: 12px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.dp-clear:hover {
  color: #111;
  background: #f5f5f5;
}

/* Jours / mois hors plage min-max */
.dp-out-range {
  opacity: 0.2;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Bouton de navigation désactivé */
.dp-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Input désactivé (Au avant sélection du Du) */
.dp-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
}

/* Espacement entre les deux champs */
.dp-input-row + .dp-field-group {
  position: relative;
}

.dp-input-row {
  margin-top: 12px;
}
