/* =============================================
   1. BASE
   ============================================= */

body {
  color: #282828;
  background-color: #fff;
  font-weight: 400;
  font-family: Poppins, sans-serif !important;
}

b {
  font-weight: 600;
}

a {
  color: #000;
}

a:hover {
  text-decoration: none;
  cursor: pointer;
}

header a:hover {
  color: var(--color1) !important;
}

/* =============================================
   2. HEADER / NAVIGATION PRINCIPALE
   ============================================= */

#header {
  background: var(--color6);
  height: 60px;
  padding: 0;
  z-index: 999;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw !important;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

#header a {
  color: black;
}

#main {
  padding-top: 0px;
}

#header .logo img,
#header.header-scrolled .logo img {
  padding: 10px;
  margin: 0px;
  height: 70px;
  content: url("../../img/logo/logo_rectangle_uni.png");
}

li.active a {
  color: var(--color1) !important;
  font-weight: 700 !important;
}

.active {
  color: var(--color1) !important;
  font-weight: 400;
}

.titre h1 {
  border-left: 10px solid var(--color1);
  padding-left: 10px !important;
}

.mobile-nav-overly {
  background-color: var(--color1) !important;
  opacity: 0.7;
}

.mobile-nav-toggle i {
  padding-top: 0px;
  color: var(--color1);
}

.fa-check {
  color: var(--color1);
}
/* =============================================
   3. TYPOGRAPHIE / CONTENU
   ============================================= */

.fontAdmin {
  font-family: Poppins !important;
}

.formContenu {
  background-color: #f8f8f8;
}

.formContenu h1 {
  font-size: 26px;
  text-transform: uppercase;
  font-weight: 800;
}

.formContenu h2 {
  text-transform: none;
  font-size: 20px;
  font-weight: 500;
}

.formContenu h3 {
  text-transform: none;
  font-size: 18px;
  font-weight: 300;
}

.formContenu h4 {
  text-transform: none;
  font-size: 16px;
  font-weight: 300;
}

