.th-autocomplete .th-search-control { position: relative; display: inline-block; vertical-align: middle; }
.th-autocomplete .th-search-label { display: inline; margin: 0; }
.th-autocomplete .th-search-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.th-autocomplete .th-suggestions { position: absolute; top: 100%; right: 0; z-index: 20000; width: 360px; max-width: calc(100vw - 24px); background: #fff; color: #222; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 5px 16px #0003; text-align: left; }
.th-autocomplete .th-suggestions[hidden] { display: none !important; }
.th-autocomplete .th-suggestions-list { list-style: none; margin: 0; padding: 4px 0; }
.th-autocomplete .th-suggestions-list li { display: block; float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; }
.th-autocomplete .th-suggestions-list a { display: block; padding: 9px 12px; color: #1a237e; background: #fff; text-decoration: none; white-space: normal; font-size: 14px; line-height: 1.4; }
.th-autocomplete .th-suggestions-list a:hover,
.th-autocomplete .th-suggestions-list a[aria-selected="true"] { color: #10164f; background: #edf0ff; }
.th-autocomplete .th-suggestion-type { display: block; color: #666; font-size: 11px; font-weight: normal; }
.th-autocomplete .th-search-all { display: block; box-sizing: border-box; width: 100%; padding: 10px 12px; border: 0; border-top: 1px solid #ddd; background: #f6f6f6; color: #1a237e; text-align: left; cursor: pointer; font: inherit; }

/* Lisibilité des suggestions malgré les couleurs du thème. */
.formulaire_recherche.th-autocomplete .th-suggestions-list a,
.formulaire_recherche.th-autocomplete .th-suggestions-list a:visited {
    color: #1a237e !important;
    background: #fff !important;
    text-shadow: none !important;
}

.formulaire_recherche.th-autocomplete .th-suggestions-list a:hover,
.formulaire_recherche.th-autocomplete .th-suggestions-list a:focus,
.formulaire_recherche.th-autocomplete .th-suggestions-list a[aria-selected="true"] {
    color: #10164f !important;
    background: #edf0ff !important;
}

.formulaire_recherche.th-autocomplete .th-suggestion-type {
    color: #555 !important;
}

.formulaire_recherche.th-autocomplete .th-search-all {
    color: #1a237e !important;
    background: #f6f6f6 !important;
    text-shadow: none !important;
}

/* Titre du menu de suggestions */
.formulaire_recherche.th-autocomplete .th-suggestions-list::before {
    content: "Quelques suggestions";
    display: block;
    padding: 10px 12px;
    color: #333 !important;
    background: #f3f3f3;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Resserrer les lignes du bouton de recherche complète. */
.formulaire_recherche.th-autocomplete .th-search-all {
    font-size: 16px !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: normal !important;
    padding: 10px 12px !important;
}

/* Recherche complète : 14 px en gras. */
.formulaire_recherche.th-autocomplete .th-search-all {
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
}

/* Recherche complète : 14 px en gras. */
.formulaire_recherche.th-autocomplete .th-search-all {
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
}
