.sidebar-nav {
    height: 100%;
    width: 72px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.25s ease, transform 0.25s ease;
    box-shadow: 1px 0 17px -9px rgba(11, 10, 10, 0.5);
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.sidebar-nav.expanded {
    width: 300px;
}

.sidebar-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
    cursor: pointer;
    flex-shrink: 0;
    background: none;
    border: none;
    width: 100%;
}

.sidebar-nav-toggle .toggle-icon {
    font-size: 14px;
    color: #484848;
    transition: transform 0.25s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav.expanded .sidebar-nav-toggle .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-nav-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px 16px;
    flex: 1;
}

.sidebar-nav-section-title {
    font-size: 12px;
    font-weight: 500;
    color: #808080;
    line-height: 28px;
    padding: 0 4px;
    white-space: nowrap;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, height 0.2s ease;
    margin: 0;
}

.sidebar-nav.expanded .sidebar-nav-section-title {
    opacity: 1;
    height: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #484848;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-nav-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #484848;
}

.sidebar-nav-item.active {
    background-color: #b100c9;
    color: #fff;
}

.sidebar-nav-item.active:hover {
    background-color: #9a00ad;
    color: #fff;
}

.sidebar-nav-item.active .sidebar-nav-item-icon {
    filter: brightness(0) invert(1);
}

.sidebar-nav-item-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}

.sidebar-nav-item-group .sidebar-nav-item {
    padding: 0;
    height: auto;
    gap: 12px;
}

.sidebar-nav-item-group .sidebar-nav-item:hover {
    background: none;
}

.sidebar-nav-item.locked {
    color: #a9acb4;
    cursor: default;
}

.sidebar-nav-item.locked:hover {
    background-color: transparent;
    color: #a9acb4;
}

.sidebar-nav-item-group.locked {
    cursor: pointer;
}

.sidebar-nav-item-group.locked .sidebar-nav-item {
    color: #a9acb4;
}

.sidebar-nav-item-hint {
    font-size: 10px;
    font-weight: 400;
    color: #a9acb4;
    line-height: normal;
    white-space: normal;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, height 0.2s ease;
    margin: 0;
}

.sidebar-nav.expanded .sidebar-nav-item-hint {
    opacity: 1;
    height: auto;
}

.sidebar-nav-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav-item-icon img {
    width: 20px;
    height: 20px;
}

.sidebar-nav-lock-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a9acb4;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-nav.expanded .sidebar-nav-lock-icon {
    opacity: 1;
    position: relative;
    cursor: pointer;
}

.sidebar-nav-lock-tooltip {
    display: none;
    position: fixed;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.1);
    padding: 24px;
    z-index: 99999;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.sidebar-nav-lock-tooltip.visible {
    display: flex;
}

.sidebar-nav-lock-tooltip-icon {
    width: 40px;
    height: 40px;
    background-color: #efccf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav-lock-tooltip-icon img {
    width: 20px;
    height: 20px;
}

.sidebar-nav-lock-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-lock-tooltip-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 21px;
    color: #484848;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
}

.sidebar-nav-lock-tooltip-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #484848;
    margin: 0;
    white-space: normal;
}

.sidebar-nav-lock-tooltip-text strong {
    font-weight: 700;
}

.sidebar-nav-item-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

.sidebar-nav.expanded .sidebar-nav-item-label {
    display: block;
}

.sidebar-nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav.expanded .sidebar-nav-badge {
    display: none;
}

.sidebar-nav-badge img {
    width: 6px;
    height: 6px;
}

.sidebar-nav-item-badge-count {
    background-color: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-nav:not(.expanded) .sidebar-nav-item-badge-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    padding: 0 4px;
}

.sidebar-nav:not(.expanded) .sidebar-nav-item {
    justify-content: center;
    padding: 0;
    width: 48px;
    margin: 0 auto;
}

.sidebar-nav:not(.expanded) .sidebar-nav-item-group {
    padding: 0;
    align-items: center;
}

.sidebar-nav:not(.expanded) .sidebar-nav-item-group .sidebar-nav-item {
    width: 48px;
    height: 48px;
    justify-content: center;
    margin: 0;
}

.sidebar-nav:not(.expanded) .sidebar-nav-content {
    align-items: center;
    gap: 4px;
}

.sidebar-nav-contact {
    margin-top: 16px;
    padding: 16px 12px;
    background-color: #f5f5f5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-contact-label {
    font-size: 13px;
    font-weight: 600;
    color: #484848;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #b100c9;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.sidebar-nav-contact-btn:hover {
    background: #9a00ad;
}

.sidebar-nav-contact-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.sidebar-nav:not(.expanded) .sidebar-nav-contact {
    padding: 8px;
    align-items: center;
}

.sidebar-nav:not(.expanded) .sidebar-nav-contact-label {
    display: none;
}

.sidebar-nav:not(.expanded) .sidebar-nav-contact-btn .sidebar-nav-item-label {
    display: none;
}

