/*
 Theme Name:   Abogado Child Theme
 Theme URI:    http://abogado.ancorathemes.com
 Description:  Abogado Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com
 Template:     abogado
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  abogado
*/


/* =Theme customization starts here
------------------------------------------------------------ */

.acf-fields > .acf-field {
    border: 0;
}

ul.acf-radio-list li label {
    display: flex;
    gap: 0.5em;
}

ul.acf-radio-list li input[type="checkbox"], ul.acf-radio-list li input[type="radio"], ul.acf-checkbox-list li input[type="checkbox"], ul.acf-checkbox-list li input[type="radio"] {
    margin-right: 0.5em;
}

.acf-field-group {
    .acf-fields {
        display: flex;
        gap: 1em;

        .acf-field {
            flex: 1;
        }
    }
}

.entreprises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1em;
    margin-bottom: 5em;
}

.entreprise__card {
    /*max-width: 350px;*/
    border: 1px solid #ccc;
    padding: 1em;

    .icon {
        width: 1.5em;
    }

    p {
        margin: 0.5em 0;
        line-height: 1.2;
    }

    .nom-entreprise {
        font-weight: bold;
        font-size: 1.2em;
    }

    .contact-name {
        font-weight: bold;
    }

    .adresse {
        font-size: 0.8em;
        /*line-height: 1.1;*/
    }
    .activite {
        font-weight: bold;
    }
    .description-activite {
        font-size: 0.8em;
    }
}

.entreprise__card__images {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    .logo-entreprise {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        max-width: 50%;
        /*margin-left: auto;*/
    }
    .photo-contact {
        flex: 1;
        display: flex;
        justify-content: flex-start;

        img {
            width: 100%;
            height: auto;
        }
    }
}

.flex {
    display: flex;
    gap: 1em;
}

/* Style des filtres */
.trombinoscope-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.filter-actions {
    margin-top: 1rem;
}

.reset-filters {
    color: #6c757d;
    text-decoration: none;
}

.reset-filters:hover {
    text-decoration: underline;
}

/* Style du bouton de retour */
.back-to-all {
    margin-top: 2rem;
    text-align: center;
}

.back-to-all .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.back-to-all .button:hover {
    background-color: #005177;
}