/*
-- LAYOUT
-- CONTENT
-- FORMS
-- COMPONENTS
-- TOPBAR
-- SIDEBAR
-- UTILITIES
-- FRONT
*/

:root {
    --bs-body-bg: #F8F8FB;
    --bs-body-line-height: 1.7;
    --bs-heading-color: #1D1F21;

    --brand-height: 50px;

    --bs-body-font-family: "Inter", var(--bs-font-sans-serif);
    --heading-font-family: "Poppins", var(--bs-font-sans-serif);

    --bs-primary: #4753ed;
    --bs-secondary: #8db91a;

    --bs-link-color: rgb(61 83 239);
    --bs-link-color-rgb: 61, 83, 239;
    --bs-link-hover-color: rgb(31 50 187);
    --bs-link-hover-color-rgb: 31, 50, 187;

    --list-spacer-left: 2.5rem;
    --bullet-size: 1.75rem;

    --danger:#a30015;
    --danger-light: #ffdee1;
    --warning: #6b4514;
    --warning-light: #ffefd4;
    --success: #095f37;
    --success-light: #ccfdd4;
    --info: #272985;
    --info-light: #deeeff;
    --light: #f1f6f7;
    --grey: #3e5459;

    --bs-border-radius-lg: .45rem;
    --bs-border-radius-xl: .75rem;
    --bs-border-color: #d0d4d7;

    --bs-card-spacer-y: 2.5rem;
    --bs-card-spacer-x: 2.5rem;

    --bs-offcanvas-width: 66vw;
}

@media (max-width: 991px) {
    :root {
        --bs-card-spacer-y: 1.5rem;
        --bs-card-spacer-x: 1.5rem;
    }
}

/* LAYOUT */

main{
    transition: all .2s ease-in-out;
}

@media screen and (min-width: 992px) {

    main{
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* CONTENT */

/* Typo */


body {
    font-family: var(--bs-body-font-family);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4{
    font-family: var(--heading-font-family);
    line-height: 1.4;
}

h1, .h1{
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
}

h1.icon-link span{
    margin-right: 1rem;
}

h2, .h2{
    font-weight: 600;
    font-size: 1.4rem;
}

h3, .h3{
    font-weight: 600;
    font-size: 1.1rem;
}

b, strong {
    font-weight: 600;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

.main-title{
    font-size: 1.8rem;
}


@media screen and (min-width: 992px) {

    h2, .h2{
        font-size: 1.5rem;
    }

    h3, .h3{
        font-size: 1.1rem;
    }

    .main-title{
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.25rem;
        font-weight: 400;
    }

}

a:not(.btn):not(.nav-link) {
    transition: all .2s ease-in-out;
}

a:hover {
    text-decoration: none;
}

hr {
    color: #a6adb5;
}

/* Table */

.table {
    --bs-table-bg: transparent;
}

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

tbody > tr:last-child > td {
    border-bottom: 0;
}

@media screen and (min-width: 992px) {

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

/* Mobile-table */

.action-cell {
    white-space: nowrap;
}

@media screen and (max-width: 991px) {

    .mobile-table thead{
        display: none;
    }

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

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

    table.mobile-table tbody>tr td.action-cell {
        -ms-flex-pack: end;
        justify-content: flex-end;
        flex-direction: row;
    }

}

/* FORMS */

/* Label */

.form-label {
    text-transform: uppercase;
    font-size: .8rem;
}

/* Form Control */

a.form-control {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: underline;;
}

.form-control,
.form-select {
    /*--bs-border-color: var(--bs-body-color);*/
    --bs-body-color: #0e1214;
    background-color: #fff;
    padding: .65rem 1rem;
}

.input-group-text {
    background-color: #fff;
    border-color: #c0c7cd;
    border-right: none;
}

.input-group-text + .form-control{
    border-left: none;
    padding-left: 0;
}

.form-control:focus, .form-select:focus {
    border-color: #435eab;
    box-shadow: 0 0 0 .25rem rgb(68 94 171 / 15%);
}

/* Form Check */

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

.form-check-input:focus {
    border-color: #8deeeb;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgb(29 174 169 / 20%);
}

/* Form Switch */

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

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

.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23e0fffe'/%3e%3c/svg%3e");
}

label.required:after {
    content: "*";
    margin-left: 0.25em;
}

input:-internal-autofill-selected {
    background-color: transparent !important;
}

/* Draggable */

.card.dragging {
  opacity: 0.5;
}

.drop-indicator {
    display: flex;
    width: 200px;
    min-width: 200px;
    background-color: rgb(23 23 24 / 5%);
    border: 2px dashed #9a9fa7;
    border-radius: var(--bs-border-radius-lg);
    transition: all .2s ease;
}

#timelineDropzone {
    overflow-x: scroll;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    min-height: 257px;
}

#timelineDropzone .card{
    width: 200px;
    min-width: 200px;
    cursor: grab;
    border-radius: var(--bs-border-radius-lg);
}

#timelineDropzone .card .btn-square {
    border-radius: 0;
    border-top-right-radius: var(--bs-border-radius-lg);
}

#timelineDropzone .card-btn a{
    border-radius: var(--bs-border-radius-lg);
}

