/**
 * Styles Searchbar - Design minimaliste
 */

/* ================================
   VARIANTE ICON LEFT
   ================================ */

.ldm-searchbar--icon-left .ldm-searchbar__wrapper {
    flex-direction: row-reverse;
}

.ldm-searchbar {
    width: 100%;
    max-width: 100%;
}

.ldm-searchbar__wrapper {
    display: flex;
    align-items: center;
    background: transparent;
    gap: 0.5rem;
    width: 100%;
}

/* Input */
.ldm-searchbar__input {
    flex: 1 1 auto;
    min-width: 0;
    border: solid 1px #d1d1d1 !important;
    border-radius: 99rem !important;
    padding: 0.75rem 1.25rem !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #333;
    background: transparent;
}

.ldm-searchbar__input::placeholder {
    color: #999;
    font-weight: 400;
}

.ldm-searchbar__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* Bouton submit avec icône loupe */
.ldm-searchbar__submit {
    display: flex;
    align-items: center;
    border: none !important;
    justify-content: center;
    padding: 0.5rem 1rem !important;
    cursor: pointer;
    flex-shrink: 0;
}

.ldm-searchbar__submit-icon::before {
    font-family: 'lunettesdemarque' !important;
    content: '\e8fa';
    font-size: 1.25rem;
    color: white;
    transition: color 0.2s ease;
}

.ldm-searchbar__submit:hover .ldm-searchbar__submit-icon::before {
    color: #666;
}

/* ================================
   VARIANTE LIGHT (pour fond noir)
   ================================ */

.ldm-searchbar--light .ldm-searchbar__input {
    border-color: #fff !important;
    color: #fff;
}

.ldm-searchbar--light .ldm-searchbar__input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.ldm-searchbar--light .ldm-searchbar__submit {
    background: #fff !important;
    border-radius: 99rem !important;
}

.ldm-searchbar--light .ldm-searchbar__submit-icon::before {
    color: #000;
}

.ldm-searchbar--light .ldm-searchbar__submit:hover {
    background: #e0e0e0 !important;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .ldm-searchbar__input {
        font-size: 1rem;
    }
}
