/* ===================================
   Styles pour le bouton d'élargissement de recherche
   =================================== */



/* Bouton pour élargir la recherche */
.btn-elargir-recherche {
    color: var(--blanc) !important;
    border: 0;
    transition: all .2s;
    padding: 9px;
    margin: 0px;
    display: inline-block;
    grid-column: 4 / 5;
    font-size: 14pt;
    border-radius: 4px;
    left: -2px;
    position: relative;
    width: 100%;    
    height: auto;
    min-width: fit-content;
    margin-top: auto;
    margin-bottom: auto;
}



/* Animation d'apparition */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carte_et_liste>.les_producteurs .producteur.aucun_producteur, #resultat>.les_producteurs .les_producteurs .producteur.aucun_producteur {
    cursor: auto;
    flex-direction: column;
    text-align: center;
}
.carte_et_liste>.les_producteurs .producteur.aucun_producteur p{
    width: 100%;
    text-align: center;
}

/* État de chargement */
.btn-elargir-recherche.loading {
    position: relative;
    color: transparent;
    cursor: default;
}

.btn-elargir-recherche.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    margin-left: -7px;
    margin-top: -7px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animation de disparition */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Design responsive */
@media (max-width: 768px) {
    .btn-elargir-recherche {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .btn-elargir-recherche {
        padding: 8px 14px;
        font-size: 0.85em;
    }
}