/* COMPONENTS */

/* Alert */

.alert{
    border: none;
}

.alert-success{
    background-color: var(--success-light);
    color: var(--success);
}

.alert-info{
    background-color: var(--info-light);
    color: var(--info);
}

.alert-light{
    background-color: var(--light);
    color: var(--grey);
}

.alert-warning{
    background-color: var(--warning-light);
    color: var(--warning);
}

.alert-danger{
    background-color: var(--danger-light);
    color: var(--danger);
}

/* Badges */

.badge {
    --bs-badge-font-size: .8em;
    font-weight: 600;
}

.badge-success{
    background-color: var(--success-light);
    color: var(--success);
}

.badge-info{
    background-color: var(--info-light);
    color: var(--info);
}

.badge-light{
    background-color: var(--light);
    color: var(--grey);
}

.badge-warning{
    background-color: var(--warning-light);
    color: var(--warning);
}

.badge-danger{
    background-color: var(--danger-light);
    color: var(--danger);
}


/* Buttons */

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

.btn-group-lg>.btn,
.btn-lg {
    --bs-btn-padding-y: .75rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-font-size: 1.1rem;
    --bs-btn-border-radius: var(--bs-border-radius);
}

.btn-primary,
#sidebar:not(.show) .cta-btn{
    --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: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

.btn-light {
    --bs-btn-bg: #e5e9ed;
    --bs-btn-border-color: #e5e9ed;
}

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

/* Btn-circle */

