
body {
  font-size: .950rem;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */
.sidebartitle {
    font-size: .850rem;
}
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 0px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    font-size: .800rem;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    
    
    
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #000;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    /*background-color: rgba(0, 0, 0, .25);*/
    /*box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);*/
}

.navbartop{
    
   
    padding-top: 0;
}
.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

#sidebarMenu {
    overflow-y: auto;
    overflow-x: hidden;
    top: 150px; /* Démarre la sidebar à 100px du haut */
   

}

/* Personnalise l'aspect global de la barre de défilement */
#sidebarMenu::-webkit-scrollbar {
    margin-top: 100px;
    width: 8px; /* Largeur de la barre de défilement */
}

/* Personnalise le fond de la piste de la barre de défilement */
#sidebarMenu::-webkit-scrollbar-track {
    background: #f1f1f1; /* Couleur du fond */
    border-radius: 10px; /* Arrondit les angles */
}

/* Personnalise le thumb de la barre de défilement (la partie que vous déplacez) */
#sidebarMenu::-webkit-scrollbar-thumb {
    background: #002e5f; /* Couleur du thumb */
    border-radius: 10px; /* Arrondit les angles */
}

/* Change la couleur du thumb au survol ou lors du clic */
#sidebarMenu::-webkit-scrollbar-thumb:hover {
    background: #555; /* Couleur du thumb au survol */
}

/* Personnalise l'aspect global de la barre de défilement pour toute la page */
html::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre de défilement */
}

/* Personnalise le fond de la piste de la barre de défilement pour toute la page */
html::-webkit-scrollbar-track {
    background: #f1f1f1; /* Couleur du fond */
    border-radius: 10px; /* Arrondit les angles */
}

/* Personnalise le thumb de la barre de défilement (la partie que vous déplacez) pour toute la page */
html::-webkit-scrollbar-thumb {
    background: #888; /* Couleur du thumb */
    border-radius: 10px; /* Arrondit les angles */
}

/* Change la couleur du thumb au survol ou lors du clic pour toute la page */
html::-webkit-scrollbar-thumb:hover {
    background: #555; /* Couleur du thumb au survol */
}

.footer-navbar a {
    color: lightblue; /* Couleur des liens pour les rendre plus visibles */
}

.footer-navbar a:hover {
    color: white; /* Couleur au survol */
}


.card-custom {
    padding: 10px; /* Réduisez selon vos besoins */
}

.no-gutter > [class*='col-'] {
    padding-right:0;
    padding-left:0;
}

.custom-label {
    font-size: 0.8rem; /* Réduire la taille de la police */
    line-height: 1;
}

.list-group .dropdown-item {
    white-space: normal;
}


.card.universcard {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card.universcard:hover{
    transform: scale(1.05);
    transition: transform 0.3s;
}

.card-title.universcard{
    min-height: 50px;
}

.bg-custom {
    background-color: #002e5f !important; 
}
.text-custom {
    color: #002e5f !important; 
}
.btn-custom {
    background-color: #002e5f;
    color: #ffffff !important;
}

.groupe-field,
.ateliers-field {
    display: none;
}

.card-body.universcard {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



.profil-img {
    width: 35px;   /* Réduit la taille des images */
    height: 35px;  /* Hauteur réduite pour correspondre */
}
.msg_history {
    overflow-y: auto;
    padding: 10px;
}
.incoming_msg, .outgoing_msg {
    margin-bottom: 15px;
}
.incoming_msg_img {
    display: inline-block;
    width: 40px;
    vertical-align: top;
}
.received_msg {
    max-width: 100%;
}
.received_withd_msg p, .sent_msg p {
    margin: 0;
    word-break: break-word;
}
.sent_msg {
    max-width: 100%;
}
.time_date {
    font-size: 12px;
    margin-top: 5px;
}
.input-group .form-control {
    border-right: none;
}
.input-group .form-control:focus {
    box-shadow: none;
}
.input-group-append .btn {
    border-left: none;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #ffffff !important;
    background-color: #002e5f;

}

.list-group-item {
padding: 5px !important;
}

.btn-group-sm>.btn, .btn-sm {
    padding: 5px !important;
}

ul.timeline-3 {
  list-style-type: none;
  position: relative;
}
ul.timeline-3:before {
  content: " ";
  background: #002e5f;
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 400;
}
ul.timeline-3 > li {
  margin: 20px 0;
  padding-left: 20px;
}
ul.timeline-3 > li:before {
  content: " ";
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 3px solid #002e5f;
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
}

#btn-save {
    transition: all 0.3s ease-in-out;
}

#btn-save:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

input[type=checkbox]{
    accent-color: #002e5f;
}

input[type=radio]{
    accent-color: #002e5f;
}

.btn-fixed {
    position: fixed;
    bottom: 15px;
    left: 15px; /* Déplace le bouton vers la gauche */
    width: auto; /* Pour s'adapter au contenu */
    z-index: 1000;
}

.container {
    padding-bottom: 60px;
}



.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    margin: 2px;
    text-transform: capitalize;
}

