/* ============================================================
   ZoodoMedia — Main CSS
   Couleurs officielles: Vert #289100 | Jaune #FFF600
   Police: Nunito (900 bold, 700, 600, 400)
   ============================================================ */

/* ── Variables officielles ZoodoMedia ──────────────────────── */
:root {
  /* === COULEURS OFFICIELLES === */
  --green:        #289100;   /* Vert ZoodoMedia principal */
  --green-dark:   #1a6b00;   /* Vert foncé */
  --green-light:  #3ab200;   /* Vert clair */
  --green-pale:   #e8f5d4;   /* Vert très pâle (backgrounds) */
  --yellow:       #FFF600;   /* Jaune/Or ZoodoMedia */
  --yellow-dark:  #D4CC00;   /* Jaune foncé */
  --yellow-warm:  #F5E800;   /* Jaune chaud */

  /* Couleurs UI dérivées */
  --primary:      #289100;   /* Couleur primaire = vert */
  --primary-dark: #1a6b00;
  --accent:       #FFF600;   /* Accent = jaune */
  --accent-dark:  #D4CC00;

  /* Couleurs sémantiques */
  --danger:       #dc2626;
  --danger-dark:  #b91c1c;
  --info:         #1d6f42;   /* Vert info (plus foncé) */
  --warning:      #d97706;
  --success:      #289100;

  /* Alias pour compatibilité (anciens noms) */
  --red:          #dc2626;
  --red-dark:     #b91c1c;
  --blue:         #1d3557;
  --blue-light:   #289100;   /* Remplacé par vert */
  --gold:         #FFF600;

  /* Neutres */
  --bg:           #f8faf5;   /* Légèrement verdâtre */
  --bg-card:      #ffffff;
  --bg-sidebar:   #0d2800;   /* Vert très sombre pour sidebar */
  --bg-topbar:    #ffffff;
  --bg-alt:       #f0f7eb;   /* Fond alternatif vert pâle */
  --text:         #1a2e14;   /* Texte légèrement vert */
  --text-muted:   #5a7a52;   /* Muted verdâtre */
  --text-light:   #8fad85;
  --border:       #d4e8c8;   /* Bordure verte pâle */
  --border-dark:  #b8d4a8;
  --shadow:       0 2px 12px rgba(40,145,0,.08);
  --shadow-md:    0 4px 24px rgba(40,145,0,.12);
  --shadow-lg:    0 8px 40px rgba(40,145,0,.16);

  /* Typographie */
  --font:         'Nunito', 'Arial Black', sans-serif;

  /* Rayons */
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* Espacements */
  --gap:          16px;
  --gap-sm:       8px;
  --gap-md:       24px;
  --gap-lg:       32px;
  --gap-xl:       48px;
  --gap-2x:       80px;

  /* Layout */
  --sidebar-w:    265px;
  --topbar-h:     64px;
  --transition:   0.2s ease;

  /* Compat */
  --r-lg:         var(--zm-radius-lg);
  --r-sm:         6px;
  --f-head:       var(--font);
  --heading:      var(--zm-text);
}

/* Dark mode */
[data-theme="dark"] {
  --bg:           #0a1f06;
  --bg-card:      #122509;
  --bg-topbar:    #122509;
  --bg-alt:       #1a3511;
  --text:         #d4efc8;
  --text-muted:   #7ab870;
  --text-light:   #4d8040;
  --border:       #1e4015;
  --border-dark:  #2a5520;
  --shadow:       0 2px 12px rgba(0,0,0,.4);
  --shadow-md:    0 4px 24px rgba(0,0,0,.5);
  --green-pale:   rgba(40,145,0,.15);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--zm-bg);
  color: var(--zm-text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Utilitaires ────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gap-md); }