.btn-circle{
    padding: .75rem !important;
    border-radius: 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Btn-square */

.btn-square {
    --bs-btn-padding-x: .5rem;
    --bs-btn-padding-y: .5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Card */

.card{
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-bg: rgba(255,255,255,1);
    --bs-card-border-width: 0;
    --bs-card-border-radius: var(--bs-border-radius-xl);
    --bs-card-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    box-shadow: var(--bs-card-box-shadow);
}

.card-title, .card-title a{
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
    text-decoration: none;
    color: var(--bs-heading-color);
}

.gradient-bg{
    background: rgb(110 134 255);
    background: linear-gradient(90deg, rgb(85 113 255) 0%, rgb(93 198 233) 100%);
}

.card-btn {
    box-shadow: none;
    background-color: transparent;
    border-radius: var(--bs-border-radius-xl);
}

.card-btn a{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media screen and (min-width: 992px) {
    .card{
        --bs-card-spacer-y: 2rem;
        --bs-card-spacer-x: 2rem;
    }
}

.thumbnail-card{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.thumbnail-card .ratio{
    flex-shrink: 0;
}

.thumbnail-card .card-body{
    flex: 1 1 auto;
}

.thumbnail-card .card-title{
    min-height: calc(2 * 1.4rem);
}

.thumbnail-wrapper{
    overflow: hidden;
}


.thumbnail-wrapper img {
    transition: .2s ease-in-out;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.card:hover .thumbnail-wrapper img {
    transform: scale(1.1);
}

/* List */

ul.styled,
ol.styled {
    padding: .25rem 0 .25rem var(--list-spacer-left);
}

ul.styled > li,
ol.styled > li {
    position: relative;
    min-height: 2rem;
    padding-top: .25rem;
    list-style-type: none;
}

ul.styled > li:not(:last-child),
ol.styled > li:not(:last-child) {
    margin-bottom: 1rem;
}

ol.styled > li {
    counter-increment: step-counter;
}

ul.styled > li:before{
    content: '';
    position: absolute;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="%23680928" d="M8.59 16.59L13.17 12L8.59 7.41L10 6l6 6l-6 6z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    background-color: rgb(255 182 71);
    border-radius: 50%;
    left: calc( 0px - var(--list-spacer-left) );
    height: var(--bullet-size);
    width: var(--bullet-size);
    font-size: 1rem;
    line-height: 1rem;
}

ol.styled > li:before {
    --ol-bullets-bg-color: rgb(255 182 71);
    --ol-bullets-color: rgb(104 9 40);
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: -2.75rem;
    content: counter(step-counter);
    font-size: 80%;
    background-color: var(--ol-bullets-bg-color);
    color: var(--ol-bullets-color);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: .25rem;
    height: var(--bullet-size);
    width: var(--bullet-size);
    left: calc( 0px - var(--list-spacer-left) );
}

ul.styled > li:after,
ol.styled > li:after {
    content:'';
    position: absolute;
    display: flex;
    left: calc( -1px - var(--list-spacer-left) + var(--bullet-size) / 2 );
    bottom: 0;
    height: calc(100% - 2.5rem);
    border-left: 1px solid currentcolor;
    opacity: .5;
}

@media (max-width: 991px) {
    :root {
        --list-spacer-left: 1.5rem;
        --bullet-size: 1rem;
    }
}

/* Modal */

.modal {
    --bs-modal-header-bg: #fff;
    --bs-modal-header-border-width: 0;
    --bs-modal-footer-bg: #fff;
    --bs-modal-footer-border-width: 0;
    --bs-modal-zindex: 1070;
}

.modal-header {
    background-color: var(--bs-modal-header-bg);
}

.modal-footer {
    justify-content: space-between;
}

.modal-backdrop {
    --bs-backdrop-zindex: 1000;
}

/* Off-canvas */

.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl {
    --bs-offcanvas-width: 66vw;
}

.offcanvas-footer {
    display: flex;
    align-items: center;
    padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
}


/* Search-form */

.search-form{
    flex: 0 1 600px;
}

/* Tooltip */

.tooltip-badge{
    z-index: 1;
    padding: .5rem;
}

/* TOP-BAR */

.top-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-form{
    flex: 0 1 700px;
}

.top-cta{
    text-align: right;
}

.top-cta .btn{
    white-space: nowrap;
}

@media screen and (min-width: 992px) {
    .top-bar{
        flex-wrap: nowrap;
    }

    .top-bar h1{
        order: 1;
    }

    .top-cta{
        order: 3;
    }

    .top-form{
        order: 2;
    }

}

/* SIDEBAR */

.icon-link span:not(.d-expanded){
    background-color: #edf0f3;
    border-radius: 3px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
}

#sidebar{
    height: 100vh;
    position: fixed;
    top: 0;
    z-index:10;
}

.sidebar-brand-wrapper{
    overflow: hidden;
    height: 60px;
}

.sidebar-brand img{
    transition: .2s ease-in-out;
    object-fit: contain;
    height: 100%;
    width: 100%;
    object-position: left;
}

.sidebar-toggler-wrapper{
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 2rem;
    background-color: #fff;
    position: fixed;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    top: 0;
    left: 0;
    z-index: 11;
    width: 100%;
}

.sidebar-toggler{
    background-color: transparent;
    border: none;
    padding: 0;
}

.sidebar-toggler-icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#sidebar.show {
    width: 100%;
}

#sidebar.show .card {
    padding: 2rem;
}

#sidebar:not(.show) .card {
    padding: 2rem 1.5rem;
}

#sidebar:not(.show) .dropdown-toggle:after {
    content: normal;
}

#sidebar:not(.show) .cta-btn{
    padding: .5rem;
}

@media (min-width: 992px) {

    #sidebar{
        display: block!important;
    }

    .sidebar-toggler-wrapper{
        width: auto;
    }

    /* sidebar open */

    #sidebar.show {
        flex: 0 0 auto;
        width: 300px;
    }

    #sidebar.show + .sidebar-toggler-wrapper + main {
        flex: 0 0 auto;
        width: calc(100% - 300px);
        margin-left: 300px;
    }

    /* sidebar closed */

    #sidebar:not(.show) {
        flex: 0 0 auto;
        width: 84px;
    }

    #sidebar:not(.show) + .sidebar-toggler-wrapper + main{
        flex: 0 0 auto;
        width: calc(100% - 84px);
        margin-left: 84px;
    }

}

#sidebar:not(.show) .d-expanded{
    display: none!important;
}

#sidebar .nav-link{
    --bs-nav-link-color : var(--bs-heading-color);
    --bs-nav-link-font-weight: 500;
}