.formContenu p {
  text-transform: none;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.formContenu strong {
  font-weight: 700 !important;
}

.formContenu blockquote {
  text-transform: none;
  font-size: 12px;
  font-weight: 300;
}

.formContenu ul {
  text-transform: none;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.formContenu li {
  text-transform: none;
  list-style-type: disc;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

/* =============================================
   4. AFFICHAGE MOBILE / PC
   ============================================= */

.mobile {
  visibility: hidden;
  display: none;
}

.pc {
  visibility: visible;
  display: block;
}

@media (max-width: 992px) {
  .mobile {
    visibility: visible;
    display: block;
  }

  .pc {
    visibility: hidden;
    display: none;
  }

  .formContenu h1 {
    font-size: 22px;
  }
  .formContenu h2 {
    font-size: 18px;
  }
  .formContenu h3 {
    font-size: 16px;
  }
}

/* =============================================
   5. BOUTONS
   ============================================= */

.btn-info {
  background-color: #3466e5;
  border-color: #3466e5;
  font-weight: 300;
  font-size: 12px;
}

.btn-info:hover {
  background-color: #3466e5;
  border-color: #3466e5;
}

.btn-dark {
  font-weight: 300;
  font-size: 12px;
}
.btn-secondary {
  font-weight: 300;
  font-size: 12px;
}
.btn-danger {
  font-weight: 300;
  font-size: 12px;
}
.btn-warning {
  font-weight: 300;
  font-size: 12px;
}
.btn-success {
  font-weight: 300;
  font-size: 14px;
}

.btnBig {
  font-size: 18px;
  width: 100%;
}

/* =============================================
   6. FORMULAIRE ADMIN
   ============================================= */

.formAdmin {
  padding-top: 20px;
  margin-top: 0;
  font-size: 12px;
  font-family: Poppins !important;
}

.formAdmin h1 {
  font-weight: 300;
  font-size: 18px;
  font-family: Poppins !important;
}
.formAdmin h2 {
  font-weight: 500;
  font-size: 15px;
  font-family: Poppins !important;
}
.formAdmin h3 {
  font-weight: 500;
  font-size: 13px;
  font-family: Poppins !important;
}
.formAdmin h4 {
  font-weight: 300;
  font-size: 12px;
  font-family: Poppins !important;
}

.formAdmin h5 {
  font-weight: 300;
  font-size: 10px;
  font-family: Poppins !important;
  position: absolute;
  right: 15px;
}

.formAdmin .boxMenu {
  position: relative;
  overflow: hidden;
  padding: 10px;
  margin: 0 0 40px 0;
  background: #fff;
  box-shadow: 0 5px 26px 0 rgba(68, 88, 144, 0.14);
  transition: all 0.3s ease-in-out;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 30px;
  font-family: Poppins !important;
}

.formAdmin .boxMenu:hover {
  background: #ebebeb;
}

.formAdmin .boxMenu i {
  font-size: 40px;
}

.formAdmin .boxBlocImgAff {
  position: relative;
  height: 250px;
  width: 100%;
  font-family: "Poppins" !important;
  border-right: #e6e5e5 1px solid;
  border-left: #e6e5e5 1px solid;
  border-top: #e6e5e5 1px solid;
}

.formAdmin .boxBlocImgAff img {
  display: initial;
  margin: auto;
  object-fit: cover;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  object-position: center center;
  height: 100%;
  width: 100%;
}

.formAdmin .boxBlocContenu {
  background-color: #f8f8f8;
  padding: 10px;
  padding-top: 15px;
  text-align: left;
  min-height: 150px;
  margin-bottom: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-right: #e6e5e5 1px solid;
  border-left: #e6e5e5 1px solid;
  border-bottom: #e6e5e5 1px solid;
  font-family: Poppins !important;
}

.formAdmin .boxBlocAdmin {
  background-color: #d9d9d9;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  font-family: Poppins !important;
}

.formPage .boxBlocContenu:hover {
  background-color: var(--color1);
  z-index: 1000;
  color: white;
}

.formPage .boxBlocContenu a:hover {
  color: white;
}

/* =============================================
   7. CHAMPS DE FORMULAIRE
   ============================================= */

.form-control {
  background-color: #fafafa;
}

.trumbowyg-editor-box {
  background-color: #fafafa;
}

/* =============================================
   8. NAVIGATION VERTICALE / MENUS
   ============================================= */

.bntMenu {
  display: block;
  position: absolute;
  top: 0px;
  left: 1px;
  margin: 0px;
}

.menuVertical {
  font-size: 12px;
}

@media (max-width: 992px) {
  .menuVertical {
    font-size: 18px;
    color: black;
  }

  .mobile-nav {
    background-color: #ffffff;
  }
}

.menuBoard {
  padding: 10px 10px 2px 10px;
  width: 100%;
  border-bottom: 1px solid #dfdfdf;
  color: #000;
}

.menuBoard:hover {
  background-color: #b1b1b1;
  transition-duration: 0.3s;
  transition-property: background-color;
}

.menuBoard:hover i {
  color: #fff !important;
  transition-duration: 0.3s;
  transition-property: color;
}

/* =============================================
   9. BACK TO TOP / CONNECT
   ============================================= */

.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  right: 20px;
  bottom: 20px;
  background-color: var(--color1);
  color: #fff;
  transition: display 0.5s ease-in-out;
  z-index: 99999;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 8px;
  left: 8px;
}

.back-to-top:hover {
  color: #fff !important;
  transition: background 0.2s ease-in-out;
}

@media (max-width: 992px) {
  .back-to-top {
    right: 10px;
    bottom: 10px;
  }

  .connect {
    right: 10px;
    bottom: 60px;
  }
}

/* =============================================
   10. FOOTER / FOOTER NAVBAR
   ============================================= */

footer {
  border-top: 5px solid #000;
  width: 100%;
  min-height: 250px;
  padding: 10px 0 25px 0;
}

footer p {
  font-size: 14px;
  color: #ccc;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.footerNavbar {
  z-index: 1010;
  box-shadow:
    0 -1px 4px 0 rgb(26 26 26 / 8%),
    0 4px 8px 0 rgb(26 26 26 / 12%);
  position: fixed;
  bottom: 0;
  background-color: #fff;
  font-weight: 300;
  font-size: 10px;
  height: 50px;
  width: 100%;
  padding: 10px 10px 30px 10px;
}

/* =============================================
   11. TITRES DE SECTIONS ADMIN
   ============================================= */

.blocTitreAdmin {
  margin-bottom: 40px;
  margin-top: 0;
}

.blocTitreAdmin h2 {
  background-color: #494949;
  color: #fff;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px;
  text-transform: uppercase;
  text-align: left;
  clear: both;
}

.blocTitreAdmin2 {
  margin-bottom: 40px;
  margin-top: 0;
}

.blocTitreAdmin2 h2 {
  background-color: #af3939;
  color: #fff;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px;
  text-transform: uppercase;
  text-align: left;
  clear: both;
}

/* =============================================
   12. GALERIE PHOTOS
   ============================================= */

.galleryPhoto {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.galleryPhoto > div:last-child {
  margin-right: 0 !important;
}

.galleryPhoto > div > img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  padding: 1px !important;
  border: none !important;
}

.galleryPhoto > .jg-row {
  margin-bottom: 2px !important;
  white-space: nowrap !important;
}

.galleryPhoto > .jg-row:last-child {
  margin-bottom: 0 !important;
}

.galleryPhoto .boxBtnPhoto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galleryPhoto .jg-entry:hover .boxBtnPhoto {
  opacity: 1;
}

.galleryPhoto .boxInfoPhoto {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0px;
  background: rgba(0, 0, 0, 1);
  color: white;
  padding: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
  transform: translateY(104%);
  transition: transform 0.4s ease-in-out;
  z-index: 30;
}

.btnPhoto {
  position: absolute;
  z-index: 2;
  color: rgb(53, 53, 53);
  font-size: 16px;
  text-align: center;
  padding: 6px;
  width: 30px;
  border-radius: 5px;
  cursor: pointer;
}

/* =============================================
   13. GALERIE ALBUMS
   ============================================= */

.galleryAlbum {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.galleryAlbum .boxBlocImgAff {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.galleryAlbum .boxBlocImgAff img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   14. GALERIE UTILISATEURS / PHOTOGRAPHES
   ============================================= */

.usersGallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 1200px) {
  .usersGallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .usersGallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.userCard {
  position: relative;
  overflow: hidden;
}

.userCardImg {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.userCardImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.userCardOverlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
}

/* =============================================
   15. BANDEAU DE RECHERCHE PHOTOS (searchBanner)
   ============================================= */

#searchBanner {
  background: transparent;
  padding: 80px 28px;
  position: relative;
  overflow: visible;
  border-radius: 20px;
}

#searchBannerBg {
  position: absolute;
  inset: 0;
  background: url("../../img/page/bandeau_search.jpg") center/cover no-repeat;
  border-radius: 20px;
  z-index: 0;
}

#searchBanner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color1-f2) 0%,
    var(--color1-cc) 50%,
    var(--color1-aa) 100%
  );
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}