.text-center { text-align: center; }
.text-muted { color: var(--zm-muted); }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ── Grilles ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── BOUTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 6px;
  font-weight: 700; font-size: .9rem; border: 2px solid transparent;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
  text-decoration: none; line-height: 1.2; font-family: var(--font);
}
.btn-sm  { padding: 6px 14px; font-size: .8rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Primaire = vert ZoodoMedia */
.btn-primary {
  background: var(--zm-green); color: #fff; border-color: var(--zm-green);
}
.btn-primary:hover {
  background: var(--zm-green-dk); border-color: var(--zm-green-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(40,145,0,.35);
}

/* Secondaire = contour vert */
.btn-secondary {
  background: transparent; color: var(--zm-green); border-color: var(--zm-border-dk);
}
.btn-secondary:hover {
  background: var(--zm-green-lgt); border-color: var(--zm-green);
}

/* Accent = jaune (pour actions spéciales) */
.btn-accent {
  background: var(--yellow); color: var(--zm-green-dk); border-color: var(--yellow);
  font-weight: 900;
}
.btn-accent:hover {
  background: var(--yellow-dark); border-color: var(--yellow-dark);
  transform: translateY(-1px);
}

.btn-success { background: var(--zm-green); color: #fff; border-color: var(--zm-green); }
.btn-success:hover { background: var(--zm-green-dk); }
.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-dark); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-ghost   { background: transparent; border-color: transparent; color: var(--zm-muted); }
.btn-ghost:hover { background: var(--zm-green-lgt); color: var(--zm-green); }
.btn-outline-primary {
  background: transparent; color: var(--zm-green); border-color: var(--zm-green);
}
.btn-outline-primary:hover { background: var(--zm-green); color: #fff; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn i { font-size: .85em; }

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-green  { background: #d4f0b4; color: #1a6b00; }
.badge-yellow { background: #fffbd0; color: #7a6e00; }
.badge-red    { background: #fde8ea; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-gold   { background: #fffbd0; color: #8a7000; }
.badge-gray   { background: var(--zm-border); color: var(--zm-muted); }
.badge-purple { background: #ede9fe; color: #6d28d9; }
[data-theme="dark"] .badge-green  { background: rgba(40,145,0,.25); color: #7de040; }
[data-theme="dark"] .badge-yellow { background: rgba(255,246,0,.15); color: #fff600; }
[data-theme="dark"] .badge-red    { background: rgba(220,38,38,.2); color: #f87171; }
[data-theme="dark"] .badge-blue   { background: rgba(37,99,235,.2); color: #60a5fa; }
[data-theme="dark"] .badge-gray   { background: rgba(90,122,82,.2); color: #7ab870; }
[data-theme="dark"] .badge-purple { background: rgba(109,40,217,.2); color: #a78bfa; }

/* ── FORMULAIRES ─────────────────────────────────────────────── */
.form-group  { margin-bottom: var(--gap); }
.form-label  { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--zm-text); }
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--zm-border-dk); border-radius: 6px;
  background: var(--zm-card-bg); color: var(--zm-text); font-size: .95rem;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--zm-green);
  box-shadow: 0 0 0 3px rgba(40,145,0,.15);
}
.form-control::placeholder { color: var(--zm-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: .78rem; color: var(--zm-muted); margin-top: 4px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 4px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Toggle */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--zm-border-dk);
  border-radius: var(--radius-full); transition: .3s; cursor: pointer;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--zm-green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* File drop */
.file-drop {
  border: 2px dashed var(--zm-border-dk); border-radius: var(--zm-radius);
  padding: var(--gap-md); text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--zm-hover);
}
.file-drop:hover, .file-drop.drag-over {
  border-color: var(--zm-green); background: var(--zm-green-lgt);
}
.file-drop input[type="file"] { display: none; }
.file-drop-icon { font-size: 2rem; color: var(--zm-muted); margin-bottom: 8px; }
.file-drop-text { font-size: .9rem; color: var(--zm-muted); }
.file-drop-text strong { color: var(--zm-green); }

/* Input group */
.input-group { display: flex; }
.input-group .form-control { border-radius: 6px 0 0 6px; }
.input-group .btn { border-radius: 0 6px 6px 0; }

/* Checkbox */
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] { width: 16px; height: 16px; accent-color: var(--zm-green); cursor: pointer; }

/* ── ALERTES ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 6px; margin-bottom: var(--gap);
  font-size: .9rem; border-left: 4px solid transparent; animation: fadeIn .3s ease;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-success { background: #d4f0b4; color: #1a6b00; border-color: var(--zm-green); }
.alert-danger  { background: #fde8ea; color: #991b1b; border-color: var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-color: var(--warning); }
.alert-info    { background: #d4f0b4; color: #1a4d00; border-color: var(--zm-green); }

/* ── TABLES ──────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--zm-radius); border: 1px solid var(--zm-border); }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.table th {
  background: var(--zm-hover); padding: 12px 16px; text-align: left;
  font-weight: 700; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--zm-muted);
  border-bottom: 2px solid var(--zm-border);
  white-space: nowrap;
}
table.table td {
  padding: 12px 16px; border-bottom: 1px solid var(--zm-border);
  vertical-align: middle; color: var(--zm-text);
}
table.table tbody tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: var(--zm-green-lgt); }
table.table .td-actions { display: flex; gap: 6px; align-items: center; }
.table-img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }
.table-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--zm-card-bg); border-radius: var(--zm-radius);
  border: 1px solid var(--zm-border); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--zm-shadow-lg); }
.card-header {
  padding: 16px 20px 14px; border-bottom: 1px solid var(--zm-border);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
}
.card-title { font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card-body  { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--zm-border); background: var(--zm-hover); }

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stat-card {
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); padding: 20px 24px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--zm-shadow-lg); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--stat-color, var(--zm-green));
}
.stat-card-icon {
  width: 48px; height: 48px; border-radius: var(--zm-radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--stat-bg, var(--zm-green-lgt));
  color: var(--stat-color, var(--zm-green)); font-size: 1.3rem;
  margin-bottom: 12px;
}
.stat-card-value { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 4px; font-family: var(--font); }
.stat-card-label { font-size: .85rem; color: var(--zm-muted); font-weight: 600; }
.stat-card-trend { font-size: .78rem; font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 4px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: var(--gap-md); }
@media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stats-grid { grid-template-columns: 1fr; } }

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  justify-content: center; margin: var(--gap-lg) 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 6px;
  font-size: .88rem; font-weight: 700; border: 1px solid var(--zm-border);
  background: var(--zm-card-bg); color: var(--zm-text); transition: all var(--transition);
}
.pagination a:hover { background: var(--zm-green); color: #fff; border-color: var(--zm-green); }
.pagination span.active { background: var(--zm-green); color: #fff; border-color: var(--zm-green); }
.pagination span.dots { background: transparent; border-color: transparent; color: var(--zm-muted); }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--gap-2x) var(--gap-md); color: var(--zm-muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: var(--gap); opacity: .5; }
.empty-state h3 { font-size: 1.2rem; font-weight: 800; color: var(--zm-text); margin-bottom: 8px; }
.empty-state p  { font-size: .9rem; margin-bottom: var(--gap-md); }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: var(--gap); opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--zm-card-bg); border-radius: var(--zm-radius-lg);
  padding: var(--gap-md); width: 100%; max-width: 540px;
  transform: scale(.96); transition: transform var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }

/* ── TOAST ───────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--zm-radius);
  background: var(--zm-card-bg); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--zm-green); min-width: 280px; max-width: 400px;
  animation: toast-in .3s ease; font-size: .9rem; font-weight: 600;
}
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }

/* ════════════════════════════════════════════════════════════
   FRONT-END PUBLIC — avec couleurs ZoodoMedia
   ════════════════════════════════════════════════════════════ */

/* ── Breaking news ───────────────────────────────────────────── */
.breaking-bar {
  background: var(--zm-green); color: #fff;
  font-size: .82rem; font-weight: 700; padding: 7px 0; overflow: hidden;
}
.breaking-bar .container { display: flex; align-items: center; gap: 16px; }
.breaking-label {
  background: rgba(0,0,0,.2); padding: 2px 10px; border-radius: var(--radius-full);
  white-space: nowrap; font-size: .76rem; letter-spacing: .06em; flex-shrink: 0;
}
.breaking-ticker { display: flex; gap: 24px; overflow: hidden; }
.breaking-ticker a { color: #fff; opacity: .9; white-space: nowrap; transition: opacity .2s; }
.breaking-ticker a:hover { opacity: 1; text-decoration: underline; }

/* ── Enterprise banner ───────────────────────────────────────── */
.enterprise-banner {
  background: #fffbd0; color: #5a4d00; padding: 10px var(--gap-md);
  font-size: .88rem; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

/* ── Topbar public ───────────────────────────────────────────── */
.topbar {
  background: var(--bg-topbar);
  border-bottom: 3px solid var(--zm-green);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--zm-shadow);
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .topbar { background: rgba(18,37,9,.95); }

.topbar-inner { display: flex; align-items: center; gap: var(--gap); height: 64px; }
.topbar-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-logo img { height: 40px; }
.topbar-logo-text { font-size: 1.3rem; font-weight: 900; color: var(--zm-green); letter-spacing: -.02em; }

.topbar-search { flex: 1; max-width: 480px; margin: 0 auto; }
.topbar-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: none; background: transparent;
  border-radius: 6px; font-size: .85rem; font-weight: 600;
  color: var(--zm-muted); cursor: pointer; transition: all var(--transition);
  position: relative; text-decoration: none;
}
.topbar-btn:hover { color: var(--zm-green); background: var(--zm-green-lgt); }
.topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ── Navbar catégories ───────────────────────────────────────── */
.cat-navbar { background: var(--zm-green); border-bottom: 3px solid var(--yellow); overflow: hidden; }
.cat-navbar-inner { display: flex; align-items: center; gap: 0; height: 44px; overflow-x: auto; }
.cat-navbar-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
  display: flex; align-items: center; gap: 5px;
  padding: 0 16px; height: 44px; font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.85); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -3px; transition: all .2s;
  text-decoration: none;
}
.cat-nav-item:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.cat-nav-item.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.cat-nav-btn { background: none; border: none; cursor: pointer; font-family: inherit; }
.cat-nav-live { color: #fff !important; font-weight: 800; }
.cat-nav-live .live-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--yellow); border-radius: 50%;
  animation: livepulse 1.2s ease infinite;
}
@keyframes livepulse { 0%,100% { opacity:1;transform:scale(1); } 50% { opacity:.5;transform:scale(1.4); } }
.cat-nav-jobs { color: var(--yellow) !important; font-weight: 800; }

/* Dropdown catégories */
.cat-dropdown {
  position: absolute; top: calc(100% + 3px); left: 0;
  background: var(--zm-card-bg); border-radius: 6px;
  box-shadow: var(--shadow-lg); min-width: 180px;
  border: 1px solid var(--zm-border); z-index: 400; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all .2s;
}
.cat-nav-has-dropdown:hover .cat-dropdown { opacity: 1; visibility: visible; transform: none; }
.cat-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.cat-dropdown a {
  display: block; padding: 9px 16px; font-size: .85rem;
  color: var(--zm-text); transition: background .15s;
}
.cat-dropdown a:hover { background: var(--zm-green-lgt); color: var(--zm-green); }
.cat-nav-sep { width: 1px; background: rgba(255,255,255,.2); height: 24px; margin: 0 4px; }
.cat-nav-has-dropdown { position: relative; }

/* ── Section header ──────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--gap-lg); gap: var(--gap);
}
.section-title {
  font-size: 1.5rem; font-weight: 900; color: var(--zm-text);
  position: relative; padding-bottom: 8px;
  font-family: var(--font);
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px; background: var(--zm-green); border-radius: 2px;
}

/* ── Article cards ───────────────────────────────────────────── */
.article-card {
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--zm-shadow-lg); transform: translateY(-2px); }
.article-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--zm-border); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-cat {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; transition: opacity var(--transition);
}
.article-cat:hover { opacity: .75; }
.article-title { font-size: 1rem; font-weight: 800; line-height: 1.35; flex: 1; font-family: var(--font); }
.article-title a:hover { color: var(--zm-green); }
.article-excerpt { font-size: .85rem; color: var(--zm-muted); line-height: 1.5; }
.article-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .76rem; color: var(--zm-muted); margin-top: auto;
}

/* Article card horizontal */
.article-card-h {
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); display: flex; overflow: hidden;
  transition: box-shadow var(--transition);
}
.article-card-h:hover { box-shadow: var(--zm-shadow-lg); }
.article-card-h .thumb { width: 140px; flex-shrink: 0; overflow: hidden; }
.article-card-h .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-h .info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* ── Video cards ─────────────────────────────────────────────── */
.video-card {
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); overflow: hidden; transition: all var(--transition);
}
.video-card:hover { box-shadow: var(--zm-shadow-lg); transform: translateY(-2px); }
.video-card-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; background: #000; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.video-card:hover .video-card-thumb img { opacity: 1; }
.video-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-play-btn span {
  width: 52px; height: 52px; background: var(--zm-green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 4px 16px rgba(40,145,0,.4);
}
.video-card:hover .video-play-btn span { transform: scale(1.1); background: var(--zm-green-dk); }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.75); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 3px;
}
.video-card-body { padding: 14px; }
.video-title { font-size: .95rem; font-weight: 800; line-height: 1.35; margin-bottom: 8px; font-family: var(--font); }
.video-title a:hover { color: var(--zm-green); }
.video-meta { font-size: .78rem; color: var(--zm-muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Job cards ───────────────────────────────────────────────── */
.job-card {
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all var(--transition);
}
.job-card:hover { box-shadow: var(--zm-shadow-lg); border-color: var(--zm-green); transform: translateY(-2px); }
.job-logo { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; border: 1px solid var(--zm-border); flex-shrink: 0; }
.job-title { font-size: 1rem; font-weight: 800; font-family: var(--font); }
.job-title a:hover { color: var(--zm-green); }
.job-company { font-size: .85rem; color: var(--zm-muted); }
.job-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--zm-muted); flex-wrap: wrap; }
.job-meta i { color: var(--zm-green); }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0d2800 0%, #1a4f00 50%, #289100 150%);
  padding: var(--gap);
}
.auth-page::before {
  content: ''; position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.auth-card {
  background: var(--zm-card-bg); border-radius: var(--radius-xl);
  padding: var(--gap-md) var(--gap-lg); width: 100%; max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  border-top: 4px solid var(--zm-green);
}
.auth-title { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 6px; font-family: var(--font); }
.auth-subtitle { text-align: center; color: var(--zm-muted); font-size: .9rem; margin-bottom: var(--gap-md); }
.auth-footer { text-align: center; margin-top: var(--gap); font-size: .88rem; color: var(--zm-muted); }
.auth-divider {
  display: flex; align-items: center; gap: var(--gap);
  margin: var(--gap) 0; color: var(--zm-muted); font-size: .82rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--zm-border); }

