/* ========================================================
   ASSOCIATION INITIATIVES — Design System v3.0
   Palette : Bleu navy #003495 — flat & sobre
   ======================================================== */

:root {
  /* ── Palette primaire (dégradé de #003495) ── */
  --blue-950: #000d2a;
  --blue-900: #001a55;
  --blue-800: #002270;
  --blue-700: #003495;   /* couleur de référence */
  --blue-600: #0042ba;
  --blue-500: #1a5dd0;
  --blue-400: #4d85e8;
  --blue-300: #8ab0f0;
  --blue-200: #c0d5fa;
  --blue-100: #dce8fc;
  --blue-50:  #edf3fd;

  /* ── Accent teal (sobre, remplace orange agressif) ── */
  --teal-800: #0f4a58;
  --teal-700: #1a6070;
  --teal-600: #1e7a8a;
  --teal-500: #2a8a9a;
  --teal-400: #4aa8b8;
  --teal-100: #d4eef3;

  /* ── Accent ambre (sobre, remplace or vif) ── */
  --amber-800: #5a4015;
  --amber-700: #725218;
  --amber-600: #8a6420;
  --amber-500: #a57c2a;
  --amber-400: #c09840;
  --amber-100: #ede5c8;

  /* ── Accent ardoise (remplace violet saturé) ── */
  --slate-800: #2a2a50;
  --slate-700: #383868;
  --slate-600: #484880;
  --slate-500: #5a5a98;
  --slate-400: #7878b8;
  --slate-100: #ddddf0;

  /* ── Vert sauge (success) ── */
  --sage-700: #1e4a30;
  --sage-600: #286040;
  --sage-500: #327850;
  --sage-100: #cce5d8;

  /* ── Rouge atténué (danger) ── */
  --rose-700: #722020;
  --rose-600: #8a2828;
  --rose-100: #f0d5d5;

  /* ── Neutres ── */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* ── Dégradés sobres (tous à base de #003495) ── */
  --gradient-sidebar:      linear-gradient(180deg, #000d2a 0%, #001a55 45%, #003495 100%);
  --gradient-header:       linear-gradient(90deg,  #001a55 0%, #003495 60%, #1a5dd0 100%);
  --gradient-card-blue:    linear-gradient(135deg, #001a55 0%, #003495 100%);
  --gradient-card-mid:     linear-gradient(135deg, #003495 0%, #1a5dd0 100%);
  --gradient-card-teal:    linear-gradient(135deg, #1a6070 0%, #2a8a9a 100%);
  --gradient-card-amber:   linear-gradient(135deg, #5a4015 0%, #a57c2a 100%);
  --gradient-card-slate:   linear-gradient(135deg, #2a2a50 0%, #5a5a98 100%);
  --gradient-card-sage:    linear-gradient(135deg, #1e4a30 0%, #327850 100%);
  --gradient-hero:         linear-gradient(135deg, #000d2a 0%, #001a55 45%, #003495 100%);

  /* ── Ombres douces ── */
  --shadow-sm: 0 1px 3px rgba(0,34,112,0.06), 0 1px 2px rgba(0,34,112,0.04);
  --shadow-md: 0 4px 16px rgba(0,34,112,0.09), 0 2px 6px rgba(0,34,112,0.05);
  --shadow-lg: 0 8px 32px rgba(0,34,112,0.13), 0 4px 12px rgba(0,34,112,0.06);
  --shadow-xl: 0 16px 48px rgba(0,34,112,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f4fa;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blue-50); }
::-webkit-scrollbar-thumb { background: var(--blue-400); border-radius: 3px; }

/* ========================================================
   LAYOUT WRAPPER
   ======================================================== */
#layout-wrapper { display: flex; min-height: 100vh; }

/* ========================================================
   SIDEBAR
   ======================================================== */
.sidebar {
  width: 270px;
  height: 100vh;
  background: var(--gradient-sidebar);
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 4px 0 20px rgba(0,13,42,0.35);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

.sidebar.collapsed { width: 70px; }

/* Sidebar brand */
.sidebar-brand {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-brand .brand-logo {
  width: 44px; height: 44px;
  background: var(--gradient-card-mid);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px; color: white;
  box-shadow: 0 4px 12px rgba(0,52,149,0.4);
}
.sidebar-brand .brand-text { overflow: hidden; }
.sidebar-brand .brand-name {
  font-size: 15px; font-weight: 700;
  color: white; line-height: 1.2;
  white-space: nowrap;
}
.sidebar-brand .brand-sub {
  font-size: 11px; color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* Sidebar navigation */
.sidebar-nav { padding: 16px 0; flex: 1; }

.nav-section-title {
  padding: 12px 20px 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.30);
}

.nav-item-wrapper { padding: 2px 12px; }

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.68);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.nav-link i { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-link:hover {
  background: rgba(255,255,255,0.10);
  color: white;
  transform: translateX(3px);
}
.nav-link.active {
  background: rgba(255,255,255,0.16);
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--blue-300);
  border-radius: 0 2px 2px 0;
}

/* Submenu */
.nav-submenu { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.nav-submenu.open { max-height: 900px; }
.nav-submenu .nav-item-wrapper { padding-left: 24px; }
.nav-submenu .nav-link { font-size: 13px; padding: 8px 14px; }

/* Arrow icon */
.nav-arrow {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 14px !important;
  width: auto !important;
}
.nav-link.has-sub.open .nav-arrow { transform: rotate(90deg); }

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .nav-link { color: rgba(255,255,255,0.5); }
.sidebar-footer .nav-link:hover { color: var(--blue-300); }

/* ========================================================
   MAIN CONTENT AREA
   ======================================================== */
.main-wrapper {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s;
}

/* ── Top Header ── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--blue-100);
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-toggle {
  width: 38px; height: 38px;
  border: none; background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--blue-700);
  font-size: 18px;
  transition: var(--transition);
}
.topbar-toggle:hover { background: var(--blue-100); }

/* Marquee banner */
.topbar-marquee {
  background: var(--gradient-card-blue);
  padding: 7px 20px;
  border-radius: var(--radius-xl);
  color: white;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px;
  max-width: 500px; overflow: hidden;
}
.topbar-marquee marquee { display: block; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-logo img { height: 52px; border-radius: var(--radius-sm); }

/* ── Page Content ── */
.page-content { padding: 28px 24px; flex: 1; }

/* Breadcrumb */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--blue-100);
}
.page-title {
  font-size: 22px; font-weight: 700;
  color: var(--blue-800);
  display: flex; align-items: center; gap: 10px;
}
.page-title i { color: var(--teal-500); font-size: 24px; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-500);
}
.breadcrumb a { color: var(--blue-600); }
.breadcrumb a:hover { color: var(--teal-500); }
.breadcrumb .sep { color: var(--gray-400); }

/* ========================================================
   CARDS
   ======================================================== */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: none;
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700;
  color: var(--blue-800);
}
.card-header i { color: var(--teal-500); margin-right: 8px; }
.card-body { padding: 24px; }

/* Stats Cards */
.stat-card {
  border-radius: var(--radius-md);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-card.blue   { background: var(--gradient-card-blue); }
.stat-card.orange { background: var(--gradient-card-teal); }
.stat-card.gold   { background: var(--gradient-card-amber); }
.stat-card.violet { background: var(--gradient-card-slate); }
.stat-card.green  { background: var(--gradient-card-sage); }

.stat-card .stat-icon {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 52px; opacity: 0.18;
}
.stat-card .stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.80; }
.stat-card .stat-value { font-size: 36px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; }
.stat-card .stat-desc { font-size: 13px; opacity: 0.75; }
.stat-card .stat-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 6px 14px;
  background: rgba(255,255,255,0.18);
  border-radius: 20px; font-size: 13px; color: white;
  transition: var(--transition);
  text-decoration: none;
}
.stat-card .stat-link:hover { background: rgba(255,255,255,0.30); }

/* Hero card */
.hero-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 28px;
}
.hero-card::after {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-card::before {
  content: '';
  position: absolute; right: 60px; bottom: -60px;
  width: 160px; height: 160px;
  background: rgba(77,133,232,0.12);
  border-radius: 50%;
}
.hero-card .hero-quote {
  font-size: 16px; font-style: italic;
  color: rgba(255,255,255,0.80);
  border-left: 4px solid var(--blue-300);
  padding-left: 16px;
  margin-bottom: 20px;
}
.hero-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.hero-card p { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.hero-card .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Info cards / widget cards */
.widget-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--blue-600);
  transition: var(--transition);
}
.widget-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.widget-card.orange { border-left-color: var(--teal-500); }
.widget-card.gold   { border-left-color: var(--amber-500); }
.widget-card.violet { border-left-color: var(--slate-500); }
.widget-card.green  { border-left-color: var(--sage-500); }
.widget-card h4 { font-size: 16px; font-weight: 700; color: var(--blue-800); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.widget-card h4 i { color: var(--teal-500); }
.widget-card p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }

.btn-primary {
  background: var(--gradient-card-blue);
  color: white;
  box-shadow: 0 3px 10px rgba(0,52,149,0.28);
}
.btn-primary:hover { box-shadow: 0 5px 16px rgba(0,52,149,0.40); transform: translateY(-2px); color: white; }

.btn-orange {
  background: var(--gradient-card-teal);
  color: white;
  box-shadow: 0 3px 10px rgba(26,96,112,0.28);
}
.btn-orange:hover { box-shadow: 0 5px 16px rgba(26,96,112,0.40); transform: translateY(-2px); color: white; }

.btn-gold {
  background: var(--gradient-card-amber);
  color: white;
  box-shadow: 0 3px 10px rgba(90,64,21,0.28);
}
.btn-gold:hover { box-shadow: 0 5px 16px rgba(90,64,21,0.40); transform: translateY(-2px); color: white; }

.btn-violet {
  background: var(--gradient-card-slate);
  color: white;
  box-shadow: 0 3px 10px rgba(42,42,80,0.28);
}
.btn-violet:hover { box-shadow: 0 5px 16px rgba(42,42,80,0.40); transform: translateY(-2px); color: white; }

.btn-outline-primary {
  background: transparent;
  color: var(--blue-700);
  border: 2px solid var(--blue-600);
}
.btn-outline-primary:hover { background: var(--blue-700); color: white; }

.btn-outline-orange {
  background: transparent;
  color: var(--teal-600);
  border: 2px solid var(--teal-500);
}
.btn-outline-orange:hover { background: var(--teal-500); color: white; }

.btn-danger {
  background: linear-gradient(135deg, var(--rose-700), var(--rose-600));
  color: white;
  box-shadow: 0 3px 10px rgba(114,32,32,0.28);
}
.btn-danger:hover { box-shadow: 0 5px 16px rgba(114,32,32,0.40); transform: translateY(-2px); color: white; }

.btn-success {
  background: var(--gradient-card-sage);
  color: white;
  box-shadow: 0 3px 10px rgba(30,74,48,0.28);
}
.btn-success:hover { box-shadow: 0 5px 16px rgba(30,74,48,0.40); transform: translateY(-2px); color: white; }

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}
.btn-secondary:hover { background: var(--gray-300); transform: translateY(-1px); }

/* ========================================================
   TABLES
   ======================================================== */
.table-card { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; }
.table-card .table-card-header {
  background: var(--gradient-card-blue);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  color: white;
}
.table-card .table-card-header h5 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.table-responsive { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data-table thead th {
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--blue-100);
}
table.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
}
table.data-table tbody tr:hover { background: var(--blue-50); }
table.data-table tbody tr:last-child td { border-bottom: none; }

.action-btns { display: flex; gap: 6px; }
.action-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}
.action-btn.edit   { background: var(--blue-100); color: var(--blue-700); }
.action-btn.edit:hover   { background: var(--blue-700); color: white; }
.action-btn.delete { background: var(--rose-100); color: var(--rose-700); }
.action-btn.delete:hover { background: var(--rose-700); color: white; }
.action-btn.view   { background: var(--slate-100); color: var(--slate-600); }
.action-btn.view:hover   { background: var(--slate-600); color: white; }

/* ========================================================
   BADGES / TAGS
   ======================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-blue   { background: var(--blue-100);   color: var(--blue-800); }
.badge-orange { background: var(--teal-100);   color: var(--teal-700); }
.badge-gold   { background: var(--amber-100);  color: var(--amber-700); }
.badge-green  { background: var(--sage-100);   color: var(--sage-700); }
.badge-violet { background: var(--slate-100);  color: var(--slate-700); }

/* ========================================================
   FORMS
   ======================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--blue-800); margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--gray-800);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(0,52,149,0.08);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* ========================================================
   MEDIA ITEMS
   ======================================================== */
.media-item {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
  border-left: 4px solid var(--blue-400);
  margin-bottom: 14px;
}
.media-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.media-item.audio { border-left-color: var(--slate-400); }
.media-item.video { border-left-color: var(--teal-400); }
.media-item.photo { border-left-color: var(--amber-400); }

.media-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; flex-shrink: 0;
}
.media-icon.audio { background: var(--gradient-card-slate); }
.media-icon.video { background: var(--gradient-card-teal); }
.media-icon.photo { background: var(--gradient-card-amber); }

.media-info { flex: 1; min-width: 0; }
.media-title { font-size: 15px; font-weight: 700; color: var(--blue-800); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 12px; flex-wrap: wrap; }
.media-meta span { display: flex; align-items: center; gap: 4px; }
.media-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Audio player */
audio { width: 100%; border-radius: var(--radius-sm); margin-top: 12px; }
audio::-webkit-media-controls-panel { background: var(--blue-50); }

/* ========================================================
   ACTUALITÉS CARDS
   ======================================================== */
.news-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card .news-category {
  padding: 8px 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.news-card.israel    .news-category { background: var(--blue-800);  color: white; }
.news-card.world     .news-category { background: var(--teal-700);  color: white; }
.news-card.persecuted .news-category { background: var(--rose-700); color: white; }
.news-card.association .news-category { background: var(--slate-600); color: white; }

.news-card .news-body { padding: 20px; }
.news-card .news-title { font-size: 15px; font-weight: 700; color: var(--blue-800); margin-bottom: 8px; line-height: 1.4; }
.news-card .news-excerpt { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; margin-bottom: 16px; }
.news-card .news-date { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 5px; }

/* ========================================================
   EMPLOI / JOBS
   ======================================================== */
.job-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 16px; align-items: flex-start;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  margin-bottom: 14px;
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.job-icon {
  width: 48px; height: 48px;
  background: var(--gradient-card-blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px; flex-shrink: 0;
}
.job-info .job-title   { font-size: 15px; font-weight: 700; color: var(--blue-800); }
.job-info .job-company { font-size: 13px; color: var(--teal-600); font-weight: 600; }
.job-info .job-tags    { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ========================================================
   PROJETS
   ======================================================== */
.project-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-header {
  padding: 20px 24px;
  background: var(--gradient-card-blue);
  color: white;
}
.project-body { padding: 20px 24px; }
.progress-bar-wrap {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 6px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-card-mid);
  border-radius: 4px;
  transition: width 1s ease;
}
.progress-label { font-size: 13px; color: var(--gray-500); display: flex; justify-content: space-between; }

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--blue-950);
  color: rgba(255,255,255,0.60);
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.site-footer a { color: var(--blue-300); }
.site-footer a:hover { color: white; }

/* ========================================================
   UTILITY CLASSES
   ======================================================== */
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > [class*='col-'] { flex-shrink: 0; }
.col-1  { width: calc(8.333%  - 10px); }
.col-2  { width: calc(16.666% - 10px); }
.col-3  { width: calc(25%     - 15px); }
.col-4  { width: calc(33.333% - 14px); }
.col-5  { width: calc(41.666% - 12px); }
.col-6  { width: calc(50%     - 10px); }
.col-7  { width: calc(58.333% - 9px);  }
.col-8  { width: calc(66.666% - 7px);  }
.col-9  { width: calc(75%     - 5px);  }
.col-10 { width: calc(83.333% - 3px);  }
.col-12 { width: 100%; }

.mb-0  { margin-bottom: 0 !important; }
.mb-1  { margin-bottom: 6px !important; }
.mb-2  { margin-bottom: 12px !important; }
.mb-3  { margin-bottom: 18px !important; }
.mb-4  { margin-bottom: 24px !important; }
.mb-5  { margin-bottom: 36px !important; }
.mt-4  { margin-top: 24px !important; }
.mt-2  { margin-top: 12px !important; }
.me-2  { margin-right: 8px !important; }
.ms-auto { margin-left: auto !important; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.gap-4 { gap: 20px; }
.w-100 { width: 100%; }

.text-blue   { color: var(--blue-700); }
.text-orange { color: var(--teal-600); }
.text-gold   { color: var(--amber-600); }
.text-violet { color: var(--slate-600); }
.text-green  { color: var(--sage-600); }
.text-muted  { color: var(--gray-500); }
.text-white  { color: white; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 13px; }

/* Alert messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  border-left: 4px solid;
}
.alert-success { background: var(--sage-100);  color: var(--sage-700);  border-color: var(--sage-500); }
.alert-danger  { background: var(--rose-100);  color: var(--rose-700);  border-color: var(--rose-600); }
.alert-info    { background: var(--blue-50);   color: var(--blue-800);  border-color: var(--blue-400); }
.alert-warning { background: var(--amber-100); color: var(--amber-700); border-color: var(--amber-500); }

/* Section titles */
.section-title {
  font-size: 20px; font-weight: 800;
  color: var(--blue-800);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--gradient-card-mid);
  border-radius: 2px;
}
.section-title i { color: var(--teal-500); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state i { font-size: 60px; margin-bottom: 16px; display: block; opacity: 0.35; }
.empty-state h5 { font-size: 18px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-200), var(--blue-100), transparent);
  margin: 28px 0;
}

/* ========================================================
   RESPONSIVE — Complet (1024 / 768 / 576 / 480px)
   ======================================================== */

/* ── 1024px : tablette paysage ── */
@media (max-width: 1024px) {
  .sidebar { width: 240px; }
  .main-wrapper { margin-left: 240px; }
  .col-3 { width: calc(50% - 10px); }
  .stat-card .stat-value { font-size: 28px; }
}

/* ── 768px : tablette portrait / mobile paysage ── */
@media (max-width: 768px) {
  /* Sidebar off-canvas */
  .sidebar { transform: translateX(-100%); width: 270px; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0 !important; }

  /* Topbar */
  .topbar { padding: 0 14px; height: 58px; }
  .topbar-marquee { display: none; }
  .topbar-logo img { height: 40px; }

  /* Contenu */
  .page-content { padding: 16px; }

  /* En-tête de page */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  /* Hero card */
  .hero-card { padding: 24px 20px; }
  .hero-card h1 { font-size: 22px; }
  .hero-card .hero-quote { font-size: 14px; }
  .hero-card .hero-actions { flex-direction: column; gap: 8px; }
  .hero-card .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stat cards */
  .stat-card { padding: 18px; }
  .stat-card .stat-value { font-size: 26px; }
  .stat-card .stat-icon { font-size: 40px; }

  /* Colonnes — toutes en 100% */
  .col-2, .col-3, .col-4, .col-5,
  .col-6, .col-7, .col-8,
  .col-9, .col-10 { width: 100%; }

  /* Row gap réduit */
  .row { gap: 14px; }

  /* Media items empilés */
  .media-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .media-actions { align-self: flex-end; }

  /* Job cards empilées */
  .job-card { flex-direction: column; gap: 12px; }
  .job-icon { width: 40px; height: 40px; font-size: 18px; }

  /* Footer */
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px;
    font-size: 12px;
  }

  /* Cards */
  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; }

  /* Tables scrollables */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data-table { min-width: 580px; }

  /* Table card header */
  .table-card .table-card-header { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Formulaires */
  .form-group { margin-bottom: 14px; }

  /* Widget card */
  .widget-card { padding: 18px; }

  /* Breadcrumb */
  .page-header .breadcrumb { display: none; }

  /* Section title */
  .section-title { font-size: 18px; }
}

/* ── 576px : mobile portrait ── */
@media (max-width: 576px) {
  html { font-size: 14px; }

  /* Topbar — logo masqué sur très petit écran */
  .topbar { height: 52px; padding: 0 12px; }
  .topbar-logo { display: none; }

  /* Contenu */
  .page-content { padding: 12px; }

  /* Hero card */
  .hero-card { padding: 18px 14px; border-radius: var(--radius-md); margin-bottom: 20px; }
  .hero-card h1 { font-size: 19px; }
  .hero-card p { font-size: 13.5px; }
  .hero-card .hero-quote { font-size: 13px; padding-left: 12px; }

  /* Stat cards */
  .stat-card .stat-value { font-size: 22px; }
  .stat-card .stat-label { font-size: 11px; }
  .stat-card .stat-icon { font-size: 34px; right: 14px; }
  .stat-card .stat-link { font-size: 12px; padding: 5px 12px; }

  /* Titres */
  .page-title { font-size: 18px; }
  .page-title i { font-size: 20px; }
  .section-title { font-size: 16px; margin-bottom: 14px; }

  /* Boutons */
  .btn { padding: 8px 14px; font-size: 13px; }
  .btn-lg { padding: 10px 18px; font-size: 14px; }
  .btn-sm { padding: 5px 12px; font-size: 12px; }

  /* Cards */
  .card-header { padding: 12px 14px; font-size: 13.5px; }
  .card-body { padding: 14px; }

  /* Actualités */
  .news-card .news-body { padding: 14px; }
  .news-card .news-title { font-size: 14px; }
  .news-card .news-excerpt { font-size: 13px; }
  .news-card .news-category { padding: 6px 14px; }

  /* Jobs */
  .job-info .job-title   { font-size: 14px; }
  .job-info .job-company { font-size: 12px; }

  /* Tableaux */
  table.data-table thead th { padding: 10px 10px; font-size: 11px; }
  table.data-table tbody td { padding: 10px 10px; font-size: 13px; }
  .action-btn { width: 28px; height: 28px; font-size: 13px; }

  /* Alertes */
  .alert { padding: 10px 12px; font-size: 13px; }

  /* Widget cards */
  .widget-card { padding: 14px; }
  .widget-card h4 { font-size: 14px; }
  .widget-card p { font-size: 13px; }

  /* Project card */
  .project-header { padding: 14px 16px; }
  .project-body { padding: 14px 16px; }

  /* Badges */
  .badge { font-size: 11px; padding: 2px 8px; }

  /* Empty state */
  .empty-state { padding: 40px 16px; }
  .empty-state i { font-size: 48px; }
  .empty-state h5 { font-size: 16px; }
}

/* ── 480px : très petit mobile ── */
@media (max-width: 480px) {
  .topbar { height: 50px; }
  .topbar-toggle { width: 32px; height: 32px; font-size: 16px; }
  .page-content { padding: 10px; }
  .hero-card h1 { font-size: 17px; }
  .stat-card .stat-value { font-size: 20px; }
  .stat-card { padding: 14px; }
  .media-item { padding: 14px; }
  .media-icon { width: 42px; height: 42px; font-size: 18px; }
  .media-title { font-size: 14px; }
  .card-header { font-size: 13px; }
  .btn { font-size: 12px; padding: 7px 12px; }
  .action-btns { gap: 4px; }
}
