/**
 * Fichier  : /menus/main/assets/css/search.css
 * Fonction : style de la barre de recherche
 */


/* ==================================================
   FORMULAIRE
================================================== */

.modern-search-form {
    position: relative;
    width: 20em;
}


/* ==================================================
   INPUT
================================================== */

.modern-search-input {
    width: 100%;
    height: var(--button-height);
}

.modern-search-input {
    padding: 0 60px 0 20px;
}

.modern-search-input {
    background-color: #ffffff20;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--block-borderRadius);
    outline: none;
}

.modern-search-input {
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}


.modern-search-input {
    font-family: 'content-font';
    font-size: 15px;
    color: #fff;
}

/*** PLACEHOLDER ***/

.modern-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/*** FOCUS ***/

.modern-search-input:focus {
    border-color: var(--color__2);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}


/* ==================================================
   BOUTON
================================================== */

.modern-search-button {
    position: absolute;
    top: 50%;
    right: 10px;
}

.modern-search-button {
    width: 40px;
    height: 40px;
}

.modern-search-button {
    transform: translateY(-50%);
}

.modern-search-button {
    background: var(--gradient__3);
    border: 0;
    border-radius: 12px;
}

.modern-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-search-button {
    cursor: pointer;
}

.modern-search-button {
    transition:
        transform .2s ease,
        opacity .2s ease;
}

/*** ÉTATS ***/

.modern-search-button:hover {
    transform: translateY(-50%) scale(1.05);
}

.modern-search-button:active {
    transform: translateY(-50%) scale(0.96);
}


/* ==================================================
   ICÔNE
================================================== */

.modern-search-icon {
    width: 20px;
    height: 20px;
    color: #fff;
}