:root {
  --primary-color: #1e2a38;
  --secondary-color: #4a5568;
  --accent-color: #ffffff;
  --text-dark: #2d3748;
  --bg-light: #f9fafb;
}

html {
  height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-light);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 76px;
  /* Compense la hauteur de la navbar fixe */
}

#main-content {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.navbar-brand {
  font-weight: bold;
  color: white !important;
}

.navbar.fixed-top {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1030;
  /* Assure que la navbar reste au-dessus du contenu */
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #e56a00;
  border-color: #e56a00;
}

.chevron {
  background-color: #e56a00;
  border-color: #e56a00;
  background-color: #3498db;
  color: #ffffff;
  border: none;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.chevron:hover {
  background-color: #e56a00;
  border-color: #e56a00;
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #009943;
}

/* Styles pour le bouton retour en haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  /* width: 50px; */
  height: 50px;
  border-radius: 50%;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  background-color: var(--primary-color);
}

.back-to-top:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
  font-size: 18px;
  color: white;
}

/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-to-top.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .back-to-top i {
    font-size: 16px;
  }
}

.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1.5px;
  content: "";
  background-color: #e9ecef;
}

.timeline > li {
  position: relative;
  margin-bottom: 50px;
  min-height: 50px;
}

.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}

.timeline > li:after {
  clear: both;
}

.timeline > li > .timeline-panel {
  position: relative;
  float: right;
  width: calc(100% - 90px);
  padding: 20px;
  border: 1px solid #d4edda;
  border-radius: 4px;
  background: #fff;
}

.timeline > li > .timeline-badge {
  position: absolute;
  left: 15px;
  top: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  font-size: 1.2em;
  line-height: 50px;
  color: #fff;
  background-color: var(--secondary-color);
}

.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
}

.timeline > li.timeline-inverted > .timeline-panel:before {
  right: auto;
  left: -15px;
  border-right-width: 15px;
  border-left-width: 0;
}

.timeline > li.timeline-inverted > .timeline-panel:after {
  right: auto;
  left: -14px;
  border-right-width: 14px;
  border-left-width: 0;
}

.progress-step {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.progress-step .step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step .step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #dee2e6;
  z-index: 1;
}

.progress-step .step.active:not(:last-child):after {
  background-color: var(--primary-color);
}

.progress-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #dee2e6;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.progress-step .step.active .step-icon {
  background-color: var(--primary-color);
  color: white;
}

.progress-step .step.completed .step-icon {
  background-color: var(--secondary-color);
  color: white;
}

.sidebar {
  min-height: calc(100vh - 56px);
  background-color: #343a40;
}

.sidebar .nav-link {
  color: #adb5bd;
  padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: var(--primary-color);
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.status-draft {
  background-color: #6c757d;
}

.status-submitted {
  background-color: #0dcaf0;
}

.status-in_review {
  background-color: #fd7e14;
}

.status-approved {
  background-color: #198754;
}

.status-rejected {
  background-color: #dc3545;
}

.status-completed {
  background-color: #6f42c1;
}

.profile-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #ffffff;
  /* cercle blanc */
  color: #1e2a38;
  /* texte bleu nuit */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.3rem;
  /* border: 2px solid #d4af37; */
  /* bord doré */
  margin-right: 5px;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.profile-avatar2 {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #1e2a38;
  /* cercle bleu nuit */
  color: #ffffff;
  /* texte blanc */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  /* border: 2px solid #d4af37; */
  /* bord doré */
  margin-right: 10px;
  user-select: none;
}

.dropdown-menu {
  min-width: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
  background-color: #f0f0f0;
  color: #1e2a38;
}

.nav-link.dropdown-toggle::after {
  display: none;
}
