@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

body {
  font-family: 'IBM Plex Sans', 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1d21;
  background: #f4f6f8;
  -webkit-font-smoothing: antialiased;


  /* // */
  height: 100%;             /* Hauteur totale du document */
  /* margin: 0;               Supprime les marges par défaut */
  overflow: hidden;         /* Désactive tout défilement */
  display: flex;            /* Utile pour centrer le contenu */
  flex-direction: column;   /* Aligne les éléments verticalement */
}

.dj-header {
  background: #0a3654;
  color: #fff;
}
.dj-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 8px 10px;
  max-width: 1680px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .dj-header-bar { padding: 8px 16px 10px; }
}
.dj-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.dj-header-logo {
  height: 36px;
  width: auto;
  
}
.dj-header-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dj-header-title em {
  font-style: normal;
  opacity: 0.6;
  margin: 0 4px;
}
.dj-header-indicators {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.8rem;
}
.dj-header-indicator {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dj-header-indicator-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dj-header-indicator-value {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.dj-header-indicator-value i {
  margin-right: 4px;
  font-size: 0.9em;
}
.dj-header-indicator-sub {
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  font-size: 0.85em;
}
.dj-header-indicator-alert {
  color: #fca5a5;
}
.dj-header-indicator-good {
  color: #86efac;
}
.dj-header-date {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin-left: 8px;
}
@media (max-width: 768px) {
  .dj-header-indicators { gap: 12px 16px; }
  .dj-header-indicator-value { font-size: 0.85rem; }
}
@media (max-width: 640px) {
  .dj-header-indicators { gap: 8px 12px; }
  .dj-header-indicator:nth-child(n+3) { display: none; }
  .dj-header-date { margin-left: 0; }
}

.dj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dj-nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dj-nav::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1024px) {
  .dj-nav { padding: 0 12px; }
}
.dj-nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
  list-style: none;
  margin-bottom: 0 !important;
}
@media (min-width: 768px) {
  .dj-nav-list { flex-wrap: nowrap; }
}
.dj-nav-list > li {
  display: flex;
  align-items: stretch;
}

