:root {
    --dioptase: #364C62;
    --dioptase-dark: #2c3e50;
    --bg: #f4f6f8;
    --text: #364C62;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: var(--text);
}

/* Barre haute */
.topbar {
    height: 76px;
    background: var(--dioptase);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.topbar-logo img {
    height: 36px;
    max-width: 190px;
    filter: brightness(0) invert(1);
}

.topbar-actions {
    display: flex;
    align-items: center;
}

/* Dashboard */
.dashboard-page {
    padding-top: 140px;
}

.dashboard-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.2s;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-4px);
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--dioptase);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-dioptase {
    background-color: var(--dioptase);
    border-color: var(--dioptase);
    color: #fff;
}

.btn-dioptase:hover,
.btn-dioptase:focus {
    background-color: var(--dioptase-dark);
    border-color: var(--dioptase-dark);
    color: #fff;
}

/* Layout outil */
.app-layout {
    display: flex;
    padding-top: 76px;
    min-height: 100vh;
}

.sidebar {
    width: 290px;
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.08);
    padding: 24px 14px;
    position: fixed;
    top: 76px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 900;
}

.sidebar-title {
    font-weight: 700;
    margin: 0 0 18px 8px;
    color: var(--dioptase);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: var(--dioptase);
    text-decoration: none;
    font-weight: 700;
}

.sidebar-link:hover {
    background: #edf2f7;
    color: var(--dioptase);
}

.sidebar-link.active {
    background: var(--dioptase);
    color: #ffffff;
}

.sidebar-icon {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #edf2f7;
    color: var(--dioptase);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-link.active .sidebar-icon {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}

.tool-content {
    margin-left: 290px;
    padding: 52px 70px;
    width: calc(100% - 290px);
}

.tool-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Responsive */
@media (max-width: 900px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .tool-content {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px;
    }
}
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #364C62;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.login-logo {
    display: block;
    margin: 0 auto 25px auto;
    max-width: 220px;
    height: auto;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #364C62;
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: #364C62;
}

.form-control {
    height: 48px;
    border-radius: 10px;
}

.btn-dioptase {
    background-color: #364C62;
    border-color: #364C62;
    border-radius: 10px;
    height: 48px;
    font-weight: 600;
    color: #fff;
}

.btn-dioptase:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
}

.footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}
main.container.py-5 {
    padding-top: 100px !important;
}