.autocomplete-item{
   cursor: pointer;
   margin: 2px;
}

.autocomplete-item:hover{
    background-color: #d6f0f9  ;
}
/* choices-bootstrap5.css */
.choices {
    position: relative;
    margin-bottom: 1rem;
     margin-bottom: 0;
}

.choices__inner {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    background-color: #fff;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 1rem;
         min-height: 40px;
        padding: 0 7.5px;
        display: flex;
        align-items: center;
}

.is-focused .choices__inner,
.is-open .choices__inner {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.choices__list--single {
    display: inline-block;
    padding: 4px 16px 4px 4px;
    width: 100%;
}

.choices__list--multiple .choices__item {
    display: inline-block;
    border-radius: 0.25rem;
    padding: 2px 8px;
    font-size: 0.875rem;
    margin-right: 3.75px;
    margin-bottom: 3.75px;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff;
    word-break: break-all;
}

.choices__list--dropdown {
    visibility: hidden;
    z-index: 1;
    position: absolute;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    top: 100%;
    margin-top: -1px;
    overflow: hidden;
    word-break: break-all;
}

.is-active.choices__list--dropdown {
    visibility: visible;
}

.choices__list--dropdown .choices__list {
    position: relative;
    max-height: 300px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.choices__list--dropdown .choices__item {
    position: relative;
    padding: 0.375rem 1rem;
    font-size: 1rem;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #f8f9fa;
}

.choices__placeholder {
    opacity: 0.5;
}

.choices__input {
    display: inline-block;
    vertical-align: baseline;
    background-color: transparent;
    font-size: 1rem;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    max-width: 100%;
    padding: 4px 0 4px 2px;
}

.choices__input:focus {
    outline: 0;
}


.form-control::placeholder {

    color: #6c757d !important;
    opacity: 1;
}

select.form-control {

    color: #6c757d;
}

select.form-control option:not(:first-child) {
    color: #212529;
}

select.form-control option:first-child {
    color: #6c757d;
}

select.form-control:focus {
    color: #212529;
}

  .btn {
           height: 40px;
        display: flex;
        align-items: center;
        justify-content: center
    }

        label {
        margin-bottom: 0.5rem;
    }

       .col-md-3 {
        display: flex;
        flex-direction: column;
    }

    input[type=radio].btn-check {
        display: none!important;
    }

    input[type=radio].btn-check-color {
        display: none!important;
    }

.loader {
  width: 82px;
  height: 18px;
  position: relative;
}
.loader::before , .loader::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translate(-50% , 10%);
  top: 0;
  background: #FF3D00;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: jump 0.5s ease-in infinite alternate;
}

.loader::after {
  background: #0000;
  color: #fff;
  top: 100%;
  box-shadow: 32px -20px , -32px -20px;
  animation: split 0.5s ease-out infinite alternate;
}

@keyframes split {
  0% { box-shadow: 8px -20px, -8px -20px}
  100% { box-shadow: 32px -20px , -32px -20px}
}
@keyframes jump {
 0% { transform: translate(-50% , -150%)}
 100% { transform: translate(-50% , 10%)}
}

.champ-commun{
    display: none!important;
}

/* CSS pour uniformiser les dimensions */
.couleur-item {
    aspect-ratio: 1/1;
    width: 100%;
    min-width: 60px;
    max-width: 80px;
}

.card {
    border-radius: 8px;
    transition: transform 0.2s;
}

.couleur-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.couleur-type {
    font-size: 0.9rem;
}

/* Assure que toutes les cartes ont la même hauteur dans leur colonne */
.row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.col {
    display: flex;
    align-items: stretch;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-hidden {
    display: none;
}