/* ============================================================
   RESILIENCE - Feuille de style principale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a3f6f;
  --primary-dark: #0f2847;
  --primary-light: #2c5fa8;
  --secondary: #2e8b5a;
  --secondary-light: #3daa70;
  --accent: #e07b2d;
  --accent-light: #f0923d;
  --bg: #f4f6f9;
  --bg-card: #ffffff;
  --text: #1e2d40;
  --text-light: #5a6a7e;
  --text-muted: #8a9ab0;
  --border: #dde4ee;
  --border-light: #eef1f6;
  --shadow: 0 2px 12px rgba(26,63,111,0.08);
  --shadow-md: 0 4px 24px rgba(26,63,111,0.12);
  --shadow-lg: 0 8px 40px rgba(26,63,111,0.16);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }


/* ---- NAVIGATION ---- */
.navbar {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.5px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}
.brand-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  display: block;
  line-height: 1.2;
}
.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.navbar-nav a {
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: white;
  background: rgba(255,255,255,0.12);
}
.navbar-nav .nav-admin a {
  color: rgba(255,220,120,0.85);
}
.navbar-nav .nav-admin a:hover {
  background: rgba(255,200,80,0.15);
  color: #ffd97a;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e5c8a 100%);
  color: white;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--secondary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.hero h1 span { color: #7dd4a8; }
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-style: italic;
}
.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 120px;
}
.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #7dd4a8;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,139,90,0.35);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-danger { background: #c0392b; color: white; border-color: #c0392b; }
.btn-danger:hover { background: #e74c3c; border-color: #e74c3c; color: white; }
.btn-secondary { background: var(--border); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border-light); border-color: var(--text-muted); }

/* ---- LAYOUT ---- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title + .section-lead {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- THEMES GRID ---- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.theme-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.theme-card-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.theme-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.theme-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
}
.theme-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}
.theme-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* ---- NEWS CARDS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.news-card.pinned {
  border-top: 3px solid var(--secondary);
}
.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card-image-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.4);
}
.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.news-author {
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 500;
}
.badge-pinned {
  background: rgba(46,139,90,0.12);
  color: var(--secondary);
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(46,139,90,0.25);
}
.news-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.news-card-body h3 a { color: inherit; }
.news-card-body h3 a:hover { color: var(--primary-light); }
.news-card-body p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}
.news-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* ---- ARTICLE VIEW ---- */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.article-header {
  margin-bottom: 2rem;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.article-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  max-height: 450px;
  object-fit: cover;
}
.article-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.article-content h2, .article-content h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content a { color: var(--primary-light); text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.5rem;
  background: rgba(46,139,90,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-light);
  font-style: italic;
  margin: 1.5rem 0;
}

/* ---- THEME PAGE ---- */
.theme-hero {
  padding: 3.5rem 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.theme-hero::after {
  content: attr(data-icon);
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  font-size: 10rem;
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}
.theme-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.theme-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 680px;
  line-height: 1.7;
}
.theme-labs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.lab-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ---- INFO CARDS ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.info-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.info-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.info-card p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---- PARTNERS TABLE ---- */
.partners-section { background: var(--bg-card); }
.partners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.partners-table th {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.partners-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.partners-table tr:hover td { background: rgba(26,63,111,0.03); }
.partners-table .lab-name { font-weight: 600; color: var(--primary); }
.partners-table .lab-acronym {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.partners-table-wrap { overflow-x: auto; }

/* ---- ABOUT/PROJECT PAGE ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.two-col-text { font-size: 1rem; line-height: 1.8; color: var(--text-light); }
.two-col-text h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.3rem; margin-bottom: 0.75rem; }
.two-col-text p { margin-bottom: 1rem; }

.objectives-list {
  counter-reset: objectives;
  list-style: none;
  padding: 0;
}
.objectives-list li {
  counter-increment: objectives;
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.objectives-list li::before {
  content: counter(objectives);
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.objectives-list li strong { color: var(--primary); display: block; margin-bottom: 0.25rem; }
.objectives-list li span { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ---- ADMIN ---- */
.admin-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
}
.admin-topbar {
  background: var(--primary-dark);
  color: white;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-topbar a { color: rgba(255,255,255,0.8); font-size: 0.875rem; }
.admin-topbar a:hover { color: white; }
.admin-topbar .admin-brand {
  font-weight: 700;
  color: white;
  font-size: 1rem;
  margin-right: auto;
}
.admin-body {
  display: flex;
  flex: 1;
}
.admin-sidebar {
  width: 220px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(26,63,111,0.07);
  color: var(--primary);
}
.admin-sidebar .sidebar-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 1.25rem 1.5rem 0.5rem;
  font-weight: 600;
}
.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}
.admin-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}
.admin-card-body { padding: 1.5rem; }
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44,95,168,0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: 16px; height: 16px; cursor: pointer; }
.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-box {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}
.login-box h1 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}
.login-box p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.75rem; }

