


/* ====== CONNECTED (zone profil) : mêmes couleurs, meilleur rendu ====== */
.connected{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    cursor: pointer;
    min-width: 250px;

    border-radius: 20px;

    background: transparent;              /* ✅ garde ton look “nav gris” */
    border: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* hover / clicked : on garde ton #3a3f44 */
.connected:hover,
.connected.clicked{
    background: #3a3f44;
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* texte */
.connected p{ color: #000; transition: color .2s ease; }
.connected:hover p,
.connected.clicked p{ color: #fff; }

/* avatar : plus clean mais même logique */

.profil-img {
    margin: 5px 10px 5px 10px;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
    width: 37px;
    height: 37px;
    object-fit: contain;
}

/* ====== ARROW ====== */
.arrow-menu-container{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    border-radius: 14px;

    margin-right: 6px;
    background: rgba(169, 153, 218, 0.12);     /* ✅ violet subtil */
    border: 1px solid rgba(147, 122, 221, 0.18);
}

.arrow-menu{
    width: 18px;
    height: 18px;
    margin: 0;
    filter: brightness(0);                /* noir par défaut */
    transition: filter .2s ease, opacity .2s ease;
}

.connected:hover .arrow-menu,
.arrow-menu.clicked{
    filter: brightness(1);                /* blanc quand hover/click */
}

/* animation rotate : garde ton JS, mais plus smooth */
.arrow-menu-container.rotate{
    transform: rotate(90deg);
    transition: transform .25s ease;
}
.arrow-menu-container.rotate-back{
    transform: rotate(0deg);
    transition: transform .25s ease;
}

/* ====== DROPDOWN : même couleur #3a3f44 mais plus premium + aligné ====== */
.dropdown-menu{
    z-index: 10000;
    position: absolute;

    top: calc(100% + 10px);
    right: 0;               /* ✅ aligné à droite (plus propre) */
    left: auto;
    width: calc(320px - 32px);
    max-width: 92vw;
    padding: 5px;
    background-color: #3a3f44;  /* ✅ ta couleur */
    border-radius: 14px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);

    /* au lieu de max-height “lourd” -> animation plus clean */
    max-height: none;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;

    transition: opacity .18s ease, transform .18s ease;
}

.dropdown-menu.show{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* items */
.dropdown-item{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;
    color: #fff;
    text-decoration: none;

    border-radius: 10px;
    width: calc(100% - 28px);
    margin: 4px; /* respiration */

    transition: background-color .15s ease, transform .15s ease;
}
.dropdown-item:hover{
    background-color: #53585d; /* ✅ ta couleur hover */
    transform: translateX(2px);
}
.logo-profil{
    height: 20px;
    width: 20px;
    margin-right: 0;
}
/* icône dans le dropdown */
.profil-menu{
    width: 26px;

    margin-right: 0;
}


/* évite les décalages */
.onSide{ margin-left: 0; }