#searchBanner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 25% 50%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}

#searchMainRow,
#filtersRow {
  position: relative;
  z-index: 3;
}

#searchMainRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

#searchInputWrap {
  flex: 1;
  position: relative;
}

#searchInputWrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
}

#search_keyword {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 46px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  font-size: 15px;
  color: #1e293b;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  outline: none;
  transition: box-shadow 0.2s;
}

#search_keyword:focus {
  box-shadow: 0 3px 24px rgba(99, 102, 241, 0.5);
}

#search_keyword::placeholder {
  color: #94a3b8;
}

#btnSearch {
  height: 46px;
  padding: 0 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #6366f1, var(--color3));
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(99, 102, 241, 0.45);
  transition: all 0.2s;
  white-space: nowrap;
}

#btnSearch:hover {
  background: linear-gradient(135deg, var(--color3), #3730a3);
  transform: translateY(-1px);
}
#btnAddPhoto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  width: 100%;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(34, 197, 94, 0.45);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

#btnAddPhoto:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

#btnClear {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#btnClear:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
}

/* Ligne de filtres */
#filtersRow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 130px;
  max-width: 210px;
}

.filter-group label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 5px;
  margin-left: 2px;
}

.filter-group label i {
  opacity: 0.8;
  margin-right: 4px;
}

.filter-select {
  height: 38px;
  padding: 0 28px 0 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23475569' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s;
}

.filter-select:hover {
  background-color: #fff;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.filter-select:focus {
  border-color: #6366f1;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.filter-select.active-filter {
  background-color: #eef2ff !important;
  border-color: #6366f1 !important;
  color: #3730a3 !important;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.filter-select option {
  background: #fff;
  color: #1e293b;
}