/* ── User dropdown ───────────────────────────────────────────── */
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); box-shadow: var(--shadow-lg);
  min-width: 200px; z-index: 400; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--transition);
  border-top: 3px solid var(--zm-green);
}
.user-menu:hover .user-dropdown,
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--zm-border); background: var(--zm-green-lgt); }
.user-dropdown-name  { font-weight: 800; font-size: .95rem; }
.user-dropdown-email { font-size: .78rem; color: var(--zm-muted); }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: .88rem; color: var(--zm-text); transition: background var(--transition);
}
.user-dropdown a:hover { background: var(--zm-green-lgt); color: var(--zm-green); }
.user-dropdown-logout:hover { background: #fde8ea !important; color: var(--danger) !important; }

/* Notif badge */
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff;
  font-size: .65rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: #0d2800; color: rgba(255,255,255,.8);
  margin-top: var(--gap-2x);
  border-top: 4px solid var(--zm-green);
}
.footer-stripe { height: 4px; background: linear-gradient(90deg, var(--zm-green) 33%, var(--yellow) 33% 66%, #dc2626 66%); }
.footer-body { padding: var(--gap-lg) 0; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--yellow); }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-lg); margin-bottom: var(--gap-lg);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo-link { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo-link img { height: 44px; }
.footer-desc { font-size: .85rem; line-height: 1.65; color: rgba(255,255,255,.65); margin-bottom: var(--gap); }

.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.fsoc {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08); transition: all .2s; text-decoration: none;
}
.fsoc:hover      { transform: translateY(-2px); }
.fsoc-fb:hover   { background: #1877f2; color: #fff; }
.fsoc-tw:hover   { background: #000; color: #fff; }
.fsoc-ig:hover   { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.fsoc-yt:hover   { background: #ff0000; color: #fff; }
.fsoc-li:hover   { background: #0a66c2; color: #fff; }
.fsoc-wa:hover   { background: #25d366; color: #fff; }
.fsoc-tt:hover   { background: #010101; color: #fff; }

.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col-title {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--yellow); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.footer-col a {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: .85rem; color: rgba(255,255,255,.65);
  transition: color .15s; text-decoration: none;
}
.footer-col a:hover { color: var(--yellow); }
.footer-col a i { font-size: .6rem; color: var(--green-light); }

/* Newsletter footer */
.footer-newsletter {
  background: rgba(255,255,255,.04); border-radius: 12px;
  padding: 20px 24px; display: flex; align-items: center; gap: var(--gap-lg);
  flex-wrap: wrap; border: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--gap-md);
}
.footer-newsletter-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 200px; }
.footer-nl-icon { font-size: 2rem; }
.footer-newsletter-left h3 { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.footer-newsletter-left p  { font-size: .82rem; color: rgba(255,255,255,.6); }
.footer-newsletter-form { display: flex; gap: 0; flex: 1; min-width: 220px; }
.footer-newsletter-form input {
  flex: 1; padding: 10px 14px; border: 2px solid rgba(255,255,255,.15);
  border-radius: 8px 0 0 8px; background: rgba(255,255,255,.08);
  color: #fff; font-size: .88rem; font-family: var(--font);
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--yellow); }
.footer-newsletter-form button {
  padding: 10px 16px; background: var(--yellow); color: #0d2800;
  border: 2px solid var(--yellow); border-radius: 0 8px 8px 0;
  font-weight: 900; font-size: .85rem; display: flex; align-items: center; gap: 6px;
  transition: background .2s; font-family: var(--font);
}
.footer-newsletter-form button:hover { background: var(--yellow-dark); }

.footer-divider { height: 1px; background: rgba(255,255,255,.08); margin: 0 0 var(--gap); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding-bottom: var(--gap);
}
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-copy strong { color: var(--yellow); }
.footer-links { display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.footer-links a { color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: var(--yellow); }
.footer-links span { color: rgba(255,255,255,.2); }

/* ── Tags pills ──────────────────────────────────────────────── */
.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--zm-green-lgt); color: var(--zm-green-dk);
  border: 1px solid rgba(40,145,0,.25); border-radius: 999px;
  padding: 3px 10px; font-size: .78rem; font-weight: 600;
}
.tag-pill button { background: none; border: none; cursor: pointer; color: inherit; font-size: .85rem; line-height: 1; padding: 0; opacity: .7; }
.tag-pill button:hover { opacity: 1; }
#tag-container {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px; border: 2px solid var(--zm-border-dk);
  border-radius: 6px; background: var(--zm-card-bg); min-height: 44px;
}
#tag-container input { border: none; outline: none; background: transparent; font-size: .9rem; color: var(--zm-text); flex: 1; min-width: 120px; padding: 2px 4px; }

/* ── Back to top ─────────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 40px; height: 40px; background: var(--zm-green); color: #fff;
  border: none; border-radius: 50%; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all .3s;
  box-shadow: 0 4px 16px rgba(40,145,0,.4); z-index: 99;
}
#back-to-top:hover { transform: translateY(-2px); background: var(--zm-green-dk); }

/* ── Header search ───────────────────────────────────────────── */
.header-search { position: relative; background: var(--zm-bg); border-radius: 10px; border: 2px solid var(--zm-border-dk); overflow: visible; }
.header-search input { width: 100%; padding: 9px 40px 9px 36px; border: none; background: transparent; font-size: .88rem; color: var(--zm-text); font-family: var(--font); }
.header-search input:focus { outline: none; }
.header-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--zm-muted); font-size: .85rem; }

/* Mobile nav */
.nav-mobile { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 600; display: none; backdrop-filter: blur(4px); }
.nav-mobile.open { display: block; }
.nav-mobile-menu {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(320px, 90vw); background: var(--zm-card-bg);
  padding: 20px; overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.nav-mobile-menu.open { transform: none; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; font-size: .9rem; font-weight: 700;
  color: var(--zm-text); border-bottom: 1px solid var(--zm-border);
  transition: color .15s; text-decoration: none;
}
.mobile-nav-link:hover { color: var(--zm-green); }
.mobile-nav-link i { width: 20px; text-align: center; color: var(--zm-muted); }

/* ════════════════════════════════════════════════════════════
   DASHBOARD ADMIN — couleurs ZoodoMedia
   ════════════════════════════════════════════════════════════ */
.dashboard-body { background: var(--zm-bg); overflow-x: hidden; }

/* Sidebar */
.db-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w); background: #0d2800;
  display: flex; flex-direction: column;
  z-index: 500; transition: transform var(--transition); overflow: hidden;
  border-right: 1px solid rgba(40,145,0,.2);
}
.db-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: var(--topbar-h);
  border-bottom: 1px solid rgba(40,145,0,.15); flex-shrink: 0;
}
.db-sidebar-logo { display: flex; align-items: center; gap: 10px; }
.db-sidebar-logo img { height: 36px; }
.db-sidebar-logo-fallback {
  font-size: 1.1rem; font-weight: 900; color: var(--yellow); letter-spacing: -.02em; display: none;
}
.db-sidebar-close {
  display: none; width: 32px; height: 32px; border: none;
  background: rgba(255,255,255,.08); border-radius: 50%;
  color: rgba(255,255,255,.7); font-size: .9rem;
}

