/* Styles spécifiques au backoffice, en complément de Bootstrap 5 (chargé
   via CDN uniquement sur les vues /admin, voir views/layouts/admin.ejs). */

body {
  background-color: #f4f6f9;
}

.admin-shell {
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background-color: #0b3d91;
  color: #fff;
}

.admin-sidebar__brand {
  color: #fff;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.admin-sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.admin-sidebar .nav-link:hover {
  color: #fff;
}

.admin-content {
  min-width: 0;
}

.admin-auth-wrapper {
  min-height: 100vh;
  background-color: #0b3d91;
}

.admin-auth-box {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.badge-system {
  background-color: #6c757d;
}

.permission-group {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.permission-group__title {
  text-transform: capitalize;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Miniatures utilisées dans les listes des modules de contenu (Services,
   Réalisations, Témoignages, Slides) : mêmes classes de repli que sur le
   site public (voir public/css/style.css et views/partials/), en plus
   petit pour un affichage en tableau. */
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.thumb-fallback {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edf7;
  color: #0b3d91;
  font-size: 1.4rem;
}

.avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-thumb-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b3d91;
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
}

.slide-swatch {
  width: 64px;
  height: 40px;
  border-radius: 4px;
  background-color: #0b3d91;
  background-size: cover;
  background-position: center;
}