/* ---- ALERTS ---- */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ---- ADMIN TABLE ---- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(26,63,111,0.02); }
.admin-table .actions { display: flex; gap: 0.5rem; align-items: center; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-published { background: #d4edda; color: #155724; }
.status-draft { background: #f8f7f0; color: #856404; border: 1px solid #ffc107; }

/* ---- WYSIWYG / RICHTEXT ---- */
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.rich-toolbar button {
  padding: 0.35rem 0.65rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
  transition: all 0.15s;
}
.rich-toolbar button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.rich-editor {
  width: 100%;
  min-height: 350px;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  background: white;
  transition: border-color 0.15s;
}
.rich-editor:focus { border-color: var(--primary-light); }

/* ---- FOOTER ---- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand strong {
  display: block;
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.65; }
.footer h4 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-logos {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.footer-logo-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: linear-gradient(135deg, rgba(26,63,111,0.07), rgba(46,139,90,0.07));
  border: 1px solid rgba(26,63,111,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}
.highlight-box h3 { font-family: var(--font-display); color: var(--primary); margin-bottom: 1rem; }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}
.pagination a { background: white; border: 1px solid var(--border); color: var(--primary-light); }
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination span { background: var(--primary); color: white; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 0.65rem 1rem; font-size: 0.9rem; }
  .hamburger { display: block; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-stats { gap: 0.75rem; }
  .hero-stat { padding: 0.75rem 1rem; }
  .hero-stat strong { font-size: 1.4rem; }
  .section { padding: 2.5rem 0; }
  .themes-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 1.25rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-stat { min-width: 100px; }
  .btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
  .article-container { padding: 1.5rem 1rem 3rem; }
}

/* ─── DROPDOWN NAV ──────────────────────────────────────── */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  min-width: 220px;
  padding: .5rem 0;
  box-shadow: var(--shadow-lg);
  list-style: none;
  z-index: 200;
}
.has-dropdown .dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(255,255,255,.12);
  border-top: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.has-dropdown .dropdown a {
  display: block;
  padding: .55rem 1.1rem;
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  border-radius: 0;
  transition: var(--transition);
}
.has-dropdown .dropdown a:hover {
  background: rgba(255,255,255,.1);
  color: white;
}
.nav-arrow { font-size: .65rem; opacity: .7; margin-left: .2rem; }
.nav-dropdown-toggle { cursor: default; }

/* ─── LANGUAGE TOGGLE ───────────────────────────────────── */
.nav-lang { margin-left: .25rem; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: .3rem .75rem;
  color: white !important;
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(255,255,255,.2);
  color: white !important;
}
.lang-label { font-size: .78rem; letter-spacing: .03em; }

/* ─── THEME PAGE TABS ───────────────────────────────────── */
.theme-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.theme-tab {
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}
.theme-tab:hover { color: var(--primary); }
.theme-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ─── RESPONSIVE ADDITIONS ──────────────────────────────── */
@media (max-width: 768px) {
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(255,255,255,.2);
    border-radius: 0;
    margin-left: 1rem;
    padding: 0;
    background: transparent;
  }
  .has-dropdown .dropdown::before { display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-dropdown-toggle::after { content: ''; }
}
