/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root{
    --bs-border-radius-xxl: 1.4rem;
    --bs-border-radius-sm: .35rem;
    --bs-light-bg-subtle: #f7f8f9;
    --bs-box-shadow-sm: 0 0.125rem 0.4rem rgba(0, 0, 0, 0.04);
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-font-size: 1rem;
    --bs-body-color: #495058;
    --bs-body-line-height: 1.6;
    --bs-link-color: #7185ff;
    --bs-link-color-rgb: 113, 133, 255;
    --bs-transition-base: all ease .15s;
    --bs-heading-color: #13151a;

    --bs-primary: #01154b;
    --bs-primary-hover: #0635b3;
    --bs-warning: #d75700;
    --bs-warning-rgb: 215, 87, 0;
    --bs-success: #00776a;
    --bs-success-rgb: 0, 119, 106;
    --bs-danger: #e7114f;
    --bs-danger-hover: #bf043a;
    --bs-danger-rgb: 231, 17, 79;
    --bs-info: #077189;
    --bs-info-rgb: 7, 113, 137;
    --bs-info-bg-subtle: #dbf0f3;
    --bs-light: #f1f2f5;
}

html{
    font-size: 13px;
}

/* LAYOUT */

@media (min-width: 1600px){
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl,.container-xxxl {
        max-width: 1480px;
    }
}

/* TYPO */

@media (min-width: 1200px){
    h1, .h1 {
        font-size: 2rem;
    }
}

h2, .h2 {
    font-size: 1.7rem;
}
h3, .h3 {
    font-size: 1.2rem;
}
h4, .h4{
    font-size: 1.1rem;
}
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.subtitle{
    text-transform: uppercase;
    font-weight: 400;
    color: #31606d;
    font-size: 1.2rem;
}

/* CONTENT */

/* Table */

.table{
    --bs-emphasis-color-rgb: 113, 133, 255;
}

.table > tbody > tr:last-child > td{
    border-bottom: none;
}

@media (min-width: 992px){

    .table > :not(caption) > * > * {
        padding: 1rem 1rem;
    }
}

@media (max-width: 991px){

    table.mobile-table thead {
        display: none;
    }

    table.mobile-table tbody>tr {
        display: flex;
        flex-direction: column;
    }

    table.mobile-table tbody>tr:not(:last-child) {
        margin-bottom: 1.5rem;
    }

    table.mobile-table tbody>tr td {
        display: flex;
        flex-direction: column;
        background-color: var(--bs-light-bg-subtle);
        padding: 1.5rem;
        border: none;
    }

    table.mobile-table tbody>tr td[data-label]:before {
        content: attr(data-label);
        float: left;
        overflow-wrap: break-word;
        font-weight: 700;
        font-style: normal;
        text-align: left;
    }

    table.mobile-table tbody>tr>td:first-child {
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
    }

    table.mobile-table tbody>tr>td:last-child {
        border-bottom-left-radius: .5rem;
        border-bottom-right-radius: .5rem;
    }
}

/* sidebar */

.sidebar {
    min-height: 100vh;
    height: auto;
    background-color: #fff;
}

.sidebar .nav-pills .nav-link{
    border-radius: 0;
}

@media (min-width: 992px){
    .sidebar {
        position: sticky;
        top:0;
    }
}

/* FORM */

.form-control {
    /* padding: .75rem 0.75rem; */
    line-height: 2;
}

.form-label {
    font-weight: 600;
}

