/* === GLOBAL === */
body {
  background: #f8f9fa;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

body.authenticated {
  padding-top: 72px;
}
body.guest {
  padding-top: 0;
}

h1, h2, h3 {
  font-weight: 600;
  color: #212529;
}

h2 {
  border-left: 4px solid #0d6efd;
  padding-left: 8px;
  margin-bottom: 1rem;
}

/* === NAVBAR === */
.navbar {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding-left: 0 !important;   /* ✅ neutralise les marges Bootstrap */
  padding-right: 0 !important;
}

.navbar-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}



/* ✅ Nettoyage des containers Bootstrap inutiles dans la navbar */
.navbar .container,
.navbar .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  width: 100%;
  max-width: none;
}

/* Liens navbar */
.navbar .nav-link {
  color: #495057;
  transition: all 0.2s;
}
.navbar .nav-link:hover {
  color: #0d6efd;
}
.navbar .nav-link.active {
  font-weight: 600;
  color: #0d6efd !important;
}

/* === CONTENU === */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px;
}

/* Mode invité */
body.guest .main-container {
  margin-top: 40px;
}

/* === TABLES === */
.table {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.table thead {
  background: #f1f3f5;
}
.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

/* === BADGES === */
.badge {
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* === CARTES & LISTES === */
.card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.list-group-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
}

/* === ALERTES === */
.alert {
  border-radius: 8px;
  font-size: 0.9rem;
}

/* === BOUTON DECONNEXION === */
.logout-btn {
  transition: all 0.2s ease-in-out;
}

/* Desktop */
@media (min-width: 992px) {
  .logout-btn {
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 4px 10px !important;
  }
  .logout-btn:hover {
    background: #dc3545 !important;
    color: #fff !important;
  }
}

/* Mobile */
@media (max-width: 991.98px) {
  .logout-btn {
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 14px !important;
  }
  .logout-btn:hover {
    background: #dc3545 !important;
    color: #fff !important;
  }
}

/* === OFFCANVAS MOBILE === */
.offcanvas {
  transition: transform 0.35s ease-in-out, opacity 0.25s ease-in-out;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
}
.offcanvas.show {
  opacity: 1;
}
.offcanvas-header {
  border-bottom: 1px solid #e9ecef;
}
.offcanvas-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1rem;
}
@media (max-width: 991.98px) {
  .offcanvas .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
  }
}

/* === DRAG & DROP UPLOAD === */
#dropZone {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-style: dashed;
}
#dropZone:hover {
  background-color: #f1f3f5;
}
#fileList .list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