/* Barre de résultats (admin-photo) */
#resultsBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid #e2e8f0;
  min-height: 38px;
}

#activeFiltersRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

#menuAff {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  z-index: 1001;
}

#menuAff .btn {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

#menuAff .btn:hover {
  background: #0f172a;
  border-color: #0f172a;
}

/* Badges filtres actifs */
.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: rgba(255, 255, 255, 0.73);
  border: 1.5px solid rgba(14, 13, 13, 0.35);
  border-radius: 20px;
  font-size: 13px;
  color: #6b6b6b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  animation: badgePop 0.15s ease;
}

.filter-badge .badge-label {
  color: rgba(36, 35, 35, 0.55);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.filter-badge .badge-value {
  color: #000000;
  font-weight: 600;
}

.filter-badge .badge-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s;
  margin-left: 2px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(49, 49, 49, 0.65);
}

.filter-badge .badge-remove:hover {
  color: #fff;
  background: rgba(228, 9, 9, 0.65);
}
.badge {
  padding: 5px;
  font-size: 12px;
}
@keyframes badgePop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#searchResultCount {
  font-size: 11px;
  color: #64748b;
  margin-left: auto;
  white-space: nowrap;
}

/* Bouton filtre panier (admin-cart) */
.cart-filter-btn {
  background: #e2e8f0;
  border: none;
  color: #475569;
  margin-right: 4px;
  border-radius: 20px;
}

.cart-filter-btn.active {
  background: var(--color1);
  color: #fff;
}

/* Mobile — bandeau recherche */
@media (max-width: 768px) {
  .filter-group {
    min-width: calc(50% - 4px);
    max-width: calc(50% - 4px);
  }

  #searchBanner {
    padding: 20px 16px 16px;
    border-radius: 12px;
  }

  #search_keyword {
    height: 52px;
    font-size: 16px;
  }

  #btnSearch {
    height: 52px;
    padding: 0 14px;
  }

  #btnSearch span {
    display: none;
  }

  #btnClear {
    height: 52px;
    width: 52px;
  }
}

/* =============================================
   16. ICÔNES / INDICATEURS
   ============================================= */

.iconBox {
  color: #df9d23;
}
.iconBox2 {
  color: #ff0000;
}

.boxTitle {
  font-size: 15px;
  font-weight: 600;
}

.notifMenu {
  background-color: red;
  border-radius: 25%;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  width: 12px;
  height: 20px;
  text-align: center;
  position: absolute;
  left: 5px;
  top: 0;
}

.NotifMenuFooter {
  background-color: red;
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
  width: 20px;
  text-align: center;
  position: absolute;
  right: 25%;
  top: 0;
}

@media (max-width: 992px) {
  .notifMenu {
    left: 0;
    top: 10px;
  }
}

/* =============================================
   17. PAGINATION
   ============================================= */

.pagination-container {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding-bottom: 10px;
}

.pagination {
  padding-top: 15px;
  flex-wrap: wrap;
  gap: 4px;
}

.page-item .page-link {
  background-color: #2d2f33;
  color: #fff;
  border-color: #444;
  border-radius: 6px !important;
  min-width: 36px;
  text-align: center;
  font-size: 13px;
  padding: 5px 10px;
  transition: background 0.15s;
}

.page-item .page-link:hover {
  background-color: #444;
  color: #fff;
  border-color: #666;
}

.page-item.active .page-link {
  background-color: var(--color3);
  border-color: var(--color3);
  color: #fff;
  font-weight: 700;
}

.page-item.disabled .page-link {
  background-color: #1a1b1e;
  color: #666;
  border-color: #333;
  cursor: default;
}

/* =============================================
   18. UPLOAD / DROPZONE
   ============================================= */

.boxDropZone {
  background-color: #fafafa;
  border-style: dashed solid;
  font-size: 20px;
  font-weight: 400;
  border-color: #999;
  min-width: 150px;
  min-height: 250px;
  padding: 0;
  text-align: center;
}

.imgUserProfilEdit {
  margin: auto;
  width: 111px;
  height: 111px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

/* =============================================
   19. MULTISELECT / CHECKBOXES
   ============================================= */

.multiselect-dropdown-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 15px;
}

