@import url("variable.css");

/* .block_illicosearch{
    min-height: 50px;
    min-width: 300px;
    max-width: 600px;
} */

.bt_image_recherche{
    width: min-content;
    float: right;
}

.bt_image_recherche svg{
    fill: var(--bt-recherche);
    height: 20px;
}

.menu_recherche{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.900);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000
}

.contenu_recherche{
    width: 80%;
    min-height: 80%;
    height: auto;
    background-color: var(--fenetre-bg);
    padding: 1rem;
}

#illicosearch-search {
    border: solid 2px var(--input-bd);
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    background-color: var(--input-bg);
    color: var(--input-text);
    min-width: 200px;
    width: 98%;
}


.menu_recherche::before {
    content: "X";
    color: rgb(255, 255, 255);
    position: relative;
    left: 88%;
    top: -42vh;
    font-size: 24px;
}   

#illicosearch-response {
    margin-top: 10px;
    max-height: 70vh !important;
    overflow: auto !important;
    padding: 15px;
}

#illicosearch-response .suggestionrecherche {
    padding: 15px;
    background-color: var(--suges-bg);
    border-radius: 10px;
    margin-bottom: 10px;
    color: var(--suges-text);
}

#illicosearch-response .suggestionrecherche p {
    display: inline-block;
    margin: 5px;
    background-color: var(--suges-bt-bg);
    padding: 10px;
    border-radius: 7px;
    cursor: pointer;
    color: var(--suges-bt-text);
}

#illicosearch-response .suggestionrecherche p:hover {
    background-color: var(--suges-bt-bg-hover);
    color: var(--suges-bt-text-hover);
}

#illicosearch-response .titlerecherche {
    color: var(--article-text);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 5px;
    line-height: 1.2em;
}

#illicosearch-response .articlerecherche {
    border: 2px solid var(--article-bd);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    padding: 15px;
    overflow: hidden;
    width: 100%;
    margin-top: 5px;
     background-color: white;
}

#illicosearch-response .articlerecherche:hover .titlerecherche {
    color: var(--article-titre-hover);
}


#illicosearch-response .articlerecherche .autor {
    display: flex;
    gap: 10px;
    color: var(--article-autor);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
}

#illicosearch-response .articlerecherche .html {
    color: var(--article-text);
    margin-top: 4px;
    font-size: 12px;
    line-height: 18px;
    margin: 0px;
}

#illicosearch-response .imagerecherche {
    height: 110px;
    width: 110px;
    min-height: 80px;
    min-width: 80px;
    top: 0px;
    margin-right: 15px;
    float: left;
    display: flex;
    justify-content: center;
    align-content: center;
}

#illicosearch-response .imagerecherche img {
    object-fit: cover;
    border-radius: 7px !important;
}

@media (max-width: 720px) {

    #illicosearch-response .imagerecherche {
        max-width: 80px;
        max-height: 80px;
        display:flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    #illicosearch-response .articlerecherche a {
        width: 100%;
        overflow: hidden;
    }

    #illicosearch-response .articlerecherche .titlerecherche {
        font-size: 14px;
    }

    #illicosearch-response .articlerecherche .autor {
        font-size: 12px;
    }

    #illicosearch-response .articlerecherche .html {
        font-size: 12px;
    }
}