When you take pictures of flowers close up, the depth of focus is very thin. It can make a nice dreamy effect with a lot of fore- and background blur. But if you want to present the flower with all its intricate details in full sharpness, you have to take a different approach.
By taking several pictures at different focus depths from the front to the back of the subject, and combining the pictures and only keeping the parts from each picture that are in focus, you will end up with one picture where the whole subject is in focus; front to back. The photographic technique by which several pictures are taken at different focus depths from the front to the back of a subject is called focus bracketing.
To combine all the pictures into one sharp picture, using layers in Photoshop for instance, is almost impossible to do by hand. For even the smallest flower you might need more than 50 frames. Fortunately, there are specialized software, which can automate this process. I use Zerene Stacker, which gives fantastic results. This process of combining the frames is called focus stacking.
<- 65 mm, f 4.0, 23 images stacked