/*!
 * multiselect-dropdown-alm.css — THÈME ALM — v1.1.0
 * CSS esthétique uniquement. Requiert la CSS core embarquée dans le JS.
 * Tous les sélecteurs sont préfixés par pour éviter
 * les conflits si plusieurs thèmes sont chargés simultanément.
 *
 * Usage HTML : ajouter data-theme="alm" sur le <select>
 * Le JS ajoute automatiquement la classe sur .msd-container.
 *
 * Palette :
 *   Fond clair : #ebebeb   Sombre : #424242
 *   Accent :     #f28e00   Texte :  #222
 *   Muted :      #5c5c5c  (ratio ≥ 7:1 sur #ebebeb — WCAG AA)
 *   Radius :     8px
 */

/* ── Conteneur ── */
.msd-container {
  cursor: pointer;
}

/* ── Trigger ── */
.msd-container .msd-trigger {
  height: 45px;
  border-radius: 8px;
  margin-top: 0;
}

.msd-container .msd-trigger {
  background: #ebebeb;
}

.msd-container .msd-trigger:hover, .msd-container .msd-trigger:focus {
  background: #c6c6c6;
}

.msd-container.is-open .msd-trigger {
  border-radius: 8px 8px 0 0;
}

.msd-container .msd-trigger-label {
  padding: 0 12px;
  color: #5c5c5c;
  line-height: 45px;
}
.msd-container .msd-trigger:hover .msd-trigger-label, .msd-container .msd-trigger:focus .msd-trigger-label {
  color: #505050;
}

.msd-container .msd-trigger-label.is-selected {
  color: #111;
}

.msd-container .msd-arrow {
  width: 45px;
  height: 45px;
  background-color: #424242;
  border-radius: 0 8px 8px 0;
  transition: border-radius 0.15s;
  color: #fff;
}

.msd-container .msd-arrow:before {
  content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 54 29'%3E%3Cpolyline fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' points='52 2 27 27 2 2'/%3E%3C/svg%3E");
}

.msd-container.is-open .msd-arrow {
  border-radius: 0 8px 0 0;
}

/* ── Focus visible ── */
.msd-container .msd-trigger:focus-visible {
  outline-color: #f28e00;
}

/* ── Panneau ── */
.msd-container .msd-dropdown {
  background-color: #ebebeb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ── Groupe optgroup ── */
.msd-container .msd-group-label {
  color: #424242;
  border-bottom: 1px solid #ccc;
  margin-bottom: 2px;
}

/* ── Options ── */
.msd-container .msd-option {
  padding: 0 25px 0 25px;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  transition: background-color 0.1s, border-color 0.1s;
  height: 45px;
}
.msd-container .msd-option:hover,
.msd-container .msd-option:focus-within {
  background-color: #424242;
  border-top-color: #424242;
  border-bottom-color: #424242;
}

.msd-container .msd-list .msd-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 10px 0;
  accent-color: #f28e00;

}

.msd-container .msd-list .msd-option .msd-opt-label {
  margin-top: 10px;
  margin-bottom: 10px;
  color: #424242;
  line-height: normal;
  font-weight: normal;
}
.msd-container .msd-option:hover .msd-opt-label,
.msd-container .msd-option:focus-within .msd-opt-label {
  color: #ebebeb;
}

/* ── Footer ── */
.msd-container .msd-footer {
  background-color: #424242;
}

.msd-container .msd-btn {
  color: #fff;
  padding: 10px;
  transition: color 0.15s;
  margin: 0;
}
.msd-container .msd-btn:hover,
.msd-container .msd-btn:focus-visible {
  color: #f28e00 !important;
  outline-color: #f28e00;
}

.msd-container .msd-btn.msd-btn-close {
  background-color: #f28e00;
  color: #fff !important;
  max-width: 75px;
  flex: none;
  border-radius:0px;
}
.msd-container .msd-btn.msd-btn-close:hover,
.msd-container .msd-btn.msd-btn-close:focus-visible {
  background-color: #222;
  color: #fff !important;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  .msd-container .msd-btn.msd-btn-close {
    max-width: none;
  }
}
