/* Styles de base */
.pmpro-level-2-4-users-fields {
    width: 100%;
}

/* Style du conteneur utilisateur */
.user-info {
    margin-bottom: 30px;
    width: 100%;
}

/* En-tête avec logo et info société */
.user-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.company-logo {
    max-width: 100px;
    max-height: 100px;
    margin-right: 20px;
    object-fit: contain;
}

.company-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.company-name {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

.activite-principale {
    font-style: italic;
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

/* Section secondaire avec les informations détaillées */
.user-info-secondary {
    background-color: #f0f0f0;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Zone de contact avec avatar */
.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.contact-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    color: #333;
}

.fonction-representant {
    font-style: italic;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.3;
    color: #666;
}

/* Informations textuelles */
.user-info-secondary p {
    margin: 8px 0;
    line-height: 1.4;
}

.user-info-secondary p strong {
    font-weight: 600;
    color: #333;
}

/* Description de la société */
.description-societe {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.description-societe-label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.description-societe p {
    line-height: 1.6;
    color: #444;
}

/* Filtres de recherche */
.filter-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
    width: 100%;
}

#activite-filter, #search-input {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* Wrapper pour la flèche personnalisée du select activité */
.activite-filter-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    display: flex;
}

.activite-filter-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    pointer-events: none;
}

#activite-filter {
    flex: 1;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

#search-input {
    flex: 2;
    min-width: 300px;
}

/* Section entreprise */
.company-section {
    margin-bottom: 40px;
    width: 100%;
}

.company-users {
    margin-left: 0;
    width: 100%;
}

/* Pagination */
.pmpro-annuaire-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
    width: 100%;
}

.pmpro-annuaire-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: white;
    transition: all 0.2s ease;
}

.pmpro-annuaire-pagination .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pmpro-annuaire-pagination .page-numbers:hover:not(.current) {
    background-color: #f8f9fa;
    border-color: #007bff;
}

/* Section non paginée */
.company-section.not-paginated {
    display: none;
}

/* Liens sociaux et vCard */
.linkedin-link {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
}

.linkedin-icon, .vcard-icon {
    width: auto;
    height: 50px;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.linkedin-icon:hover, .vcard-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Adaptations responsives */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }
    
    #activite-filter, #search-input {
        width: 100%;
        min-width: unset;
    }

    .activite-filter-wrapper {
        width: 100%;
        min-width: unset;
    }
    
    .user-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .company-logo {
        margin: 0 0 15px 0;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatar {
        margin: 0 0 15px 0;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .linkedin-link {
        justify-content: center;
    }
}

/* Utilisation de la classe spécifique pour garantir la priorité */
.pmpro-btn-en-savoir-plus {
    display: inline-block !important; /* Ajout du !important pour forcer le style */
    padding: 4px 10px !important;
    background-color: #0073aa !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    margin: 4px 4px !important;
}

.pmpro-btn-en-savoir-plus:hover {
    background-color: #005177 !important;
    color: #ffffff !important;
}

.pmpro-btn-custom {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000; /* Remplacez par votre couleur */
    color: #ffffff !important; /* !important force la couleur si le thème insiste */
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.pmpro-btn-custom:hover {
    background-color: #005177;
    text-decoration: none;
}