@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}


/* Adaptation intl-tel-input à ton style */
.lf-input-wrap .iti {
    width: 100%;
}

.iti__selected-flag {
    padding: 0 0.8rem 0 0.4rem;
    border-radius: 0.85rem 0 0 0.85rem;
}

/* Style du dropdown (optionnel) */
.iti__country-list {
    border-radius: 0.85rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Avatar utilisateur connecté ── */
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: background 0.2s ease;
    text-decoration: none;
    color: var(--ink) !important;
}

.user-avatar-btn:hover {
    background: var(--g-50);
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--g-600);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.user-avatar-name {
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 200px;
}

.user-dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.user-dropdown-menu .dropdown-item:hover {
    background: var(--g-50);
    color: var(--g-600);
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: #fff0f0;
    color: #dc3545 !important;
}

.user-dropdown-divider {
    margin: 0.3rem 0.5rem;
    border-color: #eee;
}

/* ── Drawer Profil (2e drawer, au-dessus du drawer services) ── */
.bn-profil-drawer {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 2000; /* au-dessus du drawer services (1999) */
    background: #fff;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
    padding: 0 0 1rem;
    transform: translateY(110%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
    display: none; /* caché sur desktop */
}

@media (max-width: 991.98px) {
    .bn-profil-drawer { display: block; }
}

.bn-profil-drawer.open { transform: translateY(0); }

/* Overlay dédié au drawer profil */
.bn-profil-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,46,22,.45);
    backdrop-filter: blur(3px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

@media (max-width: 991.98px) {
    .bn-profil-overlay { display: block; }
}
.bn-profil-overlay.open { opacity: 1; pointer-events: auto; }

/* En-tête du drawer profil */
.bn-profil-head {
    padding: .85rem 1.25rem .75rem;
    display: flex;
    justify-content: center;
}
.bn-profil-handle-bar {
    width: 36px; height: 4px;
    background: var(--stone);
    border-radius: 2px;
}

/* Carte identité */
.bn-profil-identity {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .6rem 1.25rem 1rem;
    border-bottom: 1px solid var(--stone);
    margin-bottom: .4rem;
}

.bn-profil-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--g-600);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2.5px solid var(--g-200);
}

.bn-profil-name {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    line-height: 1.2;
}
.bn-profil-role {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .1rem;
}

/* Items du menu profil */
.bn-profil-menu {
    padding: .25rem .75rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.bn-profil-menu-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    color: var(--body);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    text-align: left;
    transition: background .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}

.bn-profil-menu-item:hover,
.bn-profil-menu-item:active {
    background: var(--g-50);
    color: var(--g-800);
}

.bn-profil-menu-item.danger { color: #dc2626; }
.bn-profil-menu-item.danger:hover,
.bn-profil-menu-item.danger:active {
    background: #fef2f2;
    color: #b91c1c;
}

.bn-profil-menu-icon {
    width: 36px; height: 36px;
    border-radius: .7rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.bn-profil-menu-icon.green { background: var(--g-50); color: var(--g-600); }
.bn-profil-menu-icon.red   { background: #fef2f2; color: #dc2626; }