/* Profile sidebar */
.db-sidebar-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-bottom: 1px solid rgba(40,145,0,.15); flex-shrink: 0;
}
.db-sidebar-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--yellow); flex-shrink: 0;
}
.db-sidebar-profile-name { font-weight: 700; font-size: .95rem; color: #fff; }
.db-role-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-full);
  font-size: .68rem; font-weight: 700; border: 1px solid transparent;
  text-transform: uppercase; letter-spacing: .04em; margin-top: 2px;
}

/* Nav sidebar */
.db-nav { flex: 1; overflow-y: auto; padding: 8px 0 16px; }
.db-nav::-webkit-scrollbar { width: 3px; }
.db-nav::-webkit-scrollbar-thumb { background: rgba(255,246,0,.2); border-radius: 2px; }
.db-nav-section { margin-bottom: 4px; }
.db-nav-section-title {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,246,0,.4); padding: 12px 20px 6px;
}
.db-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 20px; font-size: .9rem; font-weight: 600;
  color: rgba(255,255,255,.7); border-left: 3px solid transparent;
  transition: all var(--transition); position: relative; text-decoration: none;
}
.db-nav-link:hover { color: #fff; background: rgba(40,145,0,.2); }
.db-nav-link.active {
  color: var(--yellow); background: rgba(40,145,0,.25);
  border-left-color: var(--yellow);
}
.db-nav-icon { width: 20px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.db-nav-label { flex: 1; }
.db-nav-badge {
  background: var(--yellow); color: #0d2800; font-size: .65rem; font-weight: 900;
  padding: 2px 6px; border-radius: var(--radius-full); min-width: 18px; text-align: center;
}
.db-nav-bottom { border-top: 1px solid rgba(40,145,0,.15); margin-top: auto; padding-top: 8px; }
.db-nav-logout:hover { background: rgba(220,38,38,.2) !important; color: #f87171 !important; }

/* Sidebar collapsed */
body.sidebar-collapsed .db-sidebar { width: 64px; }
body.sidebar-collapsed .db-nav-label,
body.sidebar-collapsed .db-nav-badge,
body.sidebar-collapsed .db-nav-section-title,
body.sidebar-collapsed .db-sidebar-profile-info { display: none; }
body.sidebar-collapsed .db-nav-link { justify-content: center; padding: 10px; }
body.sidebar-collapsed .db-nav-icon { width: auto; font-size: 1.1rem; }
body.sidebar-collapsed .db-wrapper { margin-left: 64px; }
body.sidebar-collapsed .db-sidebar-profile { justify-content: center; }

/* Overlay mobile */
.db-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 499; }

/* Wrapper & Topbar */
.db-wrapper { margin-left: var(--sidebar-w); min-height: 100vh; transition: margin-left var(--transition); }
.db-topbar {
  background: var(--bg-topbar); border-bottom: 1px solid var(--zm-border);
  height: var(--topbar-h); display: flex; align-items: center;
  padding: 0 24px; gap: var(--gap); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-bottom: 2px solid var(--zm-green);
}
.db-topbar-left { display: flex; align-items: center; gap: var(--gap); flex: 1; min-width: 0; }
.db-topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.db-toggle {
  width: 36px; height: 36px; border: none; background: var(--zm-green-lgt);
  border-radius: 6px; font-size: 1rem; color: var(--zm-green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--transition);
}
.db-toggle:hover { background: rgba(40,145,0,.2); }

.db-page-title { font-weight: 900; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font); }
.db-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; flex-wrap: wrap; }
.db-breadcrumb a { color: var(--zm-muted); transition: color var(--transition); }
.db-breadcrumb a:hover { color: var(--zm-green); }
.db-breadcrumb-sep { color: var(--zm-light); }
.db-breadcrumb-current { font-weight: 800; color: var(--zm-text); }