.checkbox-container {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-item {
  padding: 4px 0;
}

.checkbox-item:hover {
  background-color: #f5f5f5;
}

/* =============================================
   20. SÉLECTION / BIBLIOTHÈQUE
   ============================================= */

.listSelect {
  background-color: #353535 !important;
  color: white !important;
}

/* =============================================
   21. ARIANE / BREADCRUMB
   ============================================= */

.fileAriane {
  padding: 15px 0;
  background-color: #404143;
  min-height: 40px;
  font-size: 12px;
  color: #fff;
}

.fileAriane ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fileAriane ol li + li {
  padding-left: 10px;
}

.fileAriane ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.4);
  content: "/";
}

/* ============================================================
   SIDEBAR STYLE EMISITE — V1.3.0
   ============================================================ */

.sidebarAdmin,
.sidebarAdmin .nav-menuVerticale {
  background: #2d2f33;
}
.sidebarAdmin {
  position: relative;
  z-index: 600;
  background: #2d2f33;
  transition:
    width 0.2s,
    flex-basis 0.2s,
    max-width 0.2s;
}
.contentAdmin {
  position: relative;
  transition: all 0.2s;
}
.sidebarAdmin .menuBoard {
  margin: 0;
  padding: 0;
  width: 100%;
  border-bottom: none;
  background: #2d2f33;
  color: #e0e0e0;
}
.sidebarAdmin .menuBoard a {
  color: inherit;
}
.sidebarAdmin .nav-menuVerticale {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Header profil */
.sidebarAdmin .sidebarHeader {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 30px 10px !important;
  border-bottom: 1px solid #222;
  background: #2d2f33;
}
.sidebarAdmin .sidebarProfileLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.sidebarAdmin .sidebarProfileImg {
  width: 40% !important;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  display: block;
  margin: 0 auto !important;
}
.sidebarAdmin .sidebarToggleBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
}
.sidebarAdmin .sidebarToggleBtn i {
  font-size: 18px;
  color: var(--color2);
}

/* Groupes */
.sidebarAdmin .menuGroupItem {
  border-top: 1px solid #3a3c3f;
  padding: 5px 0 !important;
}
.sidebarAdmin .menuGroupItem:first-of-type {
  border-top: none;
  padding-top: 12px !important;
}
.sidebarAdmin .menuGroupItem > a.menuGroupToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 38px;
  font-size: 14px;
  font-weight: 400 !important;
  background: #2d2f33;
  color: #e0e0e0 !important;
  text-decoration: none;
  background: transparent !important;
  box-shadow: none !important;
}
.sidebarAdmin .menuGroupItem > a.menuGroupToggle i:first-child {
  width: 20px;
  margin-right: 8px;
  font-size: 15px;
  color: #e0e0e0;
}
.sidebarAdmin .menuGroupItem.group-active > a.menuGroupToggle i:first-child {
  color: var(--color2);
}
.sidebarAdmin .menuGroupItem > a.menuGroupToggle:hover .labelGroupText,
.sidebarAdmin .menuGroupItem > a.menuGroupToggle:hover i:first-child {
  color: var(--color2) !important;
}

/* Chevron */
.sidebarAdmin .chevronGroup {
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.8;
  transition: transform 0.2s;
}
.sidebarAdmin .chevronGroup.open,
.sidebarAdmin
  .menuGroupItem
  > a.menuGroupToggle[aria-expanded="true"]
  .chevronGroup {
  transform: rotate(180deg);
}

/* Items enfants */
.sidebarAdmin .menuGroupChildren {
  background: #26282b;
  margin: 0;
  padding: 0;
}
.sidebarAdmin .menuGroupChildren .menuBoard {
  border-top: 1px solid #222;
}
.sidebarAdmin .menuGroupChildren .menuBoard:first-child {
  border-top: none;
}
.sidebarAdmin .menuGroupChildren .menuBoard a.menuModuleLink {
  display: flex;
  align-items: center;
  padding: 7px 20px;
  font-size: 12px;
  color: #ccc !important;
  text-decoration: none;
  background: transparent !important;
  box-shadow: none !important;
}
.sidebarAdmin .menuGroupChildren .menuBoard a.menuModuleLink i {
  width: 20px;
  margin-right: 8px;
  margin-left: 4px;
  font-size: 15px;
  color: #ccc;
}
.sidebarAdmin
  .menuGroupChildren
  .menuBoard
  a.menuModuleLink:hover
  .labelModuleText,
