/* === STYLE GLOBAL === */
.am360-form {
  max-width: 900px;
  margin: auto;
  color: #000;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

h2 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* === CHAMPS === */
.form-control,
.form-select {
  border: 1px solid #000;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  height: 58px;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #000;
  box-shadow: none;
}

label.form-label {
  font-weight: 500;
  color: #000;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* === SEPARATEURS === */
hr {
  border: 0;
  border-top: 1px solid #000;
  opacity: 0.15;
}

/* === BOUTON === */
.btn-dark {
  border-radius: 0;
  background-color: #000;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-dark:hover {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

/* === CHECKBOX === */
.form-check-input {
  border: 1px solid #000;
  border-radius: 0;
  width: 18px;
  height: 18px;
}

.form-check-input:checked {
  background-color: #000;
  border-color: #000;
}

/* === SELECT2 - BASE COMMUNE === */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 1px solid #000 !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  min-height: 58px;
  height: 58px !important;
  /* margin: auto 0!important; */
  display: flex;
  align-items: center;
  box-shadow: none !important;
}

/* Uniformise le rendu visuel du texte */
.select2-selection__rendered {
  color: #000 !important;
  /* padding-left: 0.75rem !important; */
  /* padding-right: 0.75rem !important; */
  font-size: 1rem !important;
  line-height: normal !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Flèche du select simple */
.select2-selection__arrow {
  height: 58px !important;
  right: 10px;
}

/* === SELECT2 MULTIPLE (badges intégrés au champ) === */
.select2-container--default .select2-selection--multiple {
  padding: 0 0.5em!important;
  gap: 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 2px !important;
  font-weight: 500;
  padding: 4px 0 4px 20px!important;
  font-size: 0.9rem !important;
  color: #000 !important;
  background-color: #fafafa !important;
  margin: 2px 10px 2px 0 !important;
  /* margin: 0!important; */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Pastel doux (plus subtil, proche LV) */
.select2-selection__choice:nth-child(1n) { background-color: #f9f7f6 !important; }
.select2-selection__choice:nth-child(2n) { background-color: #f5f5f5 !important; }
.select2-selection__choice:nth-child(3n) { background-color: #f9f9f9 !important; }

/* Croix d’effacement minimaliste */
.select2-selection__choice__remove {
  /* margin-right: 6px !important; */
  font-size: 1rem !important;
  color: #000 !important;
  opacity: 0.4;
  font-weight: 700;
  transition: opacity 0.2s ease;
  height: 100%!important
}
.select2-selection__choice__remove:hover {
  opacity: 0.8;
}

/* === PLACEHOLDER === */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999 !important;
}

/* === MENU DEROULANT === */
.select2-dropdown {
  border: 1px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: #fff !important;
}

.select2-container--default .select2-results__option {
  padding: 10px 15px !important;
  font-size: 1rem;
  color: #000;
}

.select2-container--default .select2-results__option--highlighted {
  background-color: #000 !important;
  color: #fff !important;
}

/* === SEARCH FIELD === */
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 0 !important;
  padding-left: 20px;
  height: 50px;
  font-size: 1rem;
}

.form-control {
  border-radius: 0!important; 
  border: 1px solid #000000!important;
}

/* === TEXTAREA === */
textarea.form-control {
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}

option {
  font-weight: 200;
}

/* === ALERT SUCCESS === */
.alert-success {
  background-color: #f7f7f7;
  color: #000;
  border: 1px solid #000;
  border-radius: 0;
}

/* === ESPACEMENTS === */
.mb-4 label,
.mb-3 label {
  margin-bottom: 0.5rem;
}

label {
  font-weight: 400!important;
}

.form-check-label {
  margin-left: 4px;
  font-weight: 400!important;
}

.select2-search .select2-search--inline {
    margin: auto 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .am360-form {
    padding: 0 1rem;
  }

  .form-control,
  .form-select,
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple {
    min-height: 58px;
    height: 58px !important;
  }

  .select2-selection__rendered {
    font-size: 0.95rem !important;
    margin-bottom: 0;
    padding-left: 15px;
  }

  label.form-label {
    font-size: 0.9rem;
  }
}


.select2-container .select2-selection--multiple .select2-selection__rendered {
    margin: auto 0;
}

.select2-container .select2-search--inline .select2-search__field {
    margin: auto 5px!important;
    vertical-align: top!important;
}