.left-side {
  background-color: var(--bs-primary);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.left-side img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.right-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: white;
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon {
  cursor: pointer;
  font-size: 20px;
  color: var(--bs-secondary);
  transition: var(--transition);
  position: relative;
}

.icon:hover {
  color: var(--bs-primary);
  transform: translateY(-2px);
}

.icon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--bs-warning);
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}



body {
  background-color: #f8f9fa;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  background-color: var(--bs-primary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar .section-title {
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

.sidebar .nav-link {
  color: white;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #383838;
  color: #fff;
}

.sidebar .nav-link {
  position: relative;
  overflow: visible;

}

.sidebar .nav-link:hover::after,
.sidebar .nav-link.active::after {
  width: 0;
  height: 0;
  border: 10px solid transparent;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 0;
  border-right-color: #F5F8FA;
  border-top-width: 22px;
  border-bottom-width: 22px;
  content: " ";
  position: absolute;
}

.nav-link i{
  width:18px!important;
}
.sidebar-overlay {
  display: none;
}

.sidebar-overlay.show {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.main-content {
  width: 100%;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.navbar {
  border-bottom: 1px solid #dee2e6;
}

.table th,
.table td {
  vertical-align: middle;
}

body.sidebar-open {
  overflow: hidden;
}

/* Desktop ≥768px */
@media (min-width: 768px) {
  .sidebar {
    transform: none !important;
    /* Ignore .collapsed, always shown */
  }

  .main-content {
    margin-left: 250px;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* Mobile <768px */
@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
    /* Hide by default */
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}



.test {
  border: solid red 1px;
}

/* LIENS SOULIGNES */
a.souligne {

  font-weight: 400;
  position: relative;
  text-decoration: none;
  /* Supprime le soulignement par dÃ©faut */
  color: var(--bs-link-color);
  /* Couleur du texte du lien */
}

a.souligne::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  /* Epaisseur de la ligne */
  background-color: var(--bs-link-color);
  /* Couleur de la ligne */
  transition: width 0.3s ease;
  /* Animation de l'effet */
}

a.souligne:hover::after {
  width: 100%;
  /* Fait s'Ã©tendre la ligne sur toute la largeur du lien */
}

/* ///////////////////////// */

.left-side {
  background-color: var(--bs-primary);
  background-image: url('/assets/images/background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  align-items: center;
  text-align: center;

}

.left-side img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.right-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: white;
}

.login-form {
  width: 100%;
  max-width: 400px;
}



body {
  background-color: #f8f9fa;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  background-color: var(--bs-primary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar .section-title {
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

.sidebar .nav-link {
  color: white;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #2f2750;
  color: #fff;
}

.sidebar-overlay {
  display: none;
}

.sidebar-overlay.show {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.main-content {
  width: 100%;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.navbar {
  border-bottom: 1px solid #dee2e6;
}

.table th,
.table td {
  vertical-align: middle;
}

body.sidebar-open {
  overflow: hidden;
}

/* Desktop ≥768px */
@media (min-width: 768px) {
  .sidebar {
    transform: none !important;
    /* Ignore .collapsed, always shown */
  }

  .main-content {
    margin-left: 250px;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* Mobile <768px */
@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
    /* Hide by default */
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}


#image-connexion {

  /* background-blend-mode: multiply; */
  background-size: cover;
  background-position: center;
  background-color: var(--bs-bg-primary);
}

.btn-primary {
  background-color: var(--bs-bg-primary) !important;
  border-color: var(--bs-bg-primary) !important;
}

.btn-primary:hover {
  background-color: var(--bs-primary-hover) !important;
  border-color: var(--bs-primary-hover) !important;
}

/* HEADERS */
h1 {}

h2 {}

h3 {
  color: var(--bs-primary) !important;
  font-weight: 700 !important;
}

/* DATATABLE */

.pagination {
  --bs-pagination-active-bg: white;
  --bs-pagination-active-color: rgb(119, 119, 119);
  --bs-pagination-active-border-color: var(--bs-primary) !important;
  --bs-pagination-hover-color: white;
}

.table-sm{
  font-size:0.8em;
}
.table-xs{
  font-size:0.6em;
}
.table-xs td{
  padding:0px 5px;
}

/* NAV sidebar */
.sidebar {
  padding: 0;
  font-size: 0.9em;
}

.sidebar .section-title {
  padding-left: 5px;
}

.sidebar .nav-link {
  /* border-top:1px dotted transparent; */
  /* border-bottom:1px dotted #FFFFFF1F; */
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  /* background-color:var(--bs-primary-hover)!important;
  border-top:1px solid  #FFFFFFaa;
  border-bottom:1px solid  #FFFFFFaa; */
}


/* DIVERS */

small {
  font-size: 0.7em;
}

.gras {
  font-weight: 700 !important;
}

/* CHECKBOX */

.form-check-input {
  height: 30px;
  width: 30px;
  margin: 10px;
  background-color: white;
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-check-label {
  margin-top: 12px;
}

/* LIENS SOULIGNES */
a {
  text-decoration: none;
  color: var(--bs-primary);
}

a:hover {
  color: var(--bs-primary-hover);
}

.card a:not(.btn):not(.brut) {

  font-weight: 400;
  position: relative;
  text-decoration: none;
  color: var(--bs-primary);
}

.card a:not(.btn):not(.brut)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: var(--bs-primary);
  transition: width 0.3s ease;
}

.card a:not(.btn):not(.brut):hover::after {
  width: 100%;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link:hover {
  background-color: var(--bs-primary-hover);
  border-color: var(--bs-primary-hover);
}

/* 
.text-primary {

  color: var(--bs-primary) !important;

} */

/** FORMAFILES **/
.content {
  min-height: 90vh;
  height: 90%;
}

/* Mobile <768px */
@media (max-width: 767.98px) {
  .content {
    min-height: auto;
    height: auto;
  }
}

.drop-zone {
  border: 2px dashed var(--bs-primary);
  border-radius: 12px;
  padding: 60px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.drop-zone.dragover {
  background: #e7f1ff;
  border-color: var(--bs-secondary);
  transform: scale(1.02);
}

.remove-file {
  cursor: pointer;
}

/* FormaFiles — page de dépôt public */
.ff-deposit {
  --ff-border: #e9ecef;
  --ff-muted: #6c757d;
  --ff-surface: #f8f9fb;
  --ff-radius: 16px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  background-color: white;
}

.ff-deposit__hero {
  margin-bottom: 2rem;
}

.ff-deposit__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-primary);
  margin-bottom: 0.75rem;
}

.ff-deposit__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ff-deposit__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ff-muted);
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.ff-deposit__meta.is-open {
  color: #198754;
  background: #f0faf4;
  border-color: #ccebd8;
}

.ff-deposit__description {
  color: var(--ff-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 1rem 0 0;
  max-width: 42rem;
}

.ff-deposit__panel {
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.ff-deposit__panel-body {
  padding: 1.75rem;
}

.ff-deposit__dropzone {
  border: 1.5px dashed #cfd6df;
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: var(--ff-surface);
}

.ff-deposit__dropzone:hover,
.ff-deposit__dropzone.is-dragover {
  border-color: var(--bs-primary);
  background: #f4f8ff;
  box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.08);
}

.ff-deposit__dropzone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ff-border);
  color: var(--bs-primary);
  font-size: 1.35rem;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.ff-deposit__dropzone-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #212529;
}

.ff-deposit__dropzone-hint {
  font-size: 0.875rem;
  color: var(--ff-muted);
  margin-bottom: 1.25rem;
}

.ff-deposit__select-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
}

.ff-deposit__files {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.ff-deposit__file {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.ff-deposit__file:hover {
  border-color: #d5dbe3;
}

.ff-deposit__file-preview {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--ff-border);
  font-size: 1.125rem;
}

.ff-deposit__file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-deposit__file-info {
  flex: 1;
  min-width: 0;
}

.ff-deposit__file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-deposit__file-size {
  font-size: 0.75rem;
  color: var(--ff-muted);
}

.ff-deposit__file-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ff-deposit__file-remove:hover {
  background: #fee2e2;
  color: #dc3545;
}

.ff-deposit__progress {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 12px;
}

.ff-deposit__progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
}

.ff-deposit__progress-status {
  color: var(--ff-muted);
}

.ff-deposit__progress-percent {
  font-weight: 700;
  color: var(--bs-primary);
  font-variant-numeric: tabular-nums;
}

.ff-deposit__progress-track {
  height: 6px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.ff-deposit__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bs-primary), #4dabf7);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.ff-deposit__progress-bar.is-error {
  background: #dc3545;
}

.ff-deposit__progress-details {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ff-muted);
  font-variant-numeric: tabular-nums;
}

.ff-deposit__submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.ff-deposit__submit:not(:disabled):hover {
  transform: translateY(-1px);
}

.ff-deposit__submit:disabled {
  opacity: 0.55;
}

.ff-deposit__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ecfdf3;
  color: #198754;
  font-size: 1.75rem;
}