.sidebarAdmin .menuGroupChildren .menuBoard a.menuModuleLink:hover i {
  color: var(--color2) !important;
}
.sidebarAdmin .menuGroupChildren .menuBoard.active a.menuModuleLink {
  font-weight: 700;
  background: #1e2022 !important;
}
.sidebarAdmin .menuGroupChildren .menuBoard.active a.menuModuleLink i {
  color: var(--color2);
}

/* Logout */
.sidebarAdmin .menuLogoutLink {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  border-top: 1px solid #222;
  background: #2d2f33;
  color: #e0e0e0 !important;
  text-decoration: none;
  background: transparent !important;
  box-shadow: none !important;
}
.sidebarAdmin .menuLogoutLink i {
  width: 20px;
  margin-right: 8px;
  color: var(--color2);
}
.sidebarAdmin .menuLogoutLink:hover {
  color: var(--color2) !important;
}
.sidebarAdmin .menuLogoutLink:hover i {
  color: var(--color2) !important;
}

/* Compteur */
.sidebarAdmin .menu-count {
  margin-left: auto;
  background: #3a3d42;
  color: #aaa;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.sidebarAdmin .menuGroupChildren .menuBoard.active .menu-count {
  background: #ffffff;
  color: #000000;
}

/* Sidebar repliée */
.sidebarAdmin.sidebar-collapsed {
  width: 60px;
  flex: 0 0 60px;
  max-width: 60px;
}
.sidebarAdmin.sidebar-collapsed .sidebarHeader {
  padding: 20px 6px !important;
}
.sidebarAdmin.sidebar-collapsed .sidebarProfileImg {
  width: 100% !important;
  margin: 0 auto !important;
}
.sidebarAdmin.sidebar-collapsed .sidebarToggleBtn {
  position: static;
  margin-top: 8px;
  transform: none;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}
.sidebarAdmin.sidebar-collapsed .labelGroupText {
  display: none;
}
.sidebarAdmin.sidebar-collapsed .chevronGroup {
  display: none;
}
.sidebarAdmin.sidebar-collapsed .menuLogoutLink .labelModuleText {
  display: none;
}
.sidebarAdmin.sidebar-collapsed .menuLogoutLink {
  justify-content: center;
}
.sidebarAdmin.sidebar-collapsed .menuLogoutLink i {
  margin-right: 0;
}
.sidebarAdmin.sidebar-collapsed .menuGroupItem {
  position: relative;
}
.sidebarAdmin.sidebar-collapsed .menuGroupChildren {
  position: absolute;
  left: 60px;
  top: 0;
  display: none;
  min-width: 220px;
  background: #1e2022;
  padding: 6px 0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 250;
}
.sidebarAdmin.sidebar-collapsed .menuGroupItem:hover .menuGroupChildren {
  display: block;
}
.sidebarAdmin.sidebar-collapsed .menuGroupToggle {
  justify-content: center;
}
.sidebarAdmin.sidebar-collapsed .menuGroupToggle i:first-child {
  margin-right: 0;
}
.sidebarAdmin.sidebar-collapsed .menu-count {
  display: none;
}
/* Pont invisible pour éviter que le flyout disparaisse au survol */
.sidebarAdmin.sidebar-collapsed .menuGroupChildren::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  width: 10px;
  height: 100%;
}
.sidebarAdmin.sidebar-collapsed .menuGroupChildren {
  left: 58px; /* légèrement chevauchant */
}
.sidebarAdmin.sidebar-collapsed .menuGroupItem {
  z-index: 251;
}

/* adminSidebar responsive */
#adminSidebar.sidebar-collapsed {
  width: 60px !important;
}
@media (min-width: 992px) {
  #adminSidebar.sidebar-collapsed {
    flex: 0 0 60px !important;
    max-width: 60px !important;
  }
}
#adminSidebar.sidebar-collapsed + #adminContent.sidebar-collapsed-content {
  flex: 0 0 calc(100% - 60px) !important;
  max-width: calc(100% - 60px) !important;
}
@media (max-width: 991.98px) {
  .sidebarAdmin.pc {
    display: none !important;
  }
}