.db-topbar-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: none; background: transparent;
  border-radius: 6px; font-size: .85rem; font-weight: 600;
  color: var(--zm-muted); cursor: pointer; transition: all var(--transition);
  position: relative; text-decoration: none;
}
.db-topbar-btn:hover { background: var(--zm-green-lgt); color: var(--zm-green); }
.db-topbar-btn-label { display: none; }
@media (min-width: 768px) { .db-topbar-btn-label { display: inline; } }

.db-notif-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--danger); color: #fff;
  font-size: .6rem; font-weight: 800;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.db-user-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border: none; background: transparent;
  border-radius: var(--zm-radius); cursor: pointer; transition: background var(--transition);
}
.db-user-btn:hover { background: var(--zm-green-lgt); }
.db-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--zm-green); }
.db-user-info { display: none; flex-direction: column; text-align: left; }
@media (min-width: 768px) { .db-user-info { display: flex; } }
.db-user-name { font-size: .85rem; font-weight: 800; line-height: 1.1; color: var(--zm-text); font-family: var(--font); }
.db-user-role { font-size: .72rem; font-weight: 600; line-height: 1.1; }
.db-user-chevron { font-size: .7rem; color: var(--zm-muted); }

/* Content */
.db-content { padding: 24px; }
.db-content-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: var(--gap-md); gap: var(--gap); flex-wrap: wrap;
  animation: fadeIn .25s ease;
}
.db-content-title { font-size: 1.4rem; font-weight: 900; font-family: var(--font); }
.db-content-subtitle { font-size: .9rem; color: var(--zm-muted); margin-top: 2px; }

