#sidebar {
    bottom: 0;
}

/* Espace réservé sous la liste des parcours. */
#sidebar #project-list-container {
    bottom: 110px;
}

#sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 110px;
    padding: 8px 12px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    background: #ffffff;
    border-top: none;
    border-bottom-right-radius: inherit;
}

#sidebar-create-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

#sidebar-create-actions button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 14px;
    gap: 6px;
    font-size: 13px;
    line-height: 16px;
}

#sidebar-create-actions .icon-right {
    flex-shrink: 0;
}

#sidebar #btn-feedback {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: fit-content;
    max-width: 100%;
    min-height: 32px;
    height: auto;
    margin: 0;
    background: transparent;
    color: #8A8F94;
    border: none;
    box-shadow: none;
    border-radius: 9999px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 15px;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

#sidebar #btn-feedback:hover {
    background: transparent;
    color: #73797F;
}

#sidebar #btn-feedback:focus-visible {
    outline: 2px solid #116e43;
    outline-offset: 2px;
}

/* Modale */
#feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

#feedback-modal a {
    color: #116e43;
    text-decoration: none;
    font-weight: 500;
}

#feedback-modal a:hover {
    text-decoration: underline;
}

/* Masquage strict sur mobile */
@media (max-width: 768px) {
    #sidebar #project-list-container {
        bottom: 0;
    }


}
/* L'aide reste ancrée au bas du volet, indépendamment de la liste. */
#sidebar > .sidebar-help-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
}

#sidebar #project-list-container {
    margin-bottom: calc(38px + env(safe-area-inset-bottom, 0px));
}

/* Bouton d'aide pleine largeur, en conservant les marges du volet. */
#sidebar > .sidebar-help-footer {
    padding: 4px 14px max(6px, env(safe-area-inset-bottom, 0px));
}

#sidebar .sidebar-help-footer #btn-feedback {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    gap: 7px;
    border: 0;
    border-radius: 12px;
    background: #e7f3ec;
    color: #286447;
    font-size: 10px;
    line-height: 15px;
    text-align: left;
    justify-content: flex-start;
}

#sidebar .sidebar-help-footer #btn-feedback span {
    flex: 1 1 auto;
    min-width: 0;
}

#sidebar .sidebar-help-footer #btn-feedback::after {
    content: '\2192';
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
}

#sidebar .sidebar-help-footer #btn-feedback:hover {
    background: #d9ecdf;
    color: #155d38;
}

#sidebar #project-list-container {
    margin-bottom: calc(44px + max(6px, env(safe-area-inset-bottom, 0px)));
}
