/* =========================================
   NICE-SELECT - REFONTE COMPLÈTE MYBUSINESS
   COULEURS : Noir #1A1A1A | Jaune #FFB800
   ========================================= */

.nice-select {
  -webkit-tap-highlight-color: transparent;
  background-color: white !important;
  border-radius: 10px !important;
  border: 2px solid #e2e8f0 !important;
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 500 !important;
  outline: none;
  padding: 12px 40px 12px 18px !important;
  position: relative;
  text-align: left !important;
  transition: all 0.2s ease-in-out;
  user-select: none;
  white-space: nowrap;
  width: 100% !important;
  color: #1A1A1A !important;
  line-height: 1.5 !important;
}

/* HOVER - Bordure jaune MyBusiness */
.nice-select:hover {
  border-color: #FFB800 !important;
  background-color: #FFFDF5 !important;
}

/* FOCUS / ACTIVE / OPEN */
.nice-select:active,
.nice-select.open,
.nice-select:focus {
  border-color: #FFB800 !important;
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15) !important;
  background-color: white !important;
}

/* FLÈCHE PERSONNALISÉE - JAUNE */
.nice-select:after {
  border-bottom: 2px solid #FFB800 !important;
  border-right: 2px solid #FFB800 !important;
  content: '';
  display: block;
  height: 10px;
  width: 10px;
  margin-top: -6px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform-origin: 66% 66%;
  transform: rotate(45deg);
  transition: all 0.15s ease-in-out;
}

/* FLÈCHE QUAND OPEN - Jaune plus foncé */
.nice-select.open:after {
  transform: rotate(-135deg);
  border-bottom: 2px solid #E6A600 !important;
  border-right: 2px solid #E6A600 !important;
}

/* LISTE DÉROULANTE */
.nice-select .list {
  background-color: white !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
  border: 1px solid #e2e8f0 !important;
  box-sizing: border-box;
  margin-top: 8px;
  opacity: 0;
  width: 100% !important;
  display: none;
  overflow: hidden;
  padding: 8px 0 !important;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform-origin: 50% 0;
  transform: scale(0.95) translateY(-15px);
  transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
}

.nice-select.open .list {
  opacity: 1;
  display: block;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* OPTIONS */
.nice-select .option {
  cursor: pointer;
  font-weight: 400;
  line-height: 20px;
  list-style: none;
  min-height: auto;
  outline: none;
  z-index: 9999999;
  padding: 12px 18px !important;
  border: none !important;
  text-align: left;
  transition: all 0.2s;
  color: #1A1A1A !important;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9 !important;
  margin: 0 !important;
}

.nice-select .option:last-child {
  border-bottom: none !important;
}

/* HOVER DES OPTIONS - JAUNE MyBusiness */
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
  background-color: #FFB800 !important;
  color: #1A1A1A !important;
}

/* OPTION SÉLECTIONNÉE */
.nice-select .option.selected {
  font-weight: 600 !important;
  background-color: #FFFDF5 !important;
  color: #FFB800 !important;
}

.nice-select .option.selected:hover {
  background-color: #FFB800 !important;
  color: #1A1A1A !important;
}

/* OPTION DISABLED */
.nice-select .option.disabled {
  background-color: transparent;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

/* VERSION SMALL */
.nice-select.small {
  font-size: 13px !important;
  height: 38px;
  line-height: 1.5;
  padding: 8px 35px 8px 15px !important;
}

.nice-select.small:after {
  height: 8px;
  width: 8px;
  right: 15px;
}

.nice-select.small .option {
  line-height: 1.5;
  min-height: auto;
  padding: 10px 15px !important;
}

/* VERSION WIDE - PLEINE LARGEUR */
.nice-select.wide {
  width: 100% !important;
}

.nice-select.wide .list {
  left: 0 !important;
  right: 0 !important;
}

/* DISABLED */
.nice-select.disabled {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  pointer-events: none;
  opacity: 0.7;
}

.nice-select.disabled:after {
  border-color: #94a3b8 !important;
}

/* DANS LE MARKETPLACE - POUR LES FILTRES */
.nice-select[style*="width: auto"] {
  min-width: 180px;
  width: auto !important;
}

/* DANS LE DROPDOWN MENU */
.dropdown-menu .nice-select {
  background-color: white !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nice-select {
    padding: 10px 35px 10px 15px !important;
    font-size: 14px !important;
  }

  .nice-select[style*="width: auto"] {
    min-width: 100% !important;
    width: 100% !important;
  }
}
