html, * {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
body {
    color : #2c2c40; background: rgba(18,38,63,0);
    background-image: url('/assets/img/tile.png');
    background-repeat: repeat;
    background-size: 30px 30px;
}
label { color : #6360a4; }
::placeholder {
    color: #6360a4;
}
html,
body {
    height: 100%;
}

.form-signin {
    max-width: 420px;
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin .input-top {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin .input-bottom  {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
a { color: #2c2c40; text-decoration: none; }
a:hover { color: #6360a4; }

.btn {
    /*border-radius: 5px;*/
}

.btn-link { color: #2c2c40; }
.btn-link:hover { color: #6360a4; }

.btn-primary { background: #4a4881; border: solid 1px #2c2c40; }
.btn-default { background: #f2f2f2; color:#999; border: solid 1px #ccc; }
.btn-default:hover { background: #e3e2e2; color:#333; border: solid 1px #ccc; }
.text-primary { color:#4a4881 !important; }
.text-primary { color:#4a4881 !important; }
.text-primary-soft { color:rgba(74,72,129,.5) !important; }
.btn-primary:hover { background: #4a4881;  border: solid 1px #2c2c40; }
.btn-outline-primary {  color:#2c2c40;  border: solid 1px #2c2c40 }
.btn-outline-primary:hover {  background:#4a4881;  border: solid 1px #4a4881 }

.btn-green { background: #5cda52; color:#fff;  border: solid 1px #50bf47; }
.btn-green:hover { background: #50bf47; color:#fff;  border: solid 1px #5cda52; }
.password-container {
    position: relative;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}
.error-message {
    color: red;
    display: none;
}


.page-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all .4s .2s ease-in-out;
    transition: all .4s .2s ease-in-out;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}
.page-loading-modal {
    position: relative;
    min-height: 300px;
    -webkit-transition: all .4s .2s ease-in-out;
    transition: all .4s .2s ease-in-out;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}
[data-bs-theme="dark"] .page-loading {
    background-color: #0b0f19;
}
.page-loading.active {
    opacity: 1;
    visibility: visible;
}
.page-loading-modal.active {
    opacity: 1;
    visibility: visible;
}
.page-loading-inner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
    opacity: 0;
}
.page-loading.active > .page-loading-inner {
    opacity: 1;
}
.page-loading-modal.active > .page-loading-inner {
    opacity: 1;
}
.page-loading-inner > span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #9397ad;
}
[data-bs-theme="dark"] .page-loading-inner > span {
    color: #fff;
    opacity: .6;
}
.page-spinner {
    display: inline-block;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: .75rem;
    vertical-align: text-bottom;
    border: .15em solid #b4b7c9;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner .75s linear infinite;
}
[data-bs-theme="dark"] .page-spinner {
    border-color: rgba(255,255,255,.4);
    border-right-color: transparent;
}
.btn-light:hover { background: #dce8f8; border:1px solid #ffffff
}
.breadcrumb-item+.breadcrumb-item:before{ content:">" }
.btn-circle  {
    width: 40px;
    height: 40px;
    padding: 3px 0px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}
.selectize-dropdown .active:not(.selected), .selectize-dropdown [data-selectable], .selectize-dropdown .active { padding:5px 10px; }
.selectize-control.multi .selectize-input [data-value] { border:0px;  background: #6360a4 !important; color:#fff !important; text-shadow : none !important; color: #2c2c40 !important; box-shadow : none !important; background-image:none !important;}
span.name, a.remove , span.zipcode { color:#fff !important;}


.table-header-sticky {
    max-height: 400px; /* Hauteur maximale du tableau avec défilement */
    overflow-y: auto;
}

/* Rendre l'en-tête du tableau sticky */
.table-header-sticky  th {
    position: sticky;
    top: 0;
    background-color: white; /* Couleur de fond de l'en-tête */
    z-index: 10; /* S'assurer que l'en-tête est au-dessus du corps du tableau */
}

.selectize-control.multi .selectize-input [data-value] {
    color:#fff !important;
}
.selectize-control.plugin-remove_button .item .remove {
    border-left: 1px solid rgba(44, 44, 64, 0.53) !important;
}

.edit .selectize-control.multi .selectize-input.has-items{
    box-shadow:none;
}
.edit .selectize-input { border: 0px; box-shadow: none; }
.edit .timeSlot { padding: 0px; }


/* Mediatheque */
#drop-area {
    border: 2px dashed #6360a4;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}


    .form-check-input:checked {
        background-color: #6360a4;
        border-color: #6360a4;
    }
/* Grille Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 10px;
}
#masonry-grid {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    height: 100%; /* Assure que la hauteur est définie */
    min-height: 200px; /* Optionnel : Ajoute une hauteur minimale */
}
.masonry-item {
    background-color: transparent;
    padding: 5px;
    height: 100%; /* Pour que l'élément occupe toute la hauteur dans la grille */
    display: flex;
    flex-direction: column;
}

.file-card {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 10px;
    text-align: center;
    height: 100%; /* Assure que la carte occupe toute la hauteur de l'élément */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file-card .card-header {
    padding: 10px;
}

.file-card .card-body {
    flex-grow: 1; /* Prend tout l'espace disponible dans la carte */
    padding: 0;
}

.file-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.file-card .card-footer {
    padding: 10px;
    text-align: center;
    margin-top: auto; /* Assure que le footer est poussé vers le bas */
    border-top: 1px solid #ddd;
}
.card-header-title {
    display: block; /* Nécessaire pour que le tooltip fonctionne */
    max-width: 100%; /* Limite la largeur du titre */
    overflow: hidden; /* Masque le texte qui déborde */
    white-space: nowrap; /* Empêche le texte de se diviser sur plusieurs lignes */
    text-overflow: ellipsis; /* Ajoute des points de suspension (...) */
}

/* Toastr */
#toast-container>div { box-shadow: none !important; opacity: 1 !important; }
/* Personnalisation des notifications de succès */
.toast-success {
    background-color: #6360a4 !important; /* Couleur de fond verte */
    color: white; /* Couleur du texte */
    box-shadow: none;
}

/* Personnalisation des notifications d'erreur */
.toast-error {
    background-color: #b82c46; /* Couleur de fond rouge */
    color: white; /* Couleur du texte */
    box-shadow: none;
}

/* Personnalisation des notifications d'information */
.toast-info {
    background-color: #17a2b8; /* Couleur de fond bleu */
    color: white; /* Couleur du texte */
    box-shadow: none;
}

/* Personnalisation des notifications d'avertissement */
.toast-warning {
    background-color: #ffc107; /* Couleur de fond jaune */
    color: black; /* Couleur du texte */
    box-shadow: none;
}

/* Personnalisation des positions des notifications */
.toast-top-right {
    top: 10px; /* Positionner en haut à droite */
    right: 10px; /* Positionner en haut à droite */
}
/* Rendre le conteneur de Toastr 100% */
#toast-container > .toast {
    width: 100% !important;
    box-sizing: border-box; /* Assure que le padding est inclus dans la largeur */
    margin: 0 auto; /* Centrer si nécessaire */
}

/* Ajustez les marges si vous voulez un espace autour */
#toast-container {
    padding: 0 15px; /* Ajustez les valeurs pour des marges personnalisées */
}

.form-group-container {
    display: flex;
    gap: 15px; /* Espace entre les champs, ajustez si nécessaire */
}

.form-group-container .form-group {
    flex: 1; /* Chaque champ prend une largeur égale */
    min-width: 0; /* Permet de gérer correctement le redimensionnement */
}
.list-group-flush .list-group-item-action{
    padding: 10px 10px 10px 15px;
    border: 0;
    border-radius: 10px;
}
.list-group-flush .list-group-item-action i{
    color:#6360a4;
}
.list-group-flush .list-group-item-action.active{
    background: #6360a4; color:#fff;
}
.list-group-flush .list-group-item-action.active i{
     color:#fff;
}
.btn-close { border:1px solid #ccc; border-radius: 30px; }

.bootbox .modal-dialog {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Example shadow */
}
.bootbox {
    background: rgba(0,0,0,0.6);
}

@-webkit-keyframes spinner {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spinner {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/* Modal extra large (modal-xl) */
@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

/* Optionnel : Ajuster la taille de la modal pour les autres points de rupture */
@media (min-width: 1400px) {
    .modal-xl {
        max-width: 1320px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .modal-xl {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .modal-xl {
        max-width: 720px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .modal-xl {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {
    .modal-xl {
        max-width: 100%;
    }
}

