/*****************/
/* Style globaux */
/*****************/
body {
	font-family: 'Poppins', var(--bs-body-font-family);
}
h1 {
	font-weight: bold;
}
h2 {
	font-weight: bold;
	color: #545454;
	font-size: 1.5rem;
}

/**********************/
/* Styles utilitaires */
/**********************/
.p-5 {
	padding: 2rem !important;
}
.rounded-6 {
	border-radius: 20px !important;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/***********************/
/* Style de la sidebar */
/***********************/
#leftSidebar li a , #offcanvasSidebar li a{
	padding: 8px 10px;
}

#leftSidebar li.active, #offcanvasSidebar li.active{
	/*background: #f8f9fa;*/
	background-color: #f4f5f5;
	border-radius: 8px;
}

#leftSidebar li.active a, #offcanvasSidebar li.active a {
	color: #000 !important;
	font-weight: 700;
}

/**********************/
/* Style de la navbar */
/**********************/
.navbar {
	box-shadow: none;
	transition: box-shadow 0.5s ease, opacity 0.5s ease;
}
.is-scrolled .navbar {
	box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

/*******************/
/* Style des cards */
/*******************/
.card {
	border-radius: 8px;
}
.card .card-image {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	/*height: 320px;*/
	aspect-ratio: 3/2; 
	width: 100%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 50%;
}

/** Gère les animations de cards **/
/** Ajouter la class .hoverable à une carte pour activer l'effet **/
.hoverable {
    box-shadow: 0 .125rem .25rem rgba(0,0,0, .075);
	transition: .3s transform cubic-bezier(.155,1.105,.295,1.12),.3s box-shadow,.3s -webkit-transform cubic-bezier(.155,1.105,.295,1.12);
	cursor: pointer;
}
.hoverable:hover{
	  box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}

.hoverable  .bi-plus-circle {
     transition: transform 0.5s ease 0s;
}
.hoverable:hover .bi-plus-circle {
	transform: rotate(180deg);		
}

/********************/
/* Style des tables */
/********************/
.table-soft {
  width: 100%;
  border-collapse: separate;   /* nécessaire pour l'espacement */
  border-spacing: 0 14px;      /* espace vertical entre les lignes */
}

/* Header */
.table-soft thead th {
  color: #6b6b6b;
  font-weight: 900;
  font-size: 1rem;
  padding: 8px 22px;
  border: 0;
}
.table-soft thead th a {
  color: #6b6b6b !important;
}

/* Coins arrondis du header */
.table-soft thead th:first-child {
  border-top-left-radius: 8px;
}
.table-soft thead th:last-child {
  border-top-right-radius: 8px;
}

/* Row "card" */
.table-soft tbody tr {
	
}

/* Cells */
.table-soft tbody td {
  padding: 22px 22px;
  border: 0;
  vertical-align: middle;
  font-size: 1rem;
  color: #222;
  background-color: #fff;
}

/* Coins arrondis des lignes */
.table-soft tbody tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.table-soft tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Hover (léger) */
.table-soft tbody tr:hover {
  /*box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  transition: box-shadow .15s ease, transform .15s ease;*/
}

/* "Chips" / tags (Groupes) */
.table-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  margin-right: 10px;
  border-radius: 999px;
  background: #dbe8ff;
  color: #3a5ea8;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Colonne email légèrement plus neutre */
.table-soft td.col-email {
  color: #333;
  font-weight: 500;
}

/* Colonne rôle */
.table-soft td.col-role {
  color: #222;
  font-weight: 600;
}

/* Responsive : réduit le padding sur mobile */
@media (max-width: 768px) {
  .table-soft thead th,
  .table-soft tbody td {
    padding: 14px 14px;
    font-size: 0.95rem;
  }
  .table-soft {
    border-spacing: 0 10px;
  }
}

/** Gère les tr et td clickable **/
tr.clickRow, td.clickRow {
	cursor: pointer;
}

/************************************/
/* Style des form-control vue liste */
/************************************/
.search-pill{
  	display:flex;
  	align-items:center;
  	gap:.5rem;
  	padding:.35rem .75rem;
  	border-radius:999px;
  	background:#e9e9e9;
}
.search-pill i{
  	opacity:.6;
}
.search-pill .form-control{
  	background:transparent;
  	padding:0;
  	height:auto;
  	font-size:.875rem;
}

/* Segmented */
.segmented-pill{
  	display:inline-flex;
  	gap:6px;
  	padding:6px;
  	border-radius:999px;
  	background:#e9e9e9;
}
.segmented-pill a {
	text-decoration: none;
	color: #777;
}
.seg-btn{
	padding:.35rem 1.2rem;
  	border-radius:999px;
  	cursor:pointer;
  	color:#777;
  	user-select:none;
  	font-size: .75rem;
}
.btn-check:checked + .seg-btn, a.active {
  	background:#fff;
  	color:#333;
  	box-shadow:0 1px 2px rgba(0,0,0,.12);
}


/*************************************/
/* Style des controles de pagination */
/*************************************/
.page-item:first-child .page-link {
	border-top-left-radius: 20px !important;
  	border-bottom-left-radius: 20px !important;
}
.page-item:last-child .page-link {
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

/*************************/
/* Style des formulaires */
/*************************/
form label {
	font-weight: bold !important;
}
form input, form select, form textarea {
	border-radius: 8px !important;
}
.select2-container--bootstrap-5 .select2-selection {
	border-radius: 8px !important;
}
.bootstrap-select .dropdown-toggle {
	border-radius: 8px !important;
}
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
  	border-top-right-radius: 0 !important;
  	border-bottom-right-radius: 0 !important;
}
.input-group .bootstrap-select .dropdown-toggle {
	border-top-right-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.input-group-text {
	border-radius: 8px !important;
	font-size: .75rem;
}

/****************************/
/* Styles des codes Spartime */
/****************************/
.spartime-code {
	display: flex;
	justify-content: start;
	padding-top: 16px;
	padding-bottom: 16px;
}
.spartime-code span {
	font-weight: bold; 
	font-size: 20px; 
	aspect-ratio: 1/1; 
	height: 40px; 
	display: flex; 
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	border: 3px solid #212529;
	background: #FFFFFF;
	margin-right: .25rem;
}
.spartime-code span.val {
	background: #198754;
	margin-right: 0;
	font-size: 28px; 
}