/* =============================================
   22. ANIMATIONS
   ============================================= */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =============================================
   23. PERMISSIONS
   ============================================= */

.permissionLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.permissionLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #374151;
}

.permissionDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.permissionDot0 {
  background: #d1d5db;
}

.permissionDot1 {
  background: #60a5fa;
}

.permissionDot2 {
  background: #34d399;
}

.permissionDot9 {
  background: #f59e0b;
}

.permissionCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.permissionCard {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.permissionHeader {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.permissionTitle {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.permissionDesc {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.permissionBody {
  padding: 20px;
}

.permissionGroup {
  margin-bottom: 18px;
}

.permissionGroup:last-child {
  margin-bottom: 0;
}

.permissionGroupTitle {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.permissionRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f9fb;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 14px;
}

.permissionRow:last-child {
  margin-bottom: 0;
}

.permBadge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.perm0 {
  background: #eee;
  color: #666;
}

.perm1 {
  background: #dbeafe;
  color: #1d4ed8;
}

.perm2 {
  background: #dcfce7;
  color: #15803d;
}

.perm9 {
  background: #fef3c7;
  color: #b45309;
}

/* =============================================
   24. VALIDATION
   ============================================= */

#validation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}
.validation-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #343a40;
  border-radius: 6px;
  padding: 8px 12px;
  position: relative;
  min-height: 115px;
}
.validation-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  background: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}
.validation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.validation-body {
  flex: 1;
  overflow: hidden;
  color: #fff;
}
.validation-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.validation-actions .btn-sm {
  font-size: 11px;
  padding: 3px 8px;
}

/* =============================================
   25. HEADER REFONTE — full width, bouton profil, drawer mobile
   ============================================= */

/* ---- Logo ---- */
.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo img {
  height: 50px;
  max-height: 50px;
  object-fit: contain;
  display: block;
  padding: 4px 0;
}
#header .logo img,
#header.header-scrolled .logo img {
  content: unset !important;
}

/* ---- Partie droite ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-right: 0;
  flex-shrink: 0;
}

/* ---- Bouton / lien profil PC ---- */
.headerProfileBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 30px;
  padding: 5px 14px 5px 10px;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.headerProfileBtn i {
  font-size: 20px;
  color: var(--color1);
  line-height: 1;
}
.headerProfileBtn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.25);
  color: #000;
  text-decoration: none;
}

/* ---- Burger mobile ---- */
.headerBurger {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 22px;
  color: var(--color1);
  cursor: pointer;
  line-height: 1;
}
.headerBurger:focus {
  outline: none;
}

/* ---- Badge notif header ---- */
.notifMenuHeader {
  background: var(--color1);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Sur PC : cacher burger */
@media (min-width: 992px) {
  .mobileDrawer,
  .mobileDrawerOverlay,
  .headerBurger {
    display: none !important;
  }
}

/* Sur mobile : cacher bouton profil PC */
@media (max-width: 991.98px) {
  .header-right.pc {
    display: none !important;
  }
}

/* =============================================
   26. DRAWER MOBILE
   ============================================= */

body.drawer-open {
  overflow: hidden;
}

.mobileDrawerOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.25s;
}
.mobileDrawerOverlay.is-open {
  display: block;
  opacity: 1;
}

.mobileDrawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #2d2f33;
  z-index: 1050;
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mobileDrawer.is-open {
  right: 0;
}

.mobileDrawerInner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.mobileDrawerInner::-webkit-scrollbar {
  width: 4px;
}
.mobileDrawerInner::-webkit-scrollbar-track {
  background: transparent;
}
.mobileDrawerInner::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.mobileDrawerClose {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #e0e0e0;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.mobileDrawerClose:hover {
  background: rgba(255, 255, 255, 0.18);
}
.mobileDrawerClose:focus {
  outline: none;
}

/* =============================================
   27. MENU MOBILE (nav-menuVerticale--mobile)
   Parité visuelle avec la sidebar PC (.sidebarAdmin)
   ============================================= */

