@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================================
   MINISTÈRE VERLAINE — DESIGN SYSTEM
   Thème: Institutionnel Français Premium / République
   ============================================================ */

:root {
  --navy:        #0B1F45;
  --navy-mid:    #122754;
  --royal:       #1B3F8B;
  --cobalt:      #2758C5;
  --sky:         #4A90D9;
  --gold:        #C9A84C;
  --gold-light:  #E8C96B;
  --cream:       #F9F6F0;
  --cream-dark:  #EDE8DF;
  --white:       #FFFFFF;
  --text-body:   #2B2B3B;
  --text-muted:  #6B7A9B;
  --text-light:  #9AAAC0;
  --border:      rgba(27,63,139,0.12);
  --border-gold: rgba(201,168,76,0.3);
  --glass:       rgba(255,255,255,0.65);
  --shadow-sm:   0 2px 8px rgba(11,31,69,0.08);
  --shadow-md:   0 8px 32px rgba(11,31,69,0.12);
  --shadow-lg:   0 24px 64px rgba(11,31,69,0.18);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 24px rgba(11,31,69,0.35);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-brand-text span {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links .nav-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  margin: 0 0.5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem;
  flex: 1;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem;
  flex: 1;
}

.page-header {
  padding: 4rem 2rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-header .ornament {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1rem 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============================================================
   COMPONENTS — CARDS & PANELS
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-accent {
  border-left: 4px solid var(--gold);
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   COMPONENTS — BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(27,63,139,0.3);
}
.btn-primary:hover {
  background: var(--cobalt);
  box-shadow: 0 4px 20px rgba(27,63,139,0.4);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--royal);
  border: 1.5px solid var(--royal);
}
.btn-outline:hover {
  background: var(--royal);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-danger { background: #DC2626; color: white; }
.btn-danger:hover { background: #B91C1C; }
.btn-success { background: #16A34A; color: white; }
.btn-success:hover { background: #15803D; }

/* ============================================================
   COMPONENTS — FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-body);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(39,88,197,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   COMPONENTS — BADGES & ALERTS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-error    { background: #FEE2E2; color: #991B1B; }
.badge-blue     { background: #DBEAFE; color: #1E40AF; }
.badge-navy     { background: #1e3a6e; color: #BFD4FF; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  border-left: 4px solid currentColor;
  margin-bottom: 1.25rem;
}

.alert-error   { background: #FEF2F2; color: #B91C1C; }
.alert-success { background: #F0FDF4; color: #166534; }
.alert-info    { background: #EFF6FF; color: #1D4ED8; }
.hidden        { display: none !important; }

/* ============================================================
   COMPONENTS — TABLES
   ============================================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead {
  background: var(--navy);
  color: var(--white);
}

thead th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: none;
}

tbody tr {
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.15s;
}

tbody tr:hover { background: var(--cream); }
tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 0.9rem 1.25rem;
  color: var(--text-body);
  border: none;
}

/* ============================================================
   COMPONENTS — SECTION DIVIDERS
   ============================================================ */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin: 2rem 0;
}

.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
  margin: 0.75rem 0 1.5rem;
}

/* ============================================================
   COMPONENTS — STAT CARDS
   ============================================================ */

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--cobalt));
}

.stat-card .stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   TABS
   ============================================================ */

.tab-bar {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.tab-btn:hover { color: var(--royal); background: var(--cream); }
.tab-btn.active { color: var(--royal); border-bottom-color: var(--royal); font-weight: 600; }

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(39,88,197,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(201,168,76,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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.025'%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");
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   FEATURE CARDS (index.html highlights)
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cobalt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(11,31,69,0.2);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.feature-card p { color: var(--text-muted); font-size: 0.9375rem; }

.feature-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 1.25rem;
}

.feature-card .card-link:hover { gap: 0.6rem; }

/* ============================================================
   NEWS CARDS
   ============================================================ */

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.news-card-body { padding: 1.5rem; }
.news-card-date { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.news-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.news-card p { color: var(--text-muted); font-size: 0.9375rem; }
.news-card-accent { height: 4px; background: linear-gradient(90deg, var(--royal), var(--sky)); }

/* ============================================================
   ACADEMY CARDS
   ============================================================ */

.academy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}

.academy-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.academy-header {
  background: linear-gradient(135deg, var(--navy), var(--royal));
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.academy-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 35a15 15 0 1 0 0-30 15 15 0 0 0 0 30z' fill='%23fff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.academy-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 1rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.academy-logo img { width: 100%; height: 100%; object-fit: cover; }

.academy-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.academy-body { padding: 1.5rem; }
.academy-desc { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }

.academy-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.academy-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--royal);
  transition: all 0.2s;
}

.academy-link:hover { background: var(--royal); color: var(--white); border-color: var(--royal); }

/* ============================================================
   STAFF CARDS
   ============================================================ */

.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.25s ease;
}

.staff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--cobalt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(27,63,139,0.25);
}

.staff-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }

.staff-role {
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.staff-card p { color: var(--text-muted); font-size: 0.875rem; }

/* ============================================================
   AUTH PAGE
   ============================================================ */

.auth-page {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 30% 40%, rgba(39,88,197,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 80%, rgba(201,168,76,0.12) 0%, transparent 50%);
}

.auth-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

.auth-logo h2 { color: var(--navy); font-size: 1.5rem; }
.auth-logo p { color: var(--text-muted); font-size: 0.875rem; }

.auth-toggle {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-toggle button {
  background: none;
  border: none;
  color: var(--cobalt);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0 0.25rem;
}

.auth-toggle button:hover { color: var(--royal); text-decoration: underline; }

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */

.dashboard-welcome {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: var(--r-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--white);
}

.dashboard-welcome h2 { color: var(--white); font-size: 1.5rem; }
.dashboard-welcome p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; margin-top: 0.25rem; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 68px);
}

.admin-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
}

.admin-sidebar-title {
  padding: 0 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover { color: var(--royal); background: var(--cream); }
.admin-nav-item.active { color: var(--royal); background: rgba(27,63,139,0.06); border-left-color: var(--royal); font-weight: 600; }
.admin-nav-item .nav-icon { font-size: 1.125rem; width: 20px; text-align: center; }

.admin-content { padding: 2rem 2rem 2rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--navy-mid);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p { font-size: 0.875rem; line-height: 1.75; }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-tricolor {
  display: flex;
  height: 4px;
}

.footer-tricolor span {
  flex: 1;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 0; }
  .admin-nav-item { display: inline-flex; border-left: none; border-bottom: 3px solid transparent; }
  .admin-nav-item.active { border-left: none; border-bottom-color: var(--royal); }
  .admin-content { padding: 1.5rem 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-inner { padding: 4rem 1.5rem 3rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-sm { padding: 1.5rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .dashboard-welcome { flex-direction: column; }
}