:root {
    --couleur-navigation: #ffb14e;
    --couleur-sous-navigation: #f6b55c;
    --couleur-fond: #ffab3333;
    --couleur-fond-bis: #ffab3319;
    --couleur-navigation-hover: #ffca61;
    --couleur-menu-hover: #ffd289;
    --couleur-tooltip: #ffb14e;
    --couleur-page-background: #ffd7a019;
}

/*** Mise en forme generale ***/
html, body {
    background-color: var(--couleur-page-background);
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.page-content {
    flex: 1;
}

/*** Couleurs ***/
.couleur-navigation {
    background-color: var(--couleur-navigation);
}

.couleur-sous-navigation {
    background-color: var(--couleur-sous-navigation);
}

.couleur-fond {
    background-color: var(--couleur-fond);
}

.couleur-fond-bis {
    background-color: var(--couleur-fond-bis);
}

#filterForm {
    background-color: var(--couleur-fond-bis);
    padding: 1rem;
    border-radius: 1rem;
}

/*** Menu ***/
nav {
    font-size: 1.5rem;
}

.titre-nav {
    font-size: 1.6rem;
}

.navbar-logo {
    height: 100px;
    width: auto;
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 50px;
    }
}

.navbar .nav-link {
    transition: border-radius 0.8s ease;
}

.navbar .nav-link:hover {
    background-color: var(--couleur-navigation-hover);
    border-radius: 15px;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--couleur-menu-hover);
}

/*** Tooltip ***/
.custom-tooltip {
    --bs-tooltip-bg: var(--couleur-tooltip);
    --bs-tooltip-color: var(--bs-dark);
}

/*** Mise en forme Tabulator ***/
.tabulator {
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
}

.tabulator .tabulator-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: color-mix(in srgb, var(--couleur-navigation) 65%, white 35%) !important;
    font-size: 15px !important;
    padding: 5px;
}

.tabulator .tabulator-col {
    font-weight: 600 !important;
    color: #495057 !important;
}

.tabulator-row {
    background-color: #fff !important;
    transition: background-color 0.15s ease;
}

.tabulator-row:nth-child(even) {
    background-color: #fdfdfd;
}

.tabulator-row:hover {
    background-color: #fdf0e3 !important;
}

.tabulator-cell {
    padding: 5px 5px !important;
    border-right: 1px solid rgba(119, 119, 119, 0.71) !important;
    border-left: 1px solid rgba(119, 119, 119, 0.71) !important;
    border-bottom: 1px solid rgba(119, 119, 119, 0.71) !important;
    align-content: center;
    font-size: 16px !important;
}

.tabulator-row.tabulator-selected {
    background-color: #dbeafe !important;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar {
    height: 8px !important;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar-thumb {
    background: #ced4da !important;
    border-radius: 4px !important;
}

.tabulator {
    --tabulator-border-color: #dee2e6 !important;
    --tabulator-header-background-color: #e9ecef !important;
    --tabulator-row-hover-background-color: #f8f9fa !important;
    --tabulator-row-selected-background-color: #cfe2ff !important;
}

.tabulator .btn {
    border-radius: 6px;
}

.tabulator-col .tabulator-col-sorter {
    opacity: 1;
}

.tabulator-col.tabulator-sortable:hover .tabulator-col-sorter {
    opacity: 1;
}

.tabulator-cell[data-field="action"] {
    text-align: center;
    white-space: nowrap;
}

.row-entree {
    background-color: #ededed !important;
}

.row-total-annee {
    background-color: #f3e6a3 !important;
    font-weight: bold;
}

.row-total-mois {
    background-color: #cbf3cf !important;
}

.row-total-journee {
    background-color: #dbeafe !important;
}

.liste {
    max-height: 75vh;
}

.apercu-couleur {
    height: 48px;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.media-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.75rem;
}
