.sidebar {
    height: calc(100vh - 100px);
    overflow-y: auto;
    position: sticky;
    /* top: 20px; */
    border-right: 1px solid #dee2e6;
}

.sidebar.custom-sidebar {
    width: 25rem !important;
    padding: 1.5rem;
    border-right: 2px solid #0A1F44;
}

.section-item {
    cursor: pointer;
    padding: 8px;
    margin: 4px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.section-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}

.section-item.active {
    border-left: 3px solid #0A1F44;
    background-color: rgb(245, 213, 208);
}

.section-toggle i {
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 20px;
    overflow-y: auto;
}

.section-toggle.collapsed i {
    transform: rotate(-90deg);
}

.subsections {
    padding-left: 20px;
    margin-top: 5px;
}

.subsections.collapsed {
    display: none;
}

.section-toggle {
    cursor: pointer;
    width: 20px;
    text-align: center;
}

.section-toggle.collapsed i {
    transform: rotate(-90deg);
}

.section-content-area {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    /* height: 85vh; */
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.section-number {
    min-width: 35px;
    text-align: center;
    background-color: #e8f4ff;
    border: 1px solid #cce5ff;
}



.subsections {
    max-height: 1000px;
    transition: max-height 0.3s ease-in-out;
}

.subsections.collapsed {
    max-height: 0;
}

/* Animation pour les transitions */
.section-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Style spécial pour le niveau actif */
.section-item.active .section-number {
    background-color: #3490dc;
    color: white;
    border-color: #2779bd;
}

/* Effet de hover amélioré */
.section-item:hover .section-number {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
}

#sommaire-row {
    background-color: #f8f9fa;
    border: 2px solidrgb(163, 156, 156);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    border-radius: 8px;
    margin: 15px;
}


/* Ajoutez ce CSS dans votre fichier */
/* .sommaire-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.sommaire-option:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.sommaire-option.selected {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.sommaire-option .custom-control {
    pointer-events: none;
}

.sommaire-option label {
    margin-bottom: 0;
} */




.sections-container {
    max-height: calc(100vh - 200px);
    /* Ajustez selon vos besoins */
    overflow-y: auto;
    padding-right: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.section-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.section-item:hover .section-actions {
    opacity: 1;
}


/* Styles pour le drag and drop */
.drag-handle {
    cursor: grab;
    color: #718096;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.drag-handle:hover {
    opacity: 1;
}

.section-item.dragging {
    opacity: 0.8;
    background: #f8fafc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-placeholder {
    border: 2px dashed #cbd5e0;
    background: #f7fafc;
    margin: 4px 0;
    border-radius: 4px;
}

.section-item.ui-sortable-helper {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.section-item.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border: 1px dashed #09e49b;
}

.root-drop-zone {
    min-height: 50px;
    padding: 10px;
    border: 2px solid transparent;
}

.root-drop-zone.drag-over {
    border: 2px dashed #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}


.section-item {
    position: relative;
    cursor: move;
    transition: all 0.2s ease;
}

.section-item.drag-over-top {
    border-top: 2px dashed #007bff;
}

.section-item.drag-over-bottom {
    border-bottom: 2px dashed #007bff;
}

.section-item.drag-over-inside {
    background-color: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff;
}

.section-item.dragging {
    opacity: 0.5;
}

.root-drop-zone.drag-over {
    background-color: rgba(0, 123, 255, 0.05);
    border: 2px dashed #007bff;
}