@charset "UTF-8";
/* ── Faveur Médias — Admin Dashboard CSS ────────────────────────────────── */
/* Variables */
:root {
  --gold: #D4A11E;
  --gold-light: rgba(212,161,30,0.12);
  --gold-dark: #A07A10;
  --black: #0B0B0B;
  --sidebar-w: 220px;
  --topbar-h: 52px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

body {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.admin-body {
  background: #F4F4F2;
  min-height: 100vh;
}

.admin-wrap {
  display: flex;
  min-height: 100vh;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--black);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 15px;
  flex-shrink: 0;
}

.logo-text {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.logo-sub {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 12px;
}

.nav-section {
  padding: 14px 10px 4px;
}

.nav-section--bottom {
  margin-top: auto;
}

.nav-label {
  color: rgba(255, 255, 255, 0.28);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  padding: 0 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: 1px;
  transition: background 0.15s, color 0.15s;
}

.nav-item i {
  font-size: 14px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.nav-item.active {
  background: var(--gold-light);
  color: var(--gold);
}

.nav-item--danger:hover {
  background: rgba(220, 53, 69, 0.12);
  color: #f87171;
}

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--black);
  font-size: 8px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 8px;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-menu-btn {
  display: none;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.page-title {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.page-date {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
}

.topbar-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  position: relative;
}

.topbar-btn:hover {
  background: #f5f5f5;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

/* ── Flash messages ──────────────────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 500;
}

.flash--success {
  background: #d1fae5;
  color: #065f46;
}

.flash--error {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 12px;
  font-weight: 500;
  color: #111;
}

.card-action {
  font-size: 10px;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
}

.card-action:hover {
  text-decoration: underline;
}

/* ── KPI grid ────────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kpi-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 14px;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.kpi-icon--gold {
  background: var(--gold-light);
  color: var(--gold);
}

.kpi-icon--blue {
  background: #e6f1fb;
  color: #185fa5;
}

.kpi-icon--green {
  background: #d1fae5;
  color: #065f46;
}

.kpi-icon--coral {
  background: #faece7;
  color: #993c1d;
}

.kpi-trend {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
}

.kpi-trend--up {
  background: #d1fae5;
  color: #065f46;
}

.kpi-trend--down {
  background: #fee2e2;
  color: #991b1b;
}

.kpi-value {
  font-size: 20px;
  font-weight: 500;
  color: #111;
  line-height: 1;
  margin-bottom: 3px;
}

.kpi-label {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
}

/* ── Grid layouts ────────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  font-size: 9px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 0 0 8px;
  text-align: left;
}

.admin-table td {
  font-size: 11px;
  color: #111;
  padding: 9px 0;
  border-top: 0.5px solid rgba(0, 0, 0, 0.07);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* ── Status badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge--active {
  background: #d1fae5;
  color: #065f46;
}

.badge--paused {
  background: #fef3c7;
  color: #92400e;
}

.badge--expired {
  background: #fee2e2;
  color: #991b1b;
}

.badge--draft {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.45);
}

.badge--review {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.badge--gold {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.badge--blue {
  background: #e6f1fb;
  color: #185fa5;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-secondary {
  background: #fff;
  color: rgba(0, 0, 0, 0.6);
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px;
}

.btn-icon--edit {
  color: rgba(0, 0, 0, 0.45);
}

.btn-icon--edit:hover {
  color: #111;
}

.btn-icon--del {
  color: #dc3545;
}

.btn-icon--del:hover {
  color: #991b1b;
}

/* ── Toggle switches ─────────────────────────────────────────────────────── */
.toggle {
  width: 34px;
  height: 18px;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle.on {
  background: var(--gold);
}

.toggle.off {
  background: rgba(0, 0, 0, 0.2);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}

.toggle.on::after {
  left: 19px;
}

.toggle.off::after {
  left: 3px;
}

/* ── Progress bars ───────────────────────────────────────────────────────── */
.prog-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.prog-fill {
  height: 100%;
  border-radius: 2px;
}

/* ── Section header ──────────────────────────────────────────────────────── */
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sec-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.gold-rule {
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  width: 24px;
  margin-bottom: 12px;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-box {
  background: rgba(0, 0, 0, 0.03);
  border: 0.5px dashed rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 14px;
}

.form-box-title {
  font-size: 11px;
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
}

.form-input {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #111;
  font-size: 11px;
  width: 100%;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── Zone map (ads) ──────────────────────────────────────────────────────── */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
}

.zone-preview {
  width: 48px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 500;
  flex-shrink: 0;
  border: 0.5px dashed;
}

.zone-name {
  font-size: 11px;
  font-weight: 500;
  color: #111;
}

.zone-dim {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
}

.zone-fill {
  min-width: 80px;
}

.zone-pct {
  font-size: 10px;
  font-weight: 500;
  color: #111;
  text-align: right;
}

/* ── Slider cards ────────────────────────────────────────────────────────── */
.slide-card {
  background: rgba(0, 0, 0, 0.02);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
}

.slide-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.slide-thumb {
  width: 56px;
  height: 36px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slide-info {
  flex: 1;
  min-width: 0;
}

.slide-title {
  font-size: 11px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-sub {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.drag-handle {
  color: rgba(0, 0, 0, 0.3);
  font-size: 14px;
  cursor: grab;
}

.order-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Annonceurs ──────────────────────────────────────────────────────────── */
.ann-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 0.5px solid rgba(0, 0, 0, 0.07);
}

.ann-row:first-child {
  border-top: none;
  padding-top: 0;
}

.ann-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  flex-shrink: 0;
}

.ann-name {
  font-size: 11px;
  font-weight: 500;
  color: #111;
  flex: 1;
}

.ann-meta {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 1px;
}

.ann-budget {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-dark);
}

/* ── Activity list ───────────────────────────────────────────────────────── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.act-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.act-text {
  font-size: 11px;
  color: #111;
  line-height: 1.4;
}

.act-time {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 1px;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: #111;
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: #065f46;
}

.toast--error {
  background: #991b1b;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: left 0.25s;
  }
  .sidebar.open {
    left: 0;
  }
  .topbar-menu-btn {
    display: flex;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .zone-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}/*# sourceMappingURL=admin.css.map */