.sidebar-nav:not(.expanded) .sidebar-nav-contact-btn {
    padding: 8px;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.sidebar-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-nav:not(.expanded) .sidebar-nav-footer {
    padding: 12px 0;
}

.sidebar-nav:not(.expanded) .sidebar-nav-footer .sidebar-nav-footer-action,
.sidebar-nav:not(.expanded) .sidebar-nav-footer .sidebar-nav-footer-lang {
    display: none;
}

.sidebar-nav:not(.expanded) .sidebar-nav-footer-row:first-child {
    justify-content: center;
}

.sidebar-nav:not(.expanded) .sidebar-nav-footer-label {
    display: none;
}

.sidebar-nav-footer-row {
    display: flex;
    gap: 12px;
    height: 48px;
    align-items: center;
    padding: 0 12px;
    border-radius: 4px;
    width: 100%;
}

.sidebar-nav-footer-row.active {
    background-color: #b100c9;
    color: #fff;
}

.sidebar-nav-footer-row.active .sidebar-nav-footer-label {
    color: #fff;
}

.sidebar-nav-footer-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.sidebar-nav-footer-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.sidebar-nav-footer-label {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #484848;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav-footer-action {
    cursor: pointer;
    text-decoration: none;
    color: #484848;
    transition: background-color 0.15s ease;
}

.sidebar-nav-footer-action:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #484848;
}

.sidebar-nav-footer-action .sidebar-nav-footer-label {
    font-size: 14px;
}

.sidebar-nav-footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-nav-footer-lang {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    line-height: 24px;
    color: #484848;
}

.sidebar-nav-lang-link {
    text-decoration: none;
    color: #484848;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.15s ease;
}

.sidebar-nav-lang-link:hover {
    color: #b100c9;
    text-decoration: none;
}

.sidebar-nav-lang-link.active {
    font-weight: 700;
    text-decoration: underline;
    color: #484848;
}

.sidebar-nav-lang-sep {
    font-size: 15px;
    font-weight: 400;
    color: #484848;
}

.user-avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.user-avatar-modal.d-none {
    display: none !important;
}

.user-avatar-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.user-avatar-modal-section {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
}

.user-avatar-modal-section:last-child {
    border-bottom: none;
}

.user-avatar-modal-section.cropper-section {
    background-color: #f8f9fa;
}

.user-avatar-modal-cropper-container {
    width: 100%;
    max-height: 400px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.cropper-image {
    max-width: 100%;
    max-height: 400px;
    display: block;
}

/* Logo école affiché en lecture seule (pas de cropper) */
.cropper-image.static-preview {
    margin: 0 auto;
    padding: 15px 0;
    max-height: 300px;
    object-fit: contain;
}

/* Avatar Tabs */
.avatar-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.avatar-tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.avatar-tab:hover {
    color: #4a4df2;
    background-color: #f8f9fa;
}

.avatar-tab.active {
    color: #4a4df2;
    font-weight: 600;
}

.avatar-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #4a4df2;
}

.avatar-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-preloader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.9;
    background-size: 140px;
    z-index: 10;
    border-radius: 12px;
}

.modal-preloader.d-none {
    display: none !important;
}

