/* Nettoyage des styles pour ne garder que les classes utilisées */

/* ── Layout principal ─────────────────────────────────────────────────────── */
html, body {
    height: 100%;
    overflow: hidden;
}

.app-container {
    height: 100vh;
    overflow: hidden;
}

/* Sidebar fixe — ne scroll pas avec le contenu */
.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    transition: width 0.25s ease, min-width 0.25s ease;
}

.sidebar.collapsed {
    width: 70px;
    min-width: 70px;
}

/* Sur mobile, la sidebar est en position fixe par-dessus le contenu */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        z-index: 1045;
        transition: left 0.25s ease;
        width: 260px !important;
        min-width: 260px !important;
    }

    .sidebar.show {
        left: 0;
    }
}

/* Zone de contenu principale — scroll uniquement ici */
.main-content-wrapper {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.main-content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}



/* Styles pour .card */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
}

.card-header.bg-white {
    background-color: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Styles pour .btn */
.btn {
    transition: all 0.15s ease-in-out;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Styles pour .form-control et .form-select */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 252, 0.15);
}