.dropdown-toggle {
    outline: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:-internal-autofill-selected,
input:-internal-autofill-previewed {
    background-color: white !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.ts-wrapper{
    --bs-badge-padding-x: .85em;
    --bs-badge-padding-y: .75em;
    --bs-badge-font-size: .85rem;
    --bs-badge-font-weight: 500;
    --bs-badge-border-radius: var(--bs-border-radius-sm);
}

.ts-wrapper.multi.has-items .ts-control {
    padding: 0.75rem!important;
}
.ts-wrapper.multi .ts-control > div {
    margin: 0 0.75rem 0.75rem 0!important;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x)!important;
    font-size: var(--bs-badge-font-size)!important;
    font-weight: var(--bs-badge-font-weight)!important;
    border-radius: var(--bs-badge-border-radius)!important;
}

.ts-wrapper.plugin-remove_button .item .remove {
    padding: 0 0.5rem;
}

/* switch */

.form-switch {
    padding-left: 3em;
}

.form-switch .form-check-input {
    height: 1.5em;
    width: 2.5em;
    margin-left: -3em;
    margin-top: 0;
}

/* COMPONENTS */

/* alert */

.alert{
    --bs-border-width: 0;
}

/* badge */

.badge{
    --bs-badge-padding-x: .85em;
    --bs-badge-padding-y: .75em;
    --bs-badge-font-size: .85rem;
    --bs-badge-font-weight: 500;
    --bs-badge-border-radius: var(--bs-border-radius-sm);
}

.text-bg-success {
    --bs-bg-opacity: .15;
    color: var(--bs-success)!important;
    background-color: RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1))!important;
}
.text-bg-warning {
    --bs-bg-opacity: .15;
    color: var(--bs-warning)!important;
    background-color: RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity,1))!important;
}
.text-bg-danger {
    --bs-bg-opacity: .15;
    color: var(--bs-danger)!important;
    background-color: RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1))!important;
}
.text-bg-info {
    --bs-bg-opacity: .15;
    color: var(--bs-info)!important;
    background-color: RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important;
}

/* buttons */

.btn{
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: .5rem;
}

.btn-light {
    --bs-btn-bg: #d7d9db;
    --bs-btn-border-color: #d7d9db;
    --bs-btn-hover-bg: #bec2c5;
    --bs-btn-hover-border-color: #bec2c5;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0635b3;
    --bs-btn-hover-border-color: #0635b3;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #01154b;
    --bs-btn-disabled-border-color: #01154b;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
}

.rating-btn{
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-bg: #e9e8ed;
    --bs-btn-border-color: #e9e8ed;
    --bs-btn-hover-bg: #dcdae1;
    --bs-btn-hover-border-color: #dcdae1;
    height: 50px;
    width: 50px;

}

.danger-link{
    color: var(--bs-danger);
    background-color: transparent;
    text-decoration: underline;
    border: none;
    padding: 0;
}

.danger-link:hover{
    color: var(--bs-danger-hover);
    background-color: transparent;
    text-decoration: none;
}

/* card */

.card {
    --bs-card-spacer-y: 1.75rem;
    --bs-card-spacer-x: 1.75rem;
    --bs-card-border-width: 0;
    --bs-card-border-radius: var(--bs-border-radius-xxl);
    --bs-card-inner-border-radius: var(--bs-border-radius-xxl);
    --bs-card-box-shadow: var(--bs-box-shadow-sm);
    --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.09);
    --bs-card-cap-padding-y: .75rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-color: ;
    box-shadow: var(--bs-card-box-shadow);
}

.glass-card{
    --bs-card-bg: rgba(255,255,255,0.5);
    --bs-card-border-width: 1px;
    --bs-card-border-color: rgba(255, 255, 255, 0.3);
    --bs-card-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--bs-card-box-shadow);

}

.hover-translate{
    transition: all ease .24s;
    display: inline-block;
}

.hover-translate:hover{
    transform: translateX(12px);
}

/* nav */

.nav {
    --bs-nav-link-color: var(--bs-black-rgb);
}

.sidebar .nav-pills{
    --bs-nav-pills-link-active-bg: #e1e9ff;
    --bs-nav-pills-link-active-color: var(--bs-body-color);
}

/* UTILITIES */

/* background */

/*.bg-minimalist {*/
/*    background-image: url(../images/bg-minimalist.jpg);*/
/*    background-size: cover;*/
/*}*/

/* colors */

.bg-warning {
    color: #8d3b09;
}

/* line-clamp */

[class*="line-clamp-"] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}
.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    -webkit-line-clamp: 4;
}

/* position responsive */

@media (min-width: 992px){
    .position-lg-sticky {
        position: sticky!important;
    }
}

.editable:hover {
    background: #f5f5f5;
    cursor: pointer;
}

.editable:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m16.862 4.487l1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10'/%3E%3C/svg%3E");
    height: 18px;
    width: 18px;
    margin-left: auto;
    display: inline-block;
    pointer-events: none; /* L'icône ne doit pas interférer avec les clics */
}

.editable:hover:after {
    opacity: 1; /* L'icône devient visible au survol */
}