/* Flash messages */
.db-flash {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 6px;
  margin-bottom: var(--gap); font-size: .9rem; border-left: 4px solid transparent;
  transition: opacity .4s; animation: fadeIn .3s ease;
}
.db-flash-icon { font-size: 1.1rem; flex-shrink: 0; }
.db-flash span { flex: 1; }
.db-flash-close { background: none; border: none; cursor: pointer; color: inherit; opacity: .6; margin-left: auto; padding: 2px; }
.db-flash-success { background: #d4f0b4; color: #1a6b00; border-color: var(--zm-green); }
.db-flash-danger  { background: #fde8ea; color: #991b1b; border-color: var(--danger); }
.db-flash-warning { background: #fef3c7; color: #92400e; border-color: var(--warning); }
.db-flash-info    { background: #d4f0b4; color: #1a4d00; border-color: var(--zm-green); }

/* Dashboard section */
.db-section { margin-bottom: var(--gap-md); }
.db-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--gap); gap: var(--gap);
}
.db-section-title { font-size: 1rem; font-weight: 800; font-family: var(--font); }

/* Filters */
.filters-bar {
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); padding: 14px 16px; margin-bottom: var(--gap);
  display: flex; align-items: center; gap: var(--gap); flex-wrap: wrap;
}
.filters-bar .form-control { width: auto; }

/* Status dots */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.published, .status-dot.approved, .status-dot.active { background: var(--zm-green); }
.status-dot.pending, .status-dot.review { background: var(--warning); }
.status-dot.draft, .status-dot.rejected, .status-dot.inactive { background: var(--zm-muted); }

/* Modération */
.moderation-item {
  background: var(--zm-card-bg); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius); padding: 16px; display: flex; gap: 14px;
  align-items: flex-start; transition: box-shadow var(--transition);
}
.moderation-item:hover { box-shadow: var(--zm-shadow); }
.moderation-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--zm-border); flex-shrink: 0; }

