/* Habillage CUMA du Lié — surcouche de couleurs sur le thème Hyper/Adminty */
:root {
    --cuma-primary: #0D0D10;
    --cuma-secondary: #65B338;
}

/* Actions principales (boutons, badges, liens, fonds "primary") en vert CUMA */
.btn-primary,
.badge-primary,
.bg-primary,
.custom-range::-webkit-slider-thumb,
.page-item.active .page-link {
    background-color: var(--cuma-secondary) !important;
    border-color: var(--cuma-secondary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #549229 !important;
    border-color: #549229 !important;
}

.btn-outline-primary {
    color: var(--cuma-secondary) !important;
    border-color: var(--cuma-secondary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--cuma-secondary) !important;
    border-color: var(--cuma-secondary) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--cuma-secondary) !important;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--cuma-secondary) !important;
    border-color: var(--cuma-secondary) !important;
}

.form-control:focus {
    border-color: var(--cuma-secondary) !important;
    box-shadow: 0 0 0 0.15rem rgba(101, 179, 56, 0.25) !important;
}

.nav-pills .nav-link.active {
    background-color: var(--cuma-secondary) !important;
}

/* Barre latérale et barre du haut en noir CUMA */
.left-side-menu,
.navbar-custom {
    background-color: var(--cuma-primary) !important;
}

.side-nav .side-nav-link.mm-active,
.side-nav .side-nav-link:hover,
.side-nav .side-nav-link.active {
    color: var(--cuma-secondary) !important;
}

.side-nav-title {
    color: var(--cuma-secondary) !important;
    opacity: 0.85;
}

/* En-tête des cartes "bg-primary" (connexion, bannières) */
.card-header.bg-primary,
.cta-box.bg-primary {
    background-color: var(--cuma-primary) !important;
}

/* ---------------------------------------------------------------------
   Suppression de tous les gris du thème (#343a40, #37404a, #3e4853...) :
   toutes les surfaces sombres passent en #0D0D10 uniquement.
   --------------------------------------------------------------------- */
body,
.content-page,
.wrapper,
.card,
.card-header,
.card-footer,
.modal-content,
.dropdown-menu,
.popover,
.popover-header,
.list-group-item,
.table,
.table td,
.table th,
.nav-pills.bg-nav-pills,
.form-control,
.custom-select,
.custom-file-label,
.custom-file-label::after,
.breadcrumb,
.page-title-box,
.right-bar,
.btn-secondary,
.btn-light,
.btn-outline-secondary,
.btn-outline-light {
    background-color: var(--cuma-primary) !important;
    border-color: #000 !important;
}

.table-striped tbody tr:nth-of-type(odd),
.table-hover tbody tr:hover,
.dropdown-item:hover,
.dropdown-item:focus,
.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #000000 !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-light:hover,
.btn-light:focus,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
    background-color: #000000 !important;
    border-color: #000 !important;
    filter: brightness(1.3);
}

.custom-control-input[disabled] ~ .custom-control-label::before,
.custom-control-input:disabled ~ .custom-control-label::before {
    background-color: var(--cuma-primary) !important;
}

.form-control:disabled,
.form-control[readonly],
.custom-select:disabled,
textarea.form-control,
select.form-control {
    background-color: var(--cuma-primary) !important;
    border-color: #000 !important;
    color: #aab8c5 !important;
}
