/* =============================================================================
   Moteur de recherche de marques : composant reutilisable
   Extrait de comment_supprimer.css pour servir l'include
   includes/moteur_recherche_marques.php sur les pages qui ne chargent pas
   comment_supprimer.css (ex. citoyen/profil_utilisateur.php).
   Autonome : embarque aussi les .suppr-badge* pour le rendu des pastilles.
   ============================================================================= */

.suppr-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 32px;
}

.suppr-search__input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid #d4d9de;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.suppr-search__input:focus {
    border-color: #2f6f63;
    box-shadow: 0 0 0 3px rgba(47, 111, 99, 0.12);
}

.suppr-search__input:disabled {
    background: #f4f6f7;
    color: #8a9199;
    cursor: not-allowed;
}

.suppr-search__results {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin: 6px 0 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 360px;
    overflow-y: auto;
}

.suppr-search__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.suppr-search__item a:hover {
    background: #f4f6f7;
}

.suppr-search__name {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suppr-badge {
    flex-shrink: 0;
}

.suppr-search__empty {
    padding: 12px;
    text-align: center;
    color: #8a9199;
    font-size: 0.9rem;
}

/* Pastilles de methode (autonome : dupliquees depuis comment_supprimer.css
   pour que l'include fonctionne sur une page qui ne charge pas cette feuille). */
.suppr-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.suppr-badge--email {
    background: #E9F5EF;
    color: #2D8F5E;
}

.suppr-badge--courrier {
    background: #FFF3E0;
    color: #B86E00;
}

.suppr-badge--formulaire {
    background: #E8F6F9;
    color: #1B6B7A;
}