/* Mobile dashboard */
@media (max-width: 1024px) {
  .db-sidebar { transform: translateX(-100%); }
  .db-sidebar.open { transform: none; }
  .db-sidebar-close { display: flex; }
  .db-overlay.open { display: block; }
  .db-wrapper { margin-left: 0 !important; }
}
@media (max-width: 768px) {
  .db-content { padding: 16px; }
  .db-topbar { padding: 0 16px; }
  .db-content-header { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card-value { font-size: 1.5rem; }
}

/* ── Theme toggle ────────────────────────────────────────────── */
.theme-toggle { font-size: 1rem; border: none; background: none; }

/* ── Dark mode card/table/form ───────────────────────────────── */
[data-theme="dark"] .card { background: #122509; border-color: #1e4015; }
[data-theme="dark"] .card-header { border-color: #1e4015; }
[data-theme="dark"] .card-footer { background: rgba(40,145,0,.05); border-color: #1e4015; }
[data-theme="dark"] table.table th { background: #0d2800; border-color: #1e4015; }
[data-theme="dark"] table.table td { border-color: #1e4015; }
[data-theme="dark"] table.table tbody tr:hover { background: rgba(40,145,0,.08); }
[data-theme="dark"] .form-control { background: #0d2800; border-color: #1e4015; color: var(--zm-text); }
[data-theme="dark"] .form-control:focus { border-color: var(--zm-green); box-shadow: 0 0 0 3px rgba(40,145,0,.2); }
[data-theme="dark"] .db-topbar { background: #122509; border-color: var(--zm-green); }
[data-theme="dark"] .file-drop { background: #0d2800; border-color: #1e4015; }
[data-theme="dark"] .file-drop:hover { border-color: var(--zm-green); background: rgba(40,145,0,.08); }
[data-theme="dark"] .filters-bar { background: #122509; border-color: #1e4015; }
[data-theme="dark"] .auth-card { background: #122509; }

/* Sidebar widget */
.sidebar-sticky { position: sticky; top: calc(var(--topbar-h) + var(--gap)); }
.sidebar-widget { background: var(--zm-card-bg); border: 1px solid var(--zm-border); border-radius: var(--zm-radius); padding: 16px; margin-bottom: var(--gap); }
.sidebar-widget-title { font-size: .88rem; font-weight: 800; margin-bottom: var(--gap); padding-bottom: 10px; border-bottom: 2px solid var(--zm-green); color: var(--zm-text); }
.ad-label { font-size: .68rem; text-align: center; color: var(--zm-light); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }

/* Single content */
.single-content h2 { font-size: 1.4rem; font-weight: 900; margin: 1.5em 0 .7em; color: var(--zm-text); }
.single-content h3 { font-size: 1.15rem; font-weight: 800; margin: 1.2em 0 .6em; }
.single-content p  { margin-bottom: 1em; line-height: 1.75; }
.single-content img { border-radius: var(--zm-radius); margin: 1em 0; }
.single-content blockquote { border-left: 4px solid var(--zm-green); padding: 10px 16px; margin: 1.5em 0; color: var(--zm-muted); font-style: italic; background: var(--zm-hover); border-radius: 0 6px 6px 0; }
.single-content ul, .single-content ol { margin: .8em 0 .8em 1.5em; line-height: 1.7; }
.single-content li { margin-bottom: .4em; }
.single-content a  { color: var(--zm-green); text-decoration: underline; }
.single-content pre { background: #0d2800; color: #d4efc8; padding: 16px; border-radius: var(--zm-radius); overflow-x: auto; font-size: .88rem; margin: 1em 0; }
.single-content code { background: var(--zm-green-lgt); padding: 2px 6px; border-radius: 3px; font-size: .88em; color: var(--zm-green-dk); }

/* Animations */
@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin    { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .3s ease; }
.spin    { animation: spin 1s linear infinite; }

/* Print */
@media print {
  .db-sidebar, .db-topbar, .btn, .db-nav-badge { display: none !important; }
  .db-wrapper { margin: 0 !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── Toast notifications (site public) ──────────────────── */
.zm-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.zm-toast {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: .88rem;
  font-weight: 600;
  pointer-events: all;
  animation: toast-in .3s ease;
  max-width: 320px;
}
.zm-toast.success { border-left: 4px solid var(--green); }
.zm-toast.error   { border-left: 4px solid var(--red); }
.zm-toast.info    { border-left: 4px solid #2563eb; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