@media (max-width: 991.98px) {
  #menuAccordionMobile {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #2d2f33;
  }

  #menuAccordionMobile .menuBoard {
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom: none;
    background: #2d2f33;
    color: #e0e0e0;
  }
  #menuAccordionMobile .menuBoard a {
    color: inherit;
  }

  #menuAccordionMobile .sidebarHeader--mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 10px 16px !important;
    border-bottom: 1px solid #222;
    background: #2d2f33;
  }
  #menuAccordionMobile .sidebarProfileLink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  #menuAccordionMobile .sidebarProfileImg {
    width: 80px !important;
    height: 80px !important;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    display: block;
    margin: 0 auto !important;
  }
  #menuAccordionMobile .sidebarProfileName {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 6px;
  }

  #menuAccordionMobile .menuGroupItem {
    border-top: 1px solid #3a3c3f;
    padding: 5px 0 !important;
  }
  #menuAccordionMobile .menuGroupItem:first-of-type {
    border-top: none;
    padding-top: 12px !important;
  }
  #menuAccordionMobile .menuGroupItem > a.menuGroupToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 400 !important;
    color: #e0e0e0 !important;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
  }
  #menuAccordionMobile .menuGroupItem > a.menuGroupToggle i:first-child {
    width: 22px;
    margin-right: 10px;
    font-size: 16px;
    color: #e0e0e0;
  }
  #menuAccordionMobile .labelGroupText {
    font-size: 15px;
    color: #e0e0e0;
  }
  #menuAccordionMobile
    .menuGroupItem.group-active
    > a.menuGroupToggle
    .labelGroupText,
  #menuAccordionMobile
    .menuGroupItem.group-active
    > a.menuGroupToggle
    i:first-child {
    color: var(--color2);
  }
  #menuAccordionMobile .menuGroupItem > a.menuGroupToggle:hover .labelGroupText,
  #menuAccordionMobile .menuGroupItem > a.menuGroupToggle:hover i:first-child {
    color: var(--color2) !important;
  }

  #menuAccordionMobile .chevronGroup {
    font-size: 11px;
    margin-left: 6px;
    opacity: 0.8;
    transition: transform 0.2s;
  }
  #menuAccordionMobile .chevronGroup.open {
    transform: rotate(180deg);
  }

  #menuAccordionMobile .menuGroupChildren {
    background: #26282b;
    margin: 0;
    padding: 0;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard {
    border-top: 1px solid #222;
    background: #26282b;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard:first-child {
    border-top: none;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard a.menuModuleLink {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    font-size: 14px;
    color: #ccc !important;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard a.menuModuleLink i {
    width: 22px;
    margin-right: 10px;
    margin-left: 4px;
    font-size: 16px;
    color: #ccc;
  }
  #menuAccordionMobile
    .menuGroupChildren
    .menuBoard
    a.menuModuleLink:hover
    .labelModuleText,
  #menuAccordionMobile .menuGroupChildren .menuBoard a.menuModuleLink:hover i {
    color: var(--color2) !important;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard.active {
    background: #1e2022 !important;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard.active a.menuModuleLink {
    font-weight: 700;
    background: #1e2022 !important;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard.active a.menuModuleLink i {
    color: var(--color2);
  }
  #menuAccordionMobile
    .menuGroupChildren
    .menuBoard.active
    a.menuModuleLink
    .labelModuleText {
    color: var(--color2);
  }

  #menuAccordionMobile .menuLogoutLink {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 14px;
    border-top: 1px solid #222;
    color: #e0e0e0 !important;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
  }
  #menuAccordionMobile .menuLogoutLink i {
    width: 22px;
    margin-right: 10px;
    color: var(--color2);
  }
  #menuAccordionMobile .menuLogoutLink:hover {
    color: var(--color2) !important;
  }
  #menuAccordionMobile .menuLogoutLink:hover i {
    color: var(--color2) !important;
  }

  #menuAccordionMobile .menu-count {
    margin-left: auto;
    background: #3a3d42;
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
  }
  #menuAccordionMobile .menuGroupChildren .menuBoard.active .menu-count {
    background: #fff;
    color: #000;
  }

  #menuAccordionMobile .menuBoard:hover {
    background-color: #3a3c3f !important;
    transition-duration: 0.2s;
    transition-property: background-color;
  }
  #menuAccordionMobile .menuBoard:hover i {
    color: var(--color2) !important;
  }
}
