/* ================================================================
   FEGAFOOT — AUTOCOMPLÉTION DE RECHERCHE
   À ajouter à la fin de css/search-results.css
   OU à la fin de css/style.css
   ================================================================ */


/* -----------------------------------------------
   DROPDOWN AUTOCOMPLÉTION
----------------------------------------------- */
.search-suggest-drop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e8e8e8;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 9999;
    display: none;
    max-height: 420px;
    overflow-y: auto;
}

/* Scrollbar custom */
.search-suggest-drop::-webkit-scrollbar {
    width: 5px;
}
.search-suggest-drop::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 5px;
}
.search-suggest-drop::-webkit-scrollbar-thumb {
    background: #0561ac;
    border-radius: 5px;
}

/* Chaque item */
.search-suggest-drop li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #282828;
    font-size: 14px;
    font-family: 'Graphik', sans-serif;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none !important;
}

.search-suggest-drop li a:hover {
    background: #f0f6ff;
    color: #0561ac;
}

/* Vignette */
.search-suggest-drop li a img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.suggest-no-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0561ac 0%, #19a354 100%);
    flex-shrink: 0;
    display: block;
}

/* Infos texte */
.suggest-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.suggest-info strong {
    font-size: 14px;
    font-weight: 600;
    color: #282828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.suggest-info em {
    font-size: 11px;
    font-style: normal;
    color: #19a354;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ligne séparatrice avant "Voir tous" */
.search-suggest-drop li.suggest-all {
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    padding-top: 4px;
}

.search-suggest-drop li.suggest-all a {
    background: #f7faff;
    color: #0561ac;
    font-weight: 600;
    justify-content: center;
    font-size: 13px;
    gap: 8px;
    border-radius: 0 0 8px 8px;
}

.search-suggest-drop li.suggest-all a:hover {
    background: #e8f1fb;
}

.search-suggest-drop li.suggest-all a .fa {
    font-size: 13px;
}

.search-suggest-drop li.suggest-all a strong {
    color: #0561ac;
    font-size: 13px;
}

/* Assure que le conteneur parent est relatif */
.search-input-wrap {
    position: relative;
}

/* Overlay/modal de recherche desktop */
#myOverlay .overlay-content,
#myOverlay1 .overlay-content {
    position: relative;
}

#myOverlay  .search-suggest-drop,
#myOverlay1 .search-suggest-drop {
    top: calc(100% + 6px);
    max-width: 100%;
}


/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 767px) {
    .search-suggest-drop {
        max-height: 320px;
    }

    .search-suggest-drop li a {
        padding: 9px 12px;
        font-size: 13px;
    }

    .suggest-info strong {
        font-size: 13px;
    }
}