#sidebar .dropdown-menu{
    --bs-body-bg: #fff;
    --bs-dropdown-border-width: 0;
    --bs-dropdown-item-padding-x: 1.5rem;
    --bs-dropdown-item-padding-y: 0.6rem;
}


/* UTILITIES */

.bg-light-blue{
    background: #b3cfff;
    background: linear-gradient(90deg, rgba(179, 207, 255, 1) 0%, rgb(241 255 254) 42%, rgba(240, 246, 255, 1) 100%);
}

.half-bg {
    background: url("../images/ges/bg-salle-RXcj4MP.webp") no-repeat;
    background-size: cover;
}


/* shadow */

.shadow{
    --bs-card-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow: var(--bs-card-box-shadow);
}

.inner-shadow{
    box-shadow: inset 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* rounded */

.rounded-xl-top{
    border-top-left-radius: var(--bs-border-radius-xl);
    border-top-right-radius: var(--bs-border-radius-xl);
}

.rounded-lg-top{
    border-top-left-radius: var(--bs-border-radius-lg);
    border-top-right-radius: var(--bs-border-radius-lg);
}

.rounded-sm-top{
    border-top-left-radius: var(--bs-border-radius-sm);
    border-top-right-radius: var(--bs-border-radius-sm);
}

/* img-cover */

.img-cover {
    overflow: hidden;
    height: 100%;
    border-radius: var(--bs-border-radius-xl);
}

.img-top {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.img-cover img {
    width: 100%;
    height: 100%!important;
    max-width: none!important;
    object-fit: cover;
}

/* Line-clamp */

.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;
}

/* Spacing */

m-lg{
    margin: 3rem !important;
}

.my-lg{
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mt-lg{
    margin-top: 3rem !important;
}

.mt-offset{
    margin-top: 3rem;
}

.mb-lg{
    margin-bottom: 3rem !important;
}

.p-lg{
    padding: 3rem !important;
}

.py-lg{
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pt-lg{
    padding-top: 3rem !important;
}

.pb-lg{
    padding-bottom: 3rem !important;
}

.pb-offset{
    padding-bottom: 3rem;
}

.my-xl{
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mt-xl{
    margin-top: 3rem !important;
}

.mb-xl{
    margin-bottom: 3rem !important;
}

.py-xl{
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pt-xl{
    padding-top: 3rem !important;
}

.pb-xl{
    padding-bottom: 3rem !important;
}

@media screen and (min-width: 992px) {

    .m-lg{
        margin: 4rem !important;
    }

    .my-lg{
        margin-top: 4rem !important;
        margin-bottom: 4rem !important;
    }

    .mt-lg{
        margin-top: 4rem !important;
    }

    .mb-lg{
        margin-bottom: 4rem !important;
    }

    .p-lg{
        padding: 4rem !important;
    }

    .py-lg{
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .pt-lg{
        padding-top: 4rem !important;
    }

    .pb-lg{
        padding-bottom: 4rem !important;
    }

    .my-xl{
        margin-top: 8rem !important;
        margin-bottom: 8rem !important;
    }

    .mt-xl{
        margin-top: 8rem !important;
    }

    .mb-xl{
        margin-bottom: 8rem !important;
    }

    .py-xl{
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }

    .pt-xl{
        padding-top: 8rem !important;
    }

    .pb-xl{
        padding-bottom: 8rem !important;
    }

    .pb-offset{
        padding-bottom: 16rem;
    }

    .mt-offset{
        margin-top: -10rem;
    }

}

/* FRONT */

/* Broadcast */

.broadcast-link{
    max-width: calc( 100vw - ( 2 * var(--bs-card-spacer-x) + var(--bs-gutter-x) + 1rem + 34px) );
    line-height: 1.7;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
}

.select-filter {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media screen and (min-width: 992px) {

    .broadcast-link{
        max-width: 150px;
    }
}

@media screen and (min-width: 1200px) {

    .broadcast-link{
        max-width: 360px;
    }
}

@media screen and (min-width: 1600px) {

    .broadcast-link{
        max-width: 560px;
    }
}


.draggable-source {
    cursor: grab;
}

.draggable-source:active {
    cursor: grabbing;
}

.dropzone {
    transition: background-color 0.2s;
}

.upload-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.upload-loader-box {
    background-color: #fff;
    border: 1px solid #e2e5e9;
    border-radius: var(--bs-border-radius-xl);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.75rem;
}


/* Playlist status animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-animation {
    animation: spin 1.5s linear infinite;
}
