/* ============================================================================
   OSINT Platform v5.0 — Design System CSS
   Design pixel-perfect conforme aux spécifications
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --blue:         #4a7cf0;
  --blue-hover:   #2d5dcc;
  --blue-light:   #e8eeff;
  --indigo:       #6366f1;
  --indigo-dark:  #4f46e5;
  --purple:       #7c3aed;
  --orange:       #f97316;
  --bg:           #f0f2f5;
  --card:         #ffffff;
  --card-border:  #e0e3e8;
  --veille-from:  #5c5fc4;
  --veille-to:    #7c3aed;
  --veille-card:  #4c3d9e;
  --login-bg:     #7c6fd0;
  --txt-dark:     #1a1f36;
  --txt-gray:     #6b7280;
  --txt-muted:    #9ca3af;
  --txt-white:    #ffffff;
  --green:        #22c55e;
  --red:          #ef4444;
  --amber:        #f59e0b;
  --footer-bg:    #1e2235;
  --navbar-h:     56px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--txt-dark);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-hover); }

code, pre, .terminal, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
}

img { max-width: 100%; }

/* ── Layout ────────────────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main { flex: 1; }

/* ── NAVBAR ────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.navbar-logo strong { color: var(--blue); }

.badge-version {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-muted);
  margin-left: 2px;
}
.badge-dev {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
  margin-left: 2px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-gray);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
}
.nav-link.active {
  border-bottom: 2px solid var(--blue);
}

.btn-connexion {
  background: var(--indigo);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
}
.btn-connexion:hover { background: var(--indigo-dark); }

.navbar-user { display: flex; align-items: center; gap: 12px; }
.btn-admin {
  background: var(--indigo);
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
}
.btn-admin:hover { background: var(--indigo-dark); }
.btn-logout {
  color: var(--txt-gray) !important;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}
.btn-logout:hover { color: var(--red) !important; }

/* ── HERO BANNER ───────────────────────────────────────────────────── */
.hero-banner {
  height: 220px;
  background:
    linear-gradient(135deg, #0d1b2a 0%, #1a2d4a 50%, #0d1b2a 100%);
  background-image:
    repeating-linear-gradient(0deg, rgba(74,124,240,.05) 0px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(74,124,240,.05) 0px, transparent 1px, transparent 40px),
    linear-gradient(135deg, #0d1b2a 0%, #1a2d4a 50%, #0d1b2a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-logo { display: flex; align-items: baseline; gap: 0; }
.hero-dot     { font-size: 48px; color: var(--blue); line-height: 1; }
.hero-sint    { font-size: 42px; font-weight: 900; color: var(--blue); line-height: 1; }
.hero-platform{ font-size: 38px; font-weight: 900; color: #fff; line-height: 1; }

.hero-sep {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,.3);
  margin: 0 30px;
  flex-shrink: 0;
}

.hero-right { display: flex; flex-direction: column; gap: 4px; }
.hero-version {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 600;
}
.hero-tagline {
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 4px;
  line-height: 1.4;
  display: inline-block;
}

/* ── STAT CARDS ────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.stat-icon { font-size: 36px; opacity: .65; display: block; margin-bottom: 12px; }
.stat-value { font-size: 36px; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--txt-gray); margin-top: 6px; }
.stat-sub   { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 4px; }
.stat-sub-link { font-size: 12px; font-weight: 600; color: var(--blue); display: block; margin-top: 4px; }

/* 5 colonnes pour l'admin */
.stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

/* ── PANEL VEILLE OSINT ────────────────────────────────────────────── */
.veille-panel {
  background: linear-gradient(135deg, var(--veille-from) 0%, var(--indigo) 50%, var(--veille-to) 100%);
  border-radius: 16px;
  padding: 28px;
  margin: 0 0 24px;
}

.veille-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}
.veille-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.veille-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.veille-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin-top: 4px;
}

.veille-subcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.veille-subcard {
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.veille-subcard:hover { background: rgba(255,255,255,.1); }
.veille-subcard-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.veille-subcard-stats {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  gap: 12px;
}
.veille-subcard-date {
  color: rgba(255,255,255,.6);
  font-size: 11px;
  margin-top: 4px;
}

.veille-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn-outline-white {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ── SECTION TITLE ──────────────────────────────────────────────────── */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--txt-dark);
  margin: 32px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── ARTICLE CARDS ─────────────────────────────────────────────────── */
.article-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.article-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.badge-source {
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.article-date {
  color: var(--txt-muted);
  font-size: 12px;
  font-weight: 600;
}

.article-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--txt-dark);
  margin: 10px 0 8px;
  line-height: 1.4;
}
.article-title a { color: inherit; }
.article-title a:hover { color: var(--blue); }

.article-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.badge-cat {
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.article-author { color: var(--txt-gray); font-size: 13px; font-weight: 600; }

.article-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag-pill {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

.article-excerpt {
  color: var(--txt-gray);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-lire {
  background: var(--indigo);
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-lire:hover { background: var(--indigo-dark); }
.article-source-link { color: var(--txt-muted); font-size: 13px; }
.article-source-link:hover { color: var(--indigo); }

/* ── VEILLE PAGE — CATEGORY CARDS ──────────────────────────────────── */
.veille-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.category-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99,102,241,.15);
  color: inherit;
}
.category-icon { font-size: 44px; display: block; margin-bottom: 12px; }
.category-name { font-size: 17px; font-weight: 800; color: var(--txt-dark); margin-bottom: 4px; }
.category-desc { font-size: 13px; color: var(--txt-gray); margin-bottom: 12px; }
.badge-count {
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}
.category-link { color: var(--blue); font-size: 14px; font-weight: 700; }

/* ── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-1px); color: #fff; }
.btn-secondary { background: var(--blue-light); color: var(--blue); }
.btn-secondary:hover { background: #d4e0fd; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; color: var(--txt-gray); border: 1px solid var(--card-border); }
.btn-outline:hover { background: var(--bg); color: var(--txt-dark); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-cta {
  background: var(--indigo);
  color: #fff;
  border-radius: 8px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 800;
  display: block;
  margin: 32px auto;
  text-align: center;
  width: fit-content;
}

/* ── PAGE DE CONNEXION ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--login-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.login-logo-title { font-size: 28px; font-weight: 900; }
.login-logo-title .blue  { color: var(--blue); }
.login-logo-title .indigo { color: var(--indigo); }
.login-subtitle { font-size: 13px; color: var(--txt-muted); margin-top: 4px; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-control:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.btn-login {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s, transform .2s;
  font-family: 'Nunito', sans-serif;
}
.btn-login:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.login-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}
.login-back:hover { text-decoration: underline; color: var(--indigo); }
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-info { background: var(--blue-light); color: #1e40af; border: 1px solid #93c5fd; }

/* ── ADMIN LAYOUT ───────────────────────────────────────────────────── */
.admin-layout {
  background: var(--bg);
  min-height: calc(100vh - var(--navbar-h) - 56px);
  padding: 32px 20px;
}
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--txt-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-subtitle { font-size: 14px; color: var(--txt-gray); margin-top: 4px; }
.admin-header-links { display: flex; align-items: center; gap: 20px; }
.admin-back-link { color: var(--txt-gray); font-size: 14px; font-weight: 600; }
.admin-back-link:hover { color: var(--blue); }
.admin-logout-link { color: var(--orange); font-size: 14px; font-weight: 600; }
.admin-logout-link:hover { color: #dc2626; }
.admin-sep { border: none; border-bottom: 1px solid var(--card-border); margin: 16px 0 24px; }

/* Admin section headers */
.admin-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--txt-dark);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-subsection-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--txt-gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 28px 0 16px;
}

/* Admin module cards */
.admin-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.admin-module-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.admin-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99,102,241,.15);
  border-color: var(--indigo);
  color: inherit;
}
.admin-module-card.active {
  border-color: var(--indigo);
  box-shadow: 0 4px 16px rgba(99,102,241,.2);
}
.admin-module-card.active .module-title { color: var(--indigo); }
.module-icon { font-size: 48px; display: block; margin: 0 auto 14px; }
.module-title { font-size: 16px; font-weight: 800; color: var(--txt-dark); margin-bottom: 6px; }
.module-desc  { font-size: 13px; color: var(--txt-gray); }
.module-stat  { font-size: 13px; font-weight: 600; color: var(--blue); display: block; margin-top: 8px; }