.ff-deposit__success-title {
  font-size: 1.375rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.ff-deposit__success-message {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ff-muted);
  margin-bottom: 1.5rem;
}

.ff-deposit__file.is-success {
  background: #f8fdf9;
  border-color: #ccebd8;
}

.ff-deposit__file-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #198754;
  background: #ecfdf3;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.ff-deposit__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
  background: #212529;
  color: #fff;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ff-deposit__notice {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  margin-top: 0rem;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 12px;
}

.ff-deposit__notice-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ff-border);
  color: var(--bs-primary);
  font-size: 0.9rem;
}

.ff-deposit__notice-title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ff-deposit__notice-text {
  font-size: 0.8125rem;
  color: var(--ff-muted);
  line-height: 1.55;
  margin: 0;
}

.ff-deposit__aside {
  margin-top: 0rem;
}

@media (min-width: 992px) {
  .ff-deposit {
    padding: 2.5rem 1.5rem 4rem;
  }

  .ff-deposit__layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
  }

  .ff-deposit__aside {
    margin-top: 0;
    position: sticky;
    top: 1.5rem;
  }
}

.ff-deposit__closed {
  text-align: center;
  padding: 3rem 1.5rem;
}

.ff-deposit__closed-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc3545;
  font-size: 1.25rem;
}