#top_bar .connexion {
    background-color: white;
    text-transform: uppercase;
    position: relative;
    z-index: 100;
    display: block;
}

#header #main_menu {
    z-index: 100;
}

#header #top_bar {
    z-index: 300;
}

#top_bar > .core-account {
    position: relative;
    z-index: 310;
}

#top_bar .core-account__menu {
    z-index: 320;
}

#top_bar .connexion ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    overflow: visible;
    height: 0;
}

.rtl #top_bar .connexion ul {
    right: inherit;
    left: 0;
}

#top_bar .connexion:hover ul {
    display: block;
    height: auto;
}

#top_bar .connexion ul li a {
    text-transform: lowercase;
    padding: 0 0 0 .5em;
}

#top_bar .connexion {
    text-transform: uppercase;
    padding: 0 0 0 15px;
}

#top_bar .connexion > span {
    padding: 5px 0;
    display: block;
    text-align: center;
    cursor: pointer;
}

#top_bar .connexion > span > i {
    float: right;
    margin: 0 10px;
}

#top_bar .connexion {
    position: relative;
}

#top_bar .connexion ul.user_profil {
    background-color: transparent;
    padding: 10px 0 0 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    top: 99%;
    position: absolute;
    right: -10px;
    border-top: none;
    width: 228px;
    overflow: hidden;
    -webkit-transition: all .3s ease;
    transition: all .5s ease;
}

#top_bar .connexion:hover ul.user_profil {
    border: 1px solid transparent;
    border-top: none;
    opacity: 1;
    height: auto;
    overflow: visible;
    box-shadow: -3px 3px 5px rgba(0, 0, 0, 0.15);
}

.connexion .user_profil li {
    height: 0;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    position: relative;
}

.connexion:hover .user_profil li {
    height: auto;
}

#top_bar .connexion .user_profil li a {
    color: black;
    display: block;
    padding: .6em 1em .6em 3em;
    text-transform: none;
    background-color: #efefef;
}

#top_bar .connexion .user_profil li a:hover {
    background-color: white;
}

#top_bar .connexion .user_profil li a::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    text-decoration: inherit;
    font-size: 18px;
    position: absolute;
    left: 10px;
    color: #585858;
}

.connexion .user_profil li.signin a,
.connexion .user_profil li.login a,
.connexion .user_profil li.logout a,
.connexion .user_profil li.profil a {
    background-color: rgba(54, 93, 157, 0.1);
}

.connexion .user_profil li.signin a::before {
    content: "\f044";
}

.connexion .user_profil li.login a::before {
    content: "\f2f6";
}

.connexion .user_profil li.logout a::before {
    content: "\f2f5";
}

.connexion .user_profil li.profil a::before {
    content: "\f007";
}

.connexion .user_profil li.annuaire a::before {
    content: "\f03a";
}

.connexion .user_profil li.carte_adherent a::before {
    content: "\f2c2";
}

@media only screen and (max-width: 480px) {
    #top_bar > .core-account {
        box-sizing: border-box;
        display: block;
        width: 100%;
        margin-top: .5rem;
        padding: 0;
    }

    #top_bar .core-account__toggle {
        justify-content: center;
        width: 100%;
    }

    #top_bar .core-account__menu {
        right: 0;
        left: 0;
        min-width: 0;
        top: calc(100% + .25rem);
    }
}

@media only screen and (min-width: 481px) {
    #top_bar .connexion {
        display: table-cell;
        background-color: transparent;
    }
}

@media only screen and (min-width: 768px) {
    #top_bar .connexion {
        padding: 0 15px;
    }
}

@media only screen and (min-width: 1025px) {
    #top_bar .connexion {
        display: table-cell;
    }

    #top_bar > .core-account {
        display: table-cell;
        position: relative;
        vertical-align: middle;
    }

    #top_bar .core-account__action,
    #top_bar .core-account__toggle {
        min-height: 32px;
        padding: .25rem .5rem;
    }
}