.dj-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.dj-nav-link i {
  font-size: 1rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.dj-nav-link.active i,
.dj-nav-link:hover i {
  opacity: 1;
}
.dj-nav-link-urgent i {
  color: #b91c1c;
}
.dj-nav-link:hover {
  color: var(--primary-dark);
  background: var(--primary-pale);
}
.dj-nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.dj-nav-link.active {
  color: var(--primary-dark);
  background: #fff;
  font-weight: 600;
  border-bottom: 3px solid var(--primary-dark);
}
.dj-nav-link-urgent {
  color: #b91c1c;
  font-weight: 600;
}
.dj-nav-link-urgent:hover {
  color: #fff;
  background: #b91c1c;
}
.dj-nav-link-urgent:hover i {
  color: #fff;
}
.dj-nav-link-urgent:hover span {
  color: #fff;
}
.dj-nav-link-urgent.active {
  color: #b91c1c;
  border-bottom: 3px solid #b91c1c;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 6px 4px 24px;
}
@media (min-width: 768px) {
  .site-main { padding: 5px 16px 48px; }
}
@media (min-width: 1024px) {
  .site-main { padding: 10px 20px 20px; }
}
.site-main-valide {
  
}

.dj-dashboard {
  margin: 0 auto;
  padding: 0 2px;
}
.dj-hero-strip {
  position: relative;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.dj-hero-strip-bg {
  position: absolute;
  inset: 0;
  background: #0a3654 url('https://images.unsplash.com/photo-1763683826742-ef9a7729f58d?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
}
.dj-hero-strip-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,54,84,0.92) 0%, rgba(10,54,84,0.85) 50%, rgba(15,23,42,0.9) 100%);
}
.dj-hero-strip-content {
  position: relative;
  z-index: 1;
  padding: 5px 5px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dj-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
@media (min-width: 768px) {
  .dj-hero-title { font-size: 1.5rem; }
}
.dj-hero-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 24px;
}
.dj-hero-kpis {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .dj-hero-kpis { gap: 24px; }
}
@media (min-width: 768px) {
  .dj-hero-kpis {
    gap: 32px;
    overflow-x: visible;
    justify-content: space-around;
  }
}
@media (min-width: 1024px) {
  .dj-hero-kpis { gap: 40px; }
}
.dj-hero-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.dj-hero-kpi-val {
  font-size: 1.60rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media (min-width: 640px) {
  .dj-hero-kpi-val { font-size: 1.60rem; }
}
@media (min-width: 1024px) {
  .dj-hero-kpi-val { font-size: 1.60rem; }
}
.dj-hero-kpi-lbl {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.dj-hero-kpi-alert .dj-hero-kpi-val {
  color: #fca5a5;
}

.dj-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
}
@media (min-width: 640px) {
  .dj-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (min-width: 1024px) {
  .dj-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.dj-widget {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f8fafc;
  /* border: 1px solid #e2e8f0; */
  /* border-left: 4px solid #0a3654; */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.dj-widget:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dj-widget-1 { background: #eef4f8; border-left-color: #0c4a6e; }
.dj-widget-2 { background: #f0fdf4; border-left-color: #047857; }
.dj-widget-3 { background: #fef2f2; border-left-color: #b91c1c; }
.dj-widget-4 { background: #f1f5f9; border-left-color: #475569; }
.dj-widget-5 { background: #eff6ff; border-left-color: #1d4ed8; }
.dj-widget-6 { background: #fffbeb; border-left-color: #b45309; }

.dj-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
  flex-shrink: 0;
}
.dj-widget-1 .dj-widget-title { color: #0c4a6e; }
.dj-widget-2 .dj-widget-title { color: #047857; }
.dj-widget-3 .dj-widget-title { color: #b91c1c; }
.dj-widget-4 .dj-widget-title { color: #334155; }
.dj-widget-5 .dj-widget-title { color: #1d4ed8; }
.dj-widget-6 .dj-widget-title { color: #b45309; }

.dj-widget-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.dj-widget-stat-block {
  background: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.dj-widget-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dj-widget-stat-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0B3C5D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(10,54,84,0.1);
}
.dj-widget-stat-row:first-child .dj-widget-stat-subtitle {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.dj-widget-stat-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.dj-widget-stat-row-4 {
  grid-template-columns: repeat(2, 1fr);
}
.dj-widget-stat-mini {
  background: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.dj-widget-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 4px;
  font-weight: 500;
}
.dj-widget-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}
.dj-widget-stat-alert {
  color: #b91c1c;
}
.dj-widget-stat-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.dj-widget-stat-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.dj-widget-stat-alert .dj-widget-stat-link {
  color: #b91c1c;
}
.dj-widget-stat-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.dj-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  margin-top: auto;
  align-items: flex-end;
}
.dj-widget-btn {
  display: inline-block;
  padding: 2px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #0a3654;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}
.dj-widget-btn:hover {
  background: #0c4a6e;
}
.dj-widget-1 .dj-widget-btn { background: #0c4a6e; }
.dj-widget-1 .dj-widget-btn:hover { background: #0e5a82; }
.dj-widget-2 .dj-widget-btn { background: #047857; }
.dj-widget-2 .dj-widget-btn:hover { background: #059669; }
.dj-widget-3 .dj-widget-btn { background: #b91c1c; }
.dj-widget-3 .dj-widget-btn:hover { background: #dc2626; }
.dj-widget-3 .dj-widget-btn-alert { background: #b91c1c; }

.dj-widget-urgence {
  background: #fef2f2 !important;
  border-left-color: #b91c1c !important;
  border-left-width: 4px !important;
}
.dj-widget-urgence .dj-widget-title { color: #b91c1c !important; }
.dj-widget-urgence .dj-widget-stat-subtitle { color: #991b1b; }
.dj-widget-urgence .dj-widget-stat-value { color: #b91c1c; }
.dj-widget-urgence .dj-widget-stat-value a { color: #b91c1c; }
.dj-widget-urgence .dj-widget-stat-mini { border-color: #fecaca; background: #fff; }
.dj-widget-urgence .dj-widget-actions { border-top-color: #fecaca; }
.dj-widget-4 .dj-widget-btn { background: #475569; }
.dj-widget-4 .dj-widget-btn:hover { background: #64748b; }
.dj-widget-5 .dj-widget-btn { background: #1d4ed8; }
.dj-widget-5 .dj-widget-btn:hover { background: #2563eb; }
.dj-widget-6 .dj-widget-btn { background: #b45309; }
.dj-widget-6 .dj-widget-btn:hover { background: #d97706; }

.dj-btn {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0a3654;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
}
.dj-btn:hover {
  background: #0a3654;
  color: #fff;
  border-color: #0a3654;
}
.dj-btn-alert {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}
.dj-btn-alert:hover {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

.dj-alert-urgent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 12px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #fef2f2 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #b91c1c;
  border-radius: 6px;
  font-size: 0.9rem;
  overflow: hidden;
}
.dj-alert-urgent-badge {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: #b91c1c;
  padding: 2px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.dj-alert-urgent-scroll {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.dj-alert-urgent-track {
  display: flex;
  gap: 32px;
  /* animation: dj-alert-scroll 25s linear infinite; */
  width: max-content;
}
.dj-alert-urgent-track:hover {
  animation-play-state: paused;
}
.dj-alert-urgent-item {
  color: #7f1d1d;
  white-space: nowrap;
  flex-shrink: 0;
}
.dj-alert-urgent-item strong {
  color: #b91c1c;
}
.dj-alert-urgent-item a {
  color: #b91c1c;
  font-weight: 600;
  text-decoration: underline;
}
.dj-alert-urgent-item a:hover {
  color: #991b1b;
}
.dj-alert-urgent-sep {
  color: #b91c1c;
  opacity: 0.7;
}
@keyframes dj-alert-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.dj-hero-band.hero-summary-band {
  background: #fff;
  border: 1px solid #e5e9ed;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 10px;
  margin-top: 10px;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
}
.dj-hero-band .hero-summary-card {
  border: none;
  border-right: 1px solid #f1f5f9;
}
.dj-hero-band .hero-summary-card:last-child {
  border-right: none;
}
.dj-hero-band .hero-summary-card span {
  font-size: 0.95rem;
}
.dj-hero-band .hero-summary-card strong {
  font-size: 1.65rem;
}
.hero-summary-card-urgent {
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  border-left: 3px solid #b91c1c;
}
.hero-summary-card-urgent strong {
  color: #b91c1c;
}

.it-health-alert-band {
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0a3654;
  border-radius: 4px;
  font-size: 0.9rem;
}

.at-glance-topline {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.at-glance-topline .kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0a3654;
}
.at-glance-topline h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 0;
}

.it-health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.it-health-section-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.it-health-section-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.section-title-bar {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  padding-left: 12px;
  margin: 0 0 12px;
  border-left: 4px solid #0a3654;
}
.section-title-bar-teal { border-left-color: #0d9488; }
.it-health-section-card .at-glance-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 16px;
}
.it-health-section-card .stat span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}
.it-health-section-card .stat strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.it-health-section-card .stat .as-of {
  font-size: 0.7rem;
  color: #94a3b8;
  font-style: normal;
}
.it-health-section-card .action-buttons {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.btn-teal {
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: #0a3654;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-teal:hover {
  background: #1565a3;
  color: #fff;
}
.btn-teal.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.hero-summary-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.hero-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.hero-summary-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: inherit;
}
.hero-summary-band span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.hero-summary-band strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

.content-rich-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.content-rich-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
}
.content-rich-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.content-rich-col p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.region-chip {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.8rem;
}
.region-chip strong { display: block; color: #0f172a; margin-bottom: 2px; }
.region-chip span { color: #64748b; }
.rich-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.rich-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #475569;
}
.rich-list li:last-child { border-bottom: none; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; margin-top: 4px; }

@media (max-width: 992px) {
  .it-health-grid { grid-template-columns: repeat(2, 1fr); }
  .dj-hero-band.hero-summary-band { grid-template-columns: repeat(2, 1fr); }
  .content-rich-row { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header-context { display: none; }
  .it-health-grid { grid-template-columns: 1fr; }
  .dj-hero-band.hero-summary-band { grid-template-columns: 1fr; }
}

.site-footer-logo {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.kpi-card,
.atg-widget.kpi-card,
.atg-widget.section-card {
  display: block;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}
.kpi-card .kpi-value,
.atg-widget .kpi-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0a3654;
  line-height: 1.2;
}
.kpi-card .kpi-label,
.atg-widget .kpi-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.atg-widget {
  box-sizing: border-box;
}

.site-main:not(.site-main-valide) {
  background: transparent;
}

.dj-page-with-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.dj-sidebar-filters {
  flex: 0 0 auto;
  width: 240px;
  min-width: 220px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  position: sticky;
  top: 100px;
  box-shadow: 0 2px 12px rgba(10, 54, 84, 0.06);
}
.dj-sidebar-filters h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0a3654;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0a3654;
}
.dj-filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dj-filter-sidebar .dj-chip-group {
  flex-direction: column;
  gap: 10px;
}
.dj-filter-sidebar .dj-chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a3654;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.dj-filter-sidebar .dj-chips {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
}
.dj-filter-sidebar .dj-chip {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: all 0.2s ease;
}
.dj-filter-sidebar .dj-chip:hover {
  border-color: #0a3654;
  background: #f0f7fc;
  color: #0a3654;
}
.dj-filter-sidebar .dj-chip.active {
  background: linear-gradient(135deg, #0a3654 0%, #0c4a6e 100%);
  border-color: #0a3654;
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 54, 84, 0.25);
}
.dj-filter-selects .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a3654;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}
.dj-filter-selects .mb-3 { margin-bottom: 20px !important; }
.dj-filter-selects .choices {
  margin-bottom: 0;
}
.dj-filter-selects .choices__inner {
  min-height: 42px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 6px 12px;
  transition: all 0.2s ease;
}
.dj-filter-selects .choices__inner:hover,
.dj-filter-selects .choices.is-focused .choices__inner {
  border-color: #0a3654;
  box-shadow: 0 0 0 3px rgba(10, 54, 84, 0.08);
}
.dj-filter-selects .choices__input {
  font-size: 0.9rem;
  background: transparent;
}
.dj-filter-selects .choices__list--dropdown {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(10, 54, 84, 0.12);
}
.dj-filter-selects .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: #f0f7fc;
  color: #0a3654;
}
.dj-filter-selects .choices__item--choice {
  padding: 10px 14px;
  font-size: 0.9rem;
}
@media (max-width: 767px) {
  .dj-page-with-sidebar { flex-direction: column; }
  .dj-sidebar-filters { width: 100%; position: static; }
  .dj-filter-sidebar .dj-chips { flex-direction: row; flex-wrap: wrap; }
  .dj-filter-sidebar .dj-chip { width: auto; }
}

.dj-page-content {
  margin: 0 auto;
  padding: 0 2px;
}
.dj-page-with-sidebar .dj-page-main {
  flex: 1;
  min-width: 0;
}

.dj-page-content .page-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.dj-page-content .page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 4px;
}
.dj-page-content .page-header .lead {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.dj-page-content .section-card {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0a3654;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.dj-page-content .section-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dj-page-content .section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 10px;
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.dj-page-content .section-card-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.dj-page-content .section-card-body {
  padding: 0;
  flex: 1;
  min-height: 0;
}
.dj-page-content .atg-context-strip {
  background: #eef4f8;
  border-left: 4px solid #0c4a6e;
}

.dj-filter-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-start;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.atg-kpi-row,
.dj-page-content .atg-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.atg-kpi-row .kpi-card,
.dj-page-content .atg-kpi-row .kpi-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  text-align: center;
  transition: all 0.2s;
  min-width: 0;
}
.atg-kpi-row .kpi-card:hover,
.dj-page-content .atg-kpi-row .kpi-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.atg-kpi-row .kpi-value,
.dj-page-content .atg-kpi-row .kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a3654;
}
.atg-kpi-row .kpi-label,
.dj-page-content .atg-kpi-row .kpi-label {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 4px;
}
.dj-page-content .kpi-card.kpi-danger .kpi-value { color: #b91c1c; }
.dj-page-content .kpi-card a { color: inherit; text-decoration: none; }

.dj-filter-bar { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; padding: 16px 20px; }
.dj-chip-group { display: flex; flex-direction: column; gap: 10px; }
.dj-chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a3654;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.dj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dj-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  /* white-space: nowrap; */
}
.dj-chip:hover {
  border-color: #0a3654;
  color: #0a3654;
  background: #f0f7fc;
  box-shadow: 0 2px 6px rgba(10, 54, 84, 0.08);
}
.dj-chip.active {
  background: linear-gradient(135deg, #0a3654 0%, #0c4a6e 100%);
  border-color: #0a3654;
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 54, 84, 0.25);
}
.dj-filter-bar .form-label { font-size: 0.75rem; font-weight: 600; color: #475569; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.dj-filter-bar .form-select { font-size: 0.875rem; min-width: 160px; border-radius: 8px; border: 1px solid #cbd5e1; padding: 8px 12px; }
.dj-filter-bar .btn-primary { background: #0a3654; border-color: #0a3654; }
.dj-filter-bar .btn-primary:hover { background: #0c4a6e; border-color: #0c4a6e; }
.dj-filter-bar .btn { font-size: 0.875rem; font-weight: 600; padding: 8px 18px; border-radius: 8px; }

#calendar .fc {
  font-family: inherit;
}
#calendar .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a3654;
}
#calendar .fc-button {
  background: #0a3654 !important;
  border-color: #0a3654 !important;
}
#calendar .fc-button:hover {
  background: #0c4a6e !important;
  border-color: #0c4a6e !important;
}
#calendar .fc-button-active {
  background: #1565a3 !important;
}
#calendar .fc-daygrid-day-number {
  color: #64748b;
  font-size: 0.85rem;
}
#calendar .fc-event {
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8rem;
}

.dj-page-content .table,
.site-main .table {
  font-size: 0.9rem;
  width: 100%;
  table-layout: fixed;
}
.dj-page-content .table thead th,
.site-main .table thead th {
  font-weight: 600;
  color: #0a3654;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.dj-page-content .table th:not(:first-child):not(.text-center),
.dj-page-content .table td:not(:first-child):not(.text-center),
.site-main .table th:not(:first-child):not(.text-center),
.site-main .table td:not(:first-child):not(.text-center) {
  text-align: right;
  white-space: nowrap;
}
.dj-page-content .table th.text-center,
.dj-page-content .table td.text-center,
.site-main .table th.text-center,
.site-main .table td.text-center {
  text-align: center;
  white-space: nowrap;
}
.dj-page-content .table th:first-child,
.dj-page-content .table td:first-child,
.site-main .table th:first-child,
.site-main .table td:first-child {
  text-align: left;
}

.dj-page-content .table.table-rapportage-recent,
.site-main .table.table-rapportage-recent {
  table-layout: auto;
}
.dj-page-content .table.table-rapportage-recent th:not(:last-child),
.dj-page-content .table.table-rapportage-recent td:not(:last-child),
.site-main .table.table-rapportage-recent th:not(:last-child),
.site-main .table.table-rapportage-recent td:not(:last-child) {
  text-align: left !important;
  white-space: normal !important;
}
.dj-page-content .table.table-rapportage-recent thead th:nth-child(4),
.dj-page-content .table.table-rapportage-recent thead th:nth-child(5),
.dj-page-content .table.table-rapportage-recent td:nth-child(4),
.dj-page-content .table.table-rapportage-recent td:nth-child(5),
.site-main .table.table-rapportage-recent thead th:nth-child(4),
.site-main .table.table-rapportage-recent thead th:nth-child(5),
.site-main .table.table-rapportage-recent td:nth-child(4),
.site-main .table.table-rapportage-recent td:nth-child(5) {
  text-align: left !important;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.dj-page-content .table.table-rapportage-recent th:last-child,
.dj-page-content .table.table-rapportage-recent td:last-child,
.site-main .table.table-rapportage-recent th:last-child,
.site-main .table.table-rapportage-recent td:last-child {
  text-align: right !important;
  white-space: nowrap !important;
}

.dj-page-content .table.table-synthese-cercle,
.site-main .table.table-synthese-cercle {
  table-layout: auto;
}
.dj-page-content .table.table-synthese-cercle th:nth-child(1),
.dj-page-content .table.table-synthese-cercle td:nth-child(1),
.dj-page-content .table.table-synthese-cercle th:nth-child(4),
.dj-page-content .table.table-synthese-cercle td:nth-child(4),
.dj-page-content .table.table-synthese-cercle th:nth-child(5),
.dj-page-content .table.table-synthese-cercle td:nth-child(5),
.site-main .table.table-synthese-cercle th:nth-child(1),
.site-main .table.table-synthese-cercle td:nth-child(1),
.site-main .table.table-synthese-cercle th:nth-child(4),
.site-main .table.table-synthese-cercle td:nth-child(4),
.site-main .table.table-synthese-cercle th:nth-child(5),
.site-main .table.table-synthese-cercle td:nth-child(5) {
  text-align: left !important;
  white-space: normal !important;
}
.dj-page-content .table.table-synthese-cercle thead th:nth-child(5),
.dj-page-content .table.table-synthese-cercle th:nth-child(5),
.dj-page-content .table.table-synthese-cercle td:nth-child(5),
.site-main .table.table-synthese-cercle thead th:nth-child(5),
.site-main .table.table-synthese-cercle th:nth-child(5),
.site-main .table.table-synthese-cercle td:nth-child(5) {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
}
.dj-page-content .table.table-synthese-cercle th:nth-child(2),
.dj-page-content .table.table-synthese-cercle td:nth-child(2),
.dj-page-content .table.table-synthese-cercle th:nth-child(3),
.dj-page-content .table.table-synthese-cercle td:nth-child(3),
.site-main .table.table-synthese-cercle th:nth-child(2),
.site-main .table.table-synthese-cercle td:nth-child(2),
.site-main .table.table-synthese-cercle th:nth-child(3),
.site-main .table.table-synthese-cercle td:nth-child(3) {
  text-align: right !important;
  white-space: nowrap !important;
}

/* Tableau Détail par secteur (financement) — Secteur à gauche, chiffres à droite, Niveau centré */
.dj-page-content .table.table-detail-financement th:first-child,
.dj-page-content .table.table-detail-financement td:first-child,
.site-main .table.table-detail-financement th:first-child,
.site-main .table.table-detail-financement td:first-child {
  text-align: left !important;
}
.dj-page-content .table.table-detail-financement th:nth-child(2),
.dj-page-content .table.table-detail-financement td:nth-child(2),
.dj-page-content .table.table-detail-financement th:nth-child(3),
.dj-page-content .table.table-detail-financement td:nth-child(3),
.dj-page-content .table.table-detail-financement th:nth-child(4),
.dj-page-content .table.table-detail-financement td:nth-child(4),
.dj-page-content .table.table-detail-financement th:nth-child(5),
.dj-page-content .table.table-detail-financement td:nth-child(5),
.site-main .table.table-detail-financement th:nth-child(2),
.site-main .table.table-detail-financement td:nth-child(2),
.site-main .table.table-detail-financement th:nth-child(3),
.site-main .table.table-detail-financement td:nth-child(3),
.site-main .table.table-detail-financement th:nth-child(4),
.site-main .table.table-detail-financement td:nth-child(4),
.site-main .table.table-detail-financement th:nth-child(5),
.site-main .table.table-detail-financement td:nth-child(5) {
  text-align: right !important;
  white-space: nowrap !important;
}
.dj-page-content .table.table-detail-financement th:nth-child(6),
.dj-page-content .table.table-detail-financement td:nth-child(6),
.site-main .table.table-detail-financement th:nth-child(6),
.site-main .table.table-detail-financement td:nth-child(6) {
  text-align: center !important;
  white-space: nowrap !important;
}

/* Détails besoins par activité — colonnes sans chevauchement */
.dj-page-content .table.table-details-besoins,
.site-main .table.table-details-besoins {
  table-layout: fixed;
}
.dj-page-content .table.table-details-besoins th:nth-child(1),
.dj-page-content .table.table-details-besoins td:nth-child(1),
.dj-page-content .table.table-details-besoins th:nth-child(2),
.dj-page-content .table.table-details-besoins td:nth-child(2),
.site-main .table.table-details-besoins th:nth-child(1),
.site-main .table.table-details-besoins td:nth-child(1),
.site-main .table.table-details-besoins th:nth-child(2),
.site-main .table.table-details-besoins td:nth-child(2) {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
  text-align: left !important;
}
.dj-page-content .table.table-details-besoins th:nth-child(3),
.dj-page-content .table.table-details-besoins td:nth-child(3),
.dj-page-content .table.table-details-besoins th:nth-child(4),
.dj-page-content .table.table-details-besoins td:nth-child(4),
.dj-page-content .table.table-details-besoins th:nth-child(5),
.dj-page-content .table.table-details-besoins td:nth-child(5),
.dj-page-content .table.table-details-besoins th:nth-child(6),
.dj-page-content .table.table-details-besoins td:nth-child(6),
.site-main .table.table-details-besoins th:nth-child(3),
.site-main .table.table-details-besoins td:nth-child(3),
.site-main .table.table-details-besoins th:nth-child(4),
.site-main .table.table-details-besoins td:nth-child(4),
.site-main .table.table-details-besoins th:nth-child(5),
.site-main .table.table-details-besoins td:nth-child(5),
.site-main .table.table-details-besoins th:nth-child(6),
.site-main .table.table-details-besoins td:nth-child(6) {
  text-align: right !important;
  white-space: nowrap !important;
}

/* Grille partenaires */
.dj-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dj-partner-card {
  background: #fff;
  border: 1px solid rgba(10, 54, 84, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dj-partner-card:hover {
  border-color: rgba(10, 54, 84, 0.25);
  box-shadow: 0 4px 12px rgba(10, 54, 84, 0.08);
}
.dj-partner-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(10, 54, 84, 0.08);
}
.dj-partner-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(10, 54, 84, 0.12);
  border-radius: 8px;
  overflow: hidden;
}
.dj-partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.dj-partner-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #0a3654;
  background: linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
}
.dj-partner-card-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dj-partner-name {
  font-size: 1rem;
  color: #0a3654;
}
.dj-partner-type {
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
}
.dj-partner-card-body {
  padding: 12px;
}
.dj-partner-card-body p {
  color: #495057;
}
.dj-partner-card-body .bi {
  margin-right: 4px;
  opacity: 0.7;
}

.dj-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.dj-site-card {
  background: #fff;
  border: 1px solid rgba(10, 54, 84, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dj-site-card:hover {
  border-color: rgba(10, 54, 84, 0.25);
  box-shadow: 0 4px 12px rgba(10, 54, 84, 0.08);
}
.dj-site-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(10, 54, 84, 0.08);
}
.dj-site-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a3654;
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
}
.dj-site-card-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dj-site-name {
  font-size: 1rem;
  font-weight: 600;
  color: #0a3654;
  text-decoration: none;
}
.dj-site-name:hover {
  text-decoration: underline;
}
.dj-site-cercle {
  font-size: 0.65rem;
  font-weight: 500;
  align-self: flex-start;
}
.dj-site-card-body {
  padding: 12px;
}
.dj-site-card-body .bi {
  margin-right: 4px;
  opacity: 0.7;
}

.dj-rapportage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dj-rapportage-card {
  background: #fff;
  border: 1px solid rgba(10, 54, 84, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dj-rapportage-card:hover {
  border-color: rgba(10, 54, 84, 0.25);
  box-shadow: 0 4px 12px rgba(10, 54, 84, 0.08);
}
.dj-rapportage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(10, 54, 84, 0.08);
}
.dj-rapportage-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a3654;
  background: rgba(10, 54, 84, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
}
.dj-rapportage-acteur {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a3654;
}
.dj-rapportage-card-body {
  padding: 12px;
}
.dj-rapportage-card-body .bi {
  margin-right: 4px;
  opacity: 0.7;
}
.dj-rapportage-valeur {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a3654;
}

.dj-page-with-sidebar .dj-page-main {
  padding: 4px 0;
}
.dj-page-content .page-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.dj-page-content .page-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
}
.dj-page-content .page-header .lead {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 6px;
}

.dj-page-content .section-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 20px;
  margin-bottom: 20px;
}
.dj-page-content .section-card:hover {
  box-shadow: 0 4px 16px rgba(10, 54, 84, 0.08);
}
.dj-page-content .section-card-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.dj-page-content .section-card-body {
  padding: 0;
}

.atg-kpi-row .kpi-card,
.dj-page-content .atg-kpi-row .kpi-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.atg-kpi-row .kpi-card:hover,
.dj-page-content .atg-kpi-row .kpi-card:hover {
  box-shadow: 0 4px 12px rgba(10, 54, 84, 0.1);
  transform: translateY(-1px);
}
.atg-kpi-row .kpi-value,
.dj-page-content .atg-kpi-row .kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dj-page-content .table {
  font-size: 0.9rem;
}
.dj-page-content .table thead th {
  font-weight: 700;
  color: #0a3654;
  padding: 14px 16px;
  border-bottom: 2px solid #0a3654;
}
.dj-page-content .table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}
.dj-page-content .table tbody tr:hover {
  background: #f8fafc;
}
.dj-page-content .table.table-striped tbody tr:nth-of-type(odd) {
  background: #fafbfc;
}
.dj-page-content .table.table-striped tbody tr:nth-of-type(odd):hover {
  background: #f0f7fc;
}

.dj-page-content .section-card-body .border-top,
.dj-page-content .p-3.border-top {
  background: #f8fafc;
  padding: 14px 20px !important;
  font-size: 0.8rem;
  color: #64748b;
}

.dj-page-content .list-group-item {
  padding: 16px 20px;
  border-color: #e2e8f0;
  transition: background 0.2s;
}
.dj-page-content .list-group-item:hover {
  background: #f8fafc;
}
.dj-page-content .list-group-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dj-page-content .section-card .row.align-items-center .col-lg-5 p {
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #0a3654;
  line-height: 1.6;
}

.dj-page-content .alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.dj-page-content .alert-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.dj-page-content .alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.dj-page-content .section-card .table thead {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.site-main .page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.site-main .page-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
}
.site-main .page-header .lead {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 6px;
}

.home-section {
  margin-bottom: 32px;
}
.home-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.home-arrivees {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.home-arrivees .stat {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.home-arrivees .stat:hover {
  box-shadow: 0 4px 12px rgba(10, 54, 84, 0.08);
}
.home-arrivees .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0a3654;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.home-arrivees .stat-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.glance-context {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.dj-page-content .border.rounded {
  border-radius: 12px !important;
  border-color: #e2e8f0 !important;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dj-page-content .border.rounded:hover {
  box-shadow: 0 4px 12px rgba(10, 54, 84, 0.08);
  border-color: #cbd5e1 !important;
}

/* Page d'accueil — tout visible sans scroll, zoom +10% */
.page-home .site-main {
  padding: 4px 8px 8px;
  zoom: 1.1;
}
.page-home .dj-dashboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-home .dj-alert-urgent {
  padding: 2px 8px;
  margin-bottom: 2px;
  font-size: 0.8rem;
}
.page-home .dj-hero-strip {
  margin-bottom: 4px;
}
.page-home .dj-hero-strip-content {
  padding: 4px 6px;
}
.page-home .dj-hero-title {
  font-size: 1.1rem;
  margin: 0 0 2px;
}
.page-home .dj-hero-kpis {
  gap: 12px;
}
.page-home .dj-hero-kpi-val {
  font-size: 1.2rem;
}
.page-home .dj-hero-kpi-lbl {
  font-size: 0.7rem;
}
.page-home .dj-cards-grid {
  gap: 4px;
  min-height: 0;
}
.page-home .dj-widget-5 .dj-widget-stat-row:first-of-type {
  grid-template-columns: repeat(3, 1fr);
}
.page-home .dj-widget {
  padding: 6px 10px;
  min-height: 0;
}
.page-home .dj-widget-title {
  font-size: 0.85rem;
  margin: 0 0 4px;
}
.page-home .dj-widget-stat-label {
  font-size: 0.7rem;
}
.page-home .dj-widget-stat-value {
  font-size: 1rem;
}
.page-home .dj-widget-stat-row {
  gap: 4px;
}
.page-home .dj-widget-stat-mini {
  padding: 3px 8px;
}
.page-home .dj-widget-stat-subtitle {
  padding-top: 4px;
  margin: 2px 0 0;
  font-size: 0.65rem;
}
.page-home .dj-widget-actions {
  padding-top: 6px;
  gap: 4px;
}
.page-home .dj-widget-btn {
  padding: 2px 10px;
  font-size: 0.75rem;
}
.page-home .dj-section-chart {
  margin-top: 0 !important;
  min-height: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
}
.page-home .dj-chart-col {
  flex: 0 0 66.67%;
  min-width: 0;
}
.page-home .dj-section-chart .dj-widget-enreg-stats {
  flex: 0 0 calc(33.33% - 8px);
  min-width: 0;
  background: #eff6ff;
  border-left: 4px solid #1d4ed8;
}
.page-home .dj-widget-stat-row-points {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.page-home .dj-widget-stat-point .dj-widget-stat-value {
  font-size: 0.95rem;
}
.page-home .dj-widget-stat-point .dj-widget-stat-unit {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}
@media (max-width: 768px) {
  .page-home .dj-section-chart { flex-direction: column; }
  .page-home .dj-chart-col,
  .page-home .dj-section-chart .dj-widget-enreg-stats { flex: 1 1 auto; }
}
.page-home .dj-section-chart .dj-widget {
  padding: 4px 10px;
}
.page-home .dj-section-chart .dj-widget-title {
  font-size: 0.85rem;
  margin: 0 0 2px;
}
.page-home .dj-home-chart,
.page-home .dj-widget-chart-wrap {
  height: 220px !important;
  min-height: 220px !important;
}
.page-home .text-center.pt-2 {
  padding-top: 4px !important;
}
.page-home .text-center.pt-2 .badge {
  padding: 4px 8px !important;
  font-size: 0.8rem;
}