.cropper-controls {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.cropper-controls .top-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cropper-controls .btn {
    flex: 1;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cropper-controls .edit-button {
    background-color: #f1f1fe;
    color: #4a4df2;
}

.cropper-controls .edit-button:hover {
    background-color: #4a4df2;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cropper-controls .bottom-button {
    width: 100%;
    background-color: #4a4df2;
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cropper-controls .bottom-button:hover {
    background-color: #3738c7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.contact-modal.d-none {
    display: none !important;
}

.contact-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.contact-modal-header {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h3 {
    margin: 0;
    color: #021493;
    font-size: 1.25rem;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background-color: #f8f9fa;
    color: #021493;
}

.contact-modal-body {
    padding: 25px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-form-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.contact-form-textarea:focus {
    outline: none;
    border-color: #4a4df2;
    box-shadow: 0 0 0 3px rgba(74, 77, 242, 0.1);
}

.contact-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.contact-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.contact-btn-cancel {
    background-color: #f1f1f1;
    color: #333;
}

.contact-btn-cancel:hover {
    background-color: #e0e0e0;
}

.contact-btn-submit {
    background-color: #4a4df2;
    color: #fff;
}

.contact-btn-submit:hover {
    background-color: #3738c7;
}

.contact-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .user-avatar-modal-content,
    .contact-modal-content {
        max-width: 95vw;
    }

    .user-avatar-modal-section {
        padding: 20px;
    }

    .user-avatar-modal-cropper-container,
    .cropper-image {
        max-height: 300px;
    }

    .contact-modal-header,
    .contact-modal-body,
    .contact-modal-footer {
        padding: 20px;
    }
}

@media (max-width: 991px) {
    .main-content-wrapper {
        margin-left: 72px;
        transition: margin-left 0.1s ease-in;
    }

    body.ahena .main-content-wrapper {
        margin-left: 72px;
    }

    body.ahena .site-branding {
        margin-left: 0;
    }

    .sidebar-nav.expanded {
        width: 72px;
    }

    .sidebar-nav.expanded .sidebar-nav-toggle .toggle-icon {
        transform: rotate(0deg);
    }

    .sidebar-nav.expanded .sidebar-nav-section-title {
        opacity: 0;
        height: 0;
    }

    .sidebar-nav.expanded .sidebar-nav-item-hint {
        opacity: 0;
        height: 0;
    }

    .sidebar-nav.expanded .sidebar-nav-item-label {
        display: none;
    }

    .sidebar-nav.expanded .sidebar-nav-lock-icon {
        opacity: 0;
    }

    .sidebar-nav.expanded .sidebar-nav-content {
        align-items: center;
    }

    .sidebar-nav.expanded .sidebar-nav-item {
        justify-content: center;
        padding: 0;
        width: 48px;
        margin: 0 auto;
    }

    .sidebar-nav.expanded .sidebar-nav-item-group {
        padding: 0;
        align-items: center;
    }

    .sidebar-nav.expanded .sidebar-nav-item-group .sidebar-nav-item {
        width: 48px;
        height: 48px;
        justify-content: center;
        margin: 0;
    }

    .sidebar-nav.expanded .sidebar-nav-badge {
        display: flex;
    }

    .sidebar-nav.expanded .sidebar-nav-item-badge-count {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        padding: 0 4px;
    }

    .sidebar-nav.expanded .sidebar-nav-contact {
        padding: 8px;
        align-items: center;
    }

    .sidebar-nav.expanded .sidebar-nav-contact-label {
        display: none;
    }

    .sidebar-nav.expanded .sidebar-nav-contact-btn .sidebar-nav-item-label {
        display: none;
    }

    .sidebar-nav.expanded .sidebar-nav-contact-btn {
        padding: 8px;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .sidebar-nav.expanded .sidebar-nav-footer {
        padding: 12px 0;
    }

    .sidebar-nav.expanded .sidebar-nav-footer .sidebar-nav-footer-action,
    .sidebar-nav.expanded .sidebar-nav-footer .sidebar-nav-footer-lang {
        display: none;
    }

    .sidebar-nav.expanded .sidebar-nav-footer-row:first-child {
        justify-content: center;
    }

    .sidebar-nav.expanded .sidebar-nav-footer-label {
        display: none;
    }

    /* Mobile: état ouvert (sans .expanded) = overlay pleine largeur */
    .sidebar-nav:not(.expanded) {
        width: 280px;
        z-index: 1000;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-toggle .toggle-icon {
        transform: rotate(180deg);
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-section-title {
        opacity: 1;
        height: auto;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-item-hint {
        opacity: 1;
        height: auto;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-item-label {
        display: block;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-lock-icon {
        opacity: 1;
        position: relative;
        cursor: pointer;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-content {
        align-items: stretch;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-item {
        justify-content: flex-start;
        padding: 0 12px;
        width: auto;
        margin: 0;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-item-group {
        padding: 12px;
        align-items: flex-start;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-item-group .sidebar-nav-item {
        width: auto;
        height: 48px;
        justify-content: flex-start;
        margin: 0;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-badge {
        display: none;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-item-badge-count {
        position: static;
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        padding: 0 6px;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-contact {
        padding: 16px 12px;
        align-items: stretch;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-contact-label {
        display: block;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-contact-btn {
        padding: 8px 12px;
        width: auto;
        height: auto;
        border-radius: 8px;
        justify-content: flex-start;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-contact-btn .sidebar-nav-item-label {
        display: block;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-footer {
        padding: 16px;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-footer .sidebar-nav-footer-action,
    .sidebar-nav:not(.expanded) .sidebar-nav-footer .sidebar-nav-footer-lang {
        display: flex;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-footer-row:first-child {
        justify-content: flex-start;
    }

    .sidebar-nav:not(.expanded) .sidebar-nav-footer-label {
        display: block;
    }

    /* Backdrop derrière le menu ouvert sur mobile */
    .sidebar-nav-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 20;
    }

    .sidebar-nav-backdrop.visible {
        display: block;
    }
}

/* ===== Header mobile toggle button ===== */
.header-menu-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #484848;
    font-size: 16px;
    padding: 0;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-menu-toggle-btn:hover {
    background-color: #f5f5f5;
}

.header-menu-toggle-btn .fa {
    transition: transform 0.25s ease;
}

body.ahena .header-menu-toggle-btn .fa {
    transform: rotate(180deg);
}

.sidebar-nav-hover-tooltip {
    position: fixed;
    background: #2c2c2c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sidebar-nav-hover-tooltip.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .header-menu-toggle-btn {
        display: flex;
    }

    .site-header-menu-inner {
        position: relative;
    }

    .site-header-menu-inner .container {
        padding-left: 64px;
    }

    .main-content-wrapper,
    .full-page-container {
        margin-left: 0 !important;
        max-width: 100vw !important;
    }

    body.ahena .main-content-wrapper,
    body.ahena .full-page-container {
        margin-left: 0 !important;
        max-width: 100vw !important;
    }

    body.ahena .site-branding {
        margin-left: 0 !important;
    }

    .sidebar-nav.expanded {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar-nav:not(.expanded) {
        width: 280px;
        transform: translateX(0);
    }
}