/* ── TABLES ─────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.data-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--card-border);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.data-table tbody tr { border-bottom: 1px solid var(--bg); transition: .15s; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody td { padding: 12px 16px; font-size: 14px; color: #374151; }

/* ── TERMINAL ───────────────────────────────────────────────────────── */
.terminal-panel {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.terminal-bar {
  background: #1c2128;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-bar::before { content: '●'; color: #ef4444; font-size: 12px; }
.terminal-dots { content: '●'; color: #f59e0b; font-size: 12px; }
.terminal-body {
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #f8fafc;
}
.t-prompt  { color: #22c55e; }
.t-cmd     { color: #f8fafc; }
.t-flag    { color: #f59e0b; }
.t-arg     { color: #60a5fa; }
.t-ok      { color: #22c55e; }
.t-info    { color: #60a5fa; }
.t-warn    { color: #f59e0b; }
.t-comment { color: #6b7280; }
.t-string  { color: #a3e635; }

/* ── OSINT TOOLS ────────────────────────────────────────────────────── */
.osint-search-hero {
  background: linear-gradient(135deg, var(--veille-from), var(--purple));
  padding: 40px 0;
  color: #fff;
  margin-bottom: 32px;
}
.osint-search-hero h1 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.osint-search-hero p { opacity: .85; font-size: 15px; }

.search-type-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.search-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--card-border);
  background: var(--card);
  color: var(--txt-gray);
  cursor: pointer;
  transition: all .2s;
}
.search-tab:hover, .search-tab.active {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

.search-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.search-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--txt-dark); }

.input-group { display: flex; gap: 10px; }
.input-group .form-control { flex: 1; }

.results-area {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  min-height: 200px;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
}
.result-icon { font-size: 20px; }
.result-status-found { color: var(--green); font-weight: 700; font-size: 12px; }
.result-status-not { color: var(--txt-muted); font-size: 12px; }

/* ── OPSEC BARS ────────────────────────────────────────────────────── */
.opsec-bar-wrapper { margin-bottom: 14px; }
.opsec-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.opsec-track { background: var(--bg); border-radius: 20px; height: 8px; overflow: hidden; }
.opsec-fill  { height: 100%; border-radius: 20px; transition: width .8s ease; }

/* ── CARD GENERIC ───────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  margin-bottom: 16px;
}

/* ── PAGINATION ─────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0; }
.page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--txt-gray);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ── BADGES ─────────────────────────────────────────────────────────── */
.badge { padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-blue   { background: var(--blue-light); color: #1e40af; }
.badge-indigo { background: var(--indigo); color: #fff; }
.status-dot   { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-red   { background: var(--red); }
.dot-amber { background: var(--amber); }

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 18px 20px;
  margin-top: auto;
  width: 100%;
}

/* ── TOASTS ─────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .3s ease;
}
.toast-success { background: #dcfce7; color: #166534; border-left: 4px solid var(--green); }
.toast-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--red); }
.toast-info    { background: var(--blue-light); color: #1e40af; border-left: 4px solid var(--blue); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-modules-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .veille-categories { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .veille-subcards { grid-template-columns: 1fr; }
  .admin-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .veille-categories { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 0 24px; }
  .hero-sint { font-size: 32px; }
  .hero-platform { font-size: 28px; }
  .navbar-inner { gap: 12px; }
}

@media (max-width: 480px) {
  .stats-grid, .stats-grid-5, .veille-categories, .admin-modules-grid { grid-template-columns: 1fr; }
  .login-card { width: 100%; max-width: 360px; }
  .search-type-tabs { gap: 6px; }
}