/* Couleurs par catégorie */
.badge.fichier {
    background-color: #3498db; /* bleu */
    color: white;
}

.badge.messagerie {
    background-color: #9b59b6; /* violet */
    color: white;
}

.badge.demande {
    background-color: #f39c12; /* orange */
    color: white;
}

.badge.upload {
    background-color: #2ecc71; /* vert */
    color: white;
}

.badge.suppression {
    background-color: #e74c3c; /* rouge */
    color: white;
}

.badge.statut {
    background-color: #1abc9c; /* turquoise pour les changements de statut */
    color: white;
}

.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff !important;
    background-color: #002e5f !important; 
    border-color: #002e5f !important; 
    box-shadow: 0 0 0 0.2rem rgba(0, 46, 95, 0.25) !important;
}

.btn-outline-primary {
    color: #002e5f !important; 
    border-color: #002e5f !important; 
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #002e5f !important; 
}

.badge {
    text-transform: none !important; 
}

.msg-unread {
    filter: blur(3px);
    position: relative;
}

.msg-unread:hover {
    filter: blur(3px);
    position: relative;
}

/* Permet d'afficher un bouton par-dessus le message flouté */
.message-container {
    position: relative;
}

.message-overlay {
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.0); /* transparent, on voit le flou en dessous */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 5px;
    z-index: 10;
}

.thread-block {
    position: relative;
    border-left: 4px solid var(--thread-color, #007bff);
    padding-left: 1rem;
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.thread-block:hover {
    background-color: #f1f1f1;
}

/* Si tu veux un jeu de couleurs cycliques */
.thread-color-1 { --thread-color: #007bff; }  /* Bleu */
.thread-color-2 { --thread-color: #28a745; }  /* Vert */
.thread-color-3 { --thread-color: #fd7e14; }  /* Orange */
.thread-color-4 { --thread-color: #6f42c1; }  /* Violet */
.thread-color-5 { --thread-color: #e83e8c; }  /* Rose */

/* Colonne tronquée avec ... */
.truncate-col {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Effet de survol pour les liens */
.hover-effect:hover {
    color: #007bff;
    text-decoration: underline;
}

.btn-create-demande {
    transition: all 0.2s ease-in-out;
}
.btn-create-demande:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.newdemande .btn-outline-primary {
    color: #002e5f !important;
    border-color: #002e5f !important;
}

.newdemande .btn-outline-primary:hover {
    color: #fff !important;
    background-color: #002e5f !important;
}

.truncate-col {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tooltip {
  z-index: 99999 !important;
}
.select2-selection__rendered {
    line-height: calc(1.5em + .75rem + 2px) !important;
}
.select2-container .select2-selection--single {
    height: calc(1.5em + .75rem + 2px) !important;
}
.select2-selection__arrow {
    height: calc(1.5em + .75rem + 2px) !important;
}

.mainunivers {
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.mainunivers .flex-grow-label {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.mainunivers .badge,
.mainunivers .btn {
    white-space: nowrap;
}

.mainunivers .d-flex.align-items-center {
    gap: 6px;
}

.mainunivers .list-group-item {
border: 1px solid rgb(79 55 55 / 30%) !important;
margin-bottom: 3px;
}

.msg-cloture {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 1rem;
    font-style: italic;
}

.message-special {
    border-left: 4px solid #dc3545 !important; /* Rouge Bootstrap */
    padding-left: 10px;
}

.message-tag {
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 5px;
}
.upload-blink {
    animation: blink-upload 1.2s ease-in-out infinite !important;
}
@keyframes blink-upload {
    0%, 100% { box-shadow: 0 0 0 rgba(220,53,69,0); }
    50% { box-shadow: 0 0 20px rgba(220,53,69,0.6); }
}

.custom-tooltip {
  position: fixed;
  background-color: #343a40;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 9999;
  max-width: 300px;
  word-wrap: break-word;       /* 🔥 coupe le texte long */
  white-space: normal;         /* 🔥 permet les retours à la ligne */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: none;
  display: none;
}

.bg-teal {
    background-color: #138496 !important;
}

.bg-waitnetwork {
    background-color: #0f6674 !important;
}

.msg-highlight-unread {
    border: 2px solid #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
    border-radius: 6px;
    padding: 6px;
    position: relative;
}

.msg-highlight-unread::before {
    content: "🟠 Non lu";
    position: absolute;
    top: -10px;
    right: 8px;
    font-size: 0.75rem;
    background: #fff3cd;
    color: #ff9800;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.icon-transfert {
      color: #002e5f;            /* ex : Bootstrap “info” */
      margin-left: .35rem;       /* petit écart avec le texte */
      vertical-align: middle;    /* bien centré verticalement */
}

.btn-orange-plus {
    background:#ff7a00 !important;
    border-color:#ff7a00 !important;
    color:#fff !important;
    transition:background-color .15s ease;   /* animation douce */
}
.btn-orange-plus:hover,
.btn-orange-plus:focus {
    background:#e96c00 !important;           /* ± 10 % plus foncé */
    border-color:#e96c00 !important;
}