/* ═══════════════════════════════════════════════════════════════
   DEREPOSTEL-LITTORAL — Styles Publics Modernes
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── Variables CSS ─────────────────────────────────────────── */
:root {
  --primary:       #1a5276;
  --primary-dark:  #0f2f44;
  --primary-light: #2e86c1;
  --accent:        #d4ac0d;
  --accent-light:  #f4d03f;
  --green:         #1e8449;
  --red:           #c0392b;
  --text-dark:     #1a1a2e;
  --text-mid:      #4a5568;
  --text-light:    #718096;
  --bg:            #f0f4f8;
  --bg-card:       #ffffff;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 25px rgba(0,0,0,.12), 0 4px 6px rgba(0,0,0,.07);
  --shadow-xl:     0 20px 40px rgba(0,0,0,.15);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    all .25s cubic-bezier(.4,0,.2,1);
  --navbar-h:      85px;
  --sidebar-w:     280px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════
   TOPBAR ANNOUNCEMENT
   ═══════════════════════════════════════════════════════════════ */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-links { display: flex; gap: 12px; }
.topbar-links a {
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  transition: var(--transition);
}
.topbar-links a:hover { color: var(--accent-light); }
@media (max-width: 640px) { .topbar { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: white;
  padding: 2px;
}
.logo:hover .logo-emblem { transform: rotate(-5deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title {
  font-size: 1rem; font-weight: 800;
  color: var(--primary);
  letter-spacing: -.3px;
}
.logo-subtitle {
  font-size: .65rem; font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-links .nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none; background: none;
}
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  background: rgba(26,82,118,.08);
  color: var(--primary);
}
.nav-links .nav-link.active { font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px;
  z-index: 2000;
  animation: fadeDown .2s ease;
}
@keyframes fadeDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: .83rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-dropdown-menu a:hover { background: rgba(26,82,118,.07); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - var(--navbar-h));
  box-shadow: var(--shadow-xl);
}
.mobile-menu.open { display: block; animation: fadeDown .25s ease; }
.mobile-menu .nav-link {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: .9rem; font-weight: 500;
  cursor: pointer; border: none; background: none;
  transition: var(--transition);
}
.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  background: rgba(26,82,118,.08);
  color: var(--primary);
}
.mobile-menu-section { margin-bottom: 8px; }
.mobile-menu-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  color: var(--text-light); letter-spacing: 1px;
  padding: 8px 16px 4px;
}


/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 24px;
  overflow: hidden;
  text-align: center;
  color: white;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,172,13,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.hero-pattern {
  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.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-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.9);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--accent-light); }
.hero p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap; margin-top: 40px;
}
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  min-width: 120px;
}
.hero-stat-num {
  display: block; font-size: 1.8rem; font-weight: 800;
  color: var(--accent-light);
}
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
  flex: 1;
}
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1024px) {
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar-col { order: -1; }
}

/* ─── Page Header ───────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.page-header-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.page-header h2 {
  font-size: 1.5rem; font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}
.page-header p {
  color: var(--text-light); font-size: .87rem; margin-top: 4px;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-body { padding: 24px; }

/* ─── News Cards ────────────────────────────────────────────── */
.news-grid { display: grid; gap: 20px; }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.news-card-header::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.news-badge-chip {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: white;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.news-card-header h3 {
  color: white; font-size: 1rem; font-weight: 700;
  line-height: 1.4;
}
.news-card-body { padding: 20px; flex: 1; }
.news-card-body p { color: var(--text-mid); font-size: .88rem; line-height: 1.7; }
.news-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-light);
}
.news-card-footer .read-more {
  color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  cursor: pointer;
}
.news-card-footer .read-more:hover { color: var(--primary-light); }

/* ─── Page Hero Section ─────────────────────────────────────── */
.page-hero-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.page-hero-section::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.page-hero-section h2 {
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 10px;
}
.page-hero-section .lead {
  color: rgba(255,255,255,.8); font-size: .95rem;
  position: relative;
}

.news-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.news-highlight:hover { box-shadow: var(--shadow-md); }
.news-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.news-highlight h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.news-highlight p { color: var(--text-mid); font-size: .88rem; line-height: 1.7; }

/* ─── Info Cards (in pages) ─────────────────────────────────── */
.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
}
.info-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.info-card ul { display: flex; flex-direction: column; gap: 8px; }
.info-card ul li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--text-mid); font-size: .88rem; padding-left: 16px;
  position: relative;
}
.info-card ul li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--primary);
}
.info-card p { color: var(--text-mid); font-size: .9rem; }
.info-card a { color: var(--primary); font-weight: 600; }

/* ─── Contact Grid ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px; text-align: center;
  transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card h3 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.contact-card p { color: var(--text-mid); font-size: .85rem; line-height: 1.6; }
.contact-card a { color: var(--primary); font-weight: 600; }

/* ─── Content Area ──────────────────────────────────────────── */
.content-area h2 {
  font-size: 1.4rem; font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sidebar-col { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 14px 18px;
  color: white;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-card-body { padding: 16px; }

/* Quick Nav */
.quick-nav { display: flex; flex-direction: column; gap: 4px; }
.quick-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .84rem; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
  border: none; background: none; text-align: left; width: 100%;
}
.quick-nav-item:hover,
.quick-nav-item.active {
  background: rgba(26,82,118,.08);
  color: var(--primary);
}
.quick-nav-item span.icon { font-size: 1rem; flex-shrink: 0; }

/* Useful Links */
.useful-links { display: flex; flex-direction: column; gap: 8px; }
.useful-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: .83rem; font-weight: 500;
  transition: var(--transition);
  background: var(--bg);
}
.useful-link:hover { background: var(--primary); color: white; border-color: var(--primary); }
.useful-link:hover .useful-link-arrow { color: white; }
.useful-link-icon { font-size: 1.1rem; }
.useful-link-text { flex: 1; }
.useful-link-arrow { color: var(--text-light); font-size: .75rem; }

/* ═══════════════════════════════════════════════════════════════
   ARTICLES LIST
   ═══════════════════════════════════════════════════════════════ */
.articles-list { display: flex; flex-direction: column; gap: 16px; }
.article-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
}
.article-item:hover { box-shadow: var(--shadow-md); transform: translateX(3px); border-left: 3px solid var(--primary); }
.article-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.article-category {
  background: rgba(26,82,118,.1);
  color: var(--primary);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 3px 10px; border-radius: 100px;
}
.article-date { font-size: .76rem; color: var(--text-light); }
.article-item h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.article-item p { font-size: .86rem; color: var(--text-mid); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,.8);
  margin-top: auto;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-emblem {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: white;
  padding: 2px;
}
.footer-logo-title { font-size: 1rem; font-weight: 800; color: white; }
.footer-logo-sub { font-size: .68rem; color: rgba(255,255,255,.6); }
.footer-desc {
  font-size: .84rem; line-height: 1.7;
  color: rgba(255,255,255,.65);
  max-width: 340px;
}
.footer-heading {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .84rem;
  transition: var(--transition);
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent-light); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL / ARTICLE VIEW
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 24px;
  color: white;
  position: relative;
}
.modal-header h2 { font-size: 1.2rem; font-weight: 700; padding-right: 32px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.2);
  border: none; border-radius: 50%;
  color: white; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,.35); }
.modal-content { padding: 28px; }
.modal-content p { color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; }
.modal-content h3 { color: var(--primary-dark); font-size: 1.05rem; margin: 20px 0 10px; }
.modal-content ul { margin: 0 0 16px 20px; }
.modal-content ul li { color: var(--text-mid); margin-bottom: 6px; font-size: .9rem; }
.modal-content strong { color: var(--text-dark); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 14px rgba(26,82,118,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,82,118,.4); }
.btn-secondary {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mid);
}
.btn-secondary:hover { background: var(--border); color: var(--text-dark); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a2e;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,172,13,.4); }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--text-light);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-mid); margin-bottom: 8px; }
.empty-state p { font-size: .87rem; }

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 12px;
}
.toast {
  background: var(--text-dark);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: .87rem; font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease;
  min-width: 280px; max-width: 380px;
}
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* ═══════════════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════════════ */
.page-loader {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .main-container { padding: 20px 16px; }
  .hero { padding: 48px 16px; }
  .hero-stats { gap: 16px; }
  .hero-stat { min-width: 100px; padding: 12px 16px; }
  .card-body { padding: 16px; }
  .page-header { gap: 12px; }
  .page-header-icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .page-header h2 { font-size: 1.2rem; }
}

/* ─── Animations ────────────────────────────────────────────── */
.fade-in { animation: fadeIn .4s ease; }
.slide-in { animation: slideUp .35s ease; }

/* ─── Dynamically hide Admin Link on Homepage ───────────────── */
body.page-accueil .admin-link {
  display: none !important;
}

/* ─── Search bar ────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  gap: 8px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,82,118,.12); }
.search-bar input {
  border: none; background: none;
  padding: 9px 4px;
  font-size: .85rem; color: var(--text-dark);
  font-family: inherit;
  outline: none; width: 160px;
}
.search-bar svg { color: var(--text-light); flex-shrink: 0; }

/* ─── Accessibility ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ─── Image Slider (Accueil) ────────────────────────────────── */
.home-slider {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  background: #000;
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.slide.active img {
  transform: scale(1.04);
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: white;
  padding: 32px 24px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  z-index: 3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: inherit;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  outline: none;
}
.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(26,82,118,0.4);
}
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.1);
}
.slider-dots .dot:hover {
  background: rgba(255,255,255,0.7);
}
.slider-dots .dot.active {
  background: var(--accent-light);
  width: 24px;
  border-radius: 5px;
}

/* ─── Language Switcher ─────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.lang-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 4px;
  transition: var(--transition);
}
.lang-btn:hover {
  color: var(--primary);
  background: rgba(26, 82, 118, 0.05);
}
.lang-btn.active {
  color: white;
  background: var(--primary);
}
.lang-separator {
  color: var(--border);
  font-size: 0.72rem;
  margin: 0 1px;
}


@media (max-width: 768px) {
  .home-slider { height: 280px !important; margin-bottom: 20px !important; }
  .slide-caption { font-size: 0.9rem !important; padding: 24px 16px 16px !important; }
  .slider-arrow { width: 36px !important; height: 36px !important; font-size: 1.4rem !important; }
  .slider-arrow.prev { left: 10px !important; }
  .slider-arrow.next { right: 10px !important; }
}
@media (max-width: 480px) {
  .home-slider { height: 220px !important; }
  .slider-arrow { display: none !important; }
}

@media (max-width: 1280px) {
  .nav-links .nav-link {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .logo-subtitle { display: none !important; }
  .logo-emblem { width: 32px !important; height: 32px !important; font-size: 1rem !important; }
  .logo-title { font-size: 0.8rem !important; }
  .logo { gap: 6px !important; }
  .navbar-inner { gap: 8px !important; padding: 0 10px !important; }
  .search-bar { padding: 0 6px !important; gap: 4px !important; }
  .search-bar input { width: 60px !important; padding: 4px 2px !important; }
  .search-bar input:focus { width: 90px !important; }
}

/* ─────────────────────────────────────────────────────────────
   ORGANIGRAMME / ORGANIZATIONAL CHART
   ───────────────────────────────────────────────────────────── */
.org-container {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.org-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.org-level-1 {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.org-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  min-width: 180px;
  z-index: 10;
}

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

.root-card {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  min-width: 250px;
}

.root-card .org-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.root-card .org-card-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.org-vertical-line {
  width: 2px;
  height: 30px;
  background: var(--border);
  position: relative;
}

.org-level-2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  position: relative;
  padding-top: 20px;
}

/* Horizontal line connector for desktop */
.org-level-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}

.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Vertical lines from the top horizontal connector to the services */
.org-branch::before {
  content: '';
  position: absolute;
  top: -20px;
  width: 2px;
  height: 20px;
  background: var(--border);
}

.service-card {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 14px 10px;
}

.org-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.org-card-acronym {
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 4px;
}

.org-card-extra {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
  line-height: 1.2;
}

.org-sub-line {
  width: 2px;
  height: 20px;
  background: var(--border);
}

.org-level-3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bureau-card {
  padding: 12px 8px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.bureau-card .org-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
}

.bureau-card .org-card-acronym {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Color Coding Themes matching the image */
/* 1. Purple: SCE */
.branch-purple .service-card {
  background: linear-gradient(135deg, #7d3c98, #af7ac5);
  border-color: #7d3c98;
  color: white;
}
.branch-purple .service-card .org-card-title { color: white; }
.branch-purple .bureau-card {
  border-left: 3px solid #7d3c98;
  background: rgba(125, 60, 152, 0.05);
}
.branch-purple .bureau-card .org-card-acronym { color: #7d3c98; }

/* 2. Green: SAG */
.branch-green .service-card {
  background: linear-gradient(135deg, #1e8449, #58d68d);
  border-color: #1e8449;
  color: white;
}
.branch-green .service-card .org-card-title { color: white; }
.branch-green .bureau-card {
  border-left: 3px solid #1e8449;
  background: rgba(30, 132, 73, 0.05);
}
.branch-green .bureau-card .org-card-acronym { color: #1e8449; }

/* 3. Gold: SSAP */
.branch-gold .service-card {
  background: linear-gradient(135deg, #b7950b, #f4d03f);
  border-color: #b7950b;
  color: #1a1a2e;
}
.branch-gold .service-card .org-card-title { color: #1a1a2e; }
.branch-gold .bureau-card {
  border-left: 3px solid #b7950b;
  background: rgba(183, 149, 11, 0.05);
}
.branch-gold .bureau-card .org-card-acronym { color: #b7950b; }

/* 4. Blue: BRC */
.branch-blue .service-card {
  background: linear-gradient(135deg, #1f618d, #5dade2);
  border-color: #1f618d;
  color: white;
}
.branch-blue .service-card .org-card-title { color: white; }
.branch-blue .bureau-card {
  border-left: 3px solid #1f618d;
  background: rgba(31, 97, 141, 0.05);
}
.branch-blue .bureau-card .org-card-acronym { color: #1f618d; }

/* 5. Brown: SSRSI */
.branch-brown .service-card {
  background: linear-gradient(135deg, #a04000, #dc7633);
  border-color: #a04000;
  color: white;
}
.branch-brown .service-card .org-card-title { color: white; }
.branch-brown .bureau-card {
  border-left: 3px solid #a04000;
  background: rgba(160, 64, 0, 0.05);
}
.branch-brown .bureau-card .org-card-acronym { color: #a04000; }

/* Responsive Organigram for Tablet and Mobile */
@media (max-width: 1024px) {
  .org-level-2 {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 0;
  }
  
  .org-level-2::before {
    display: none;
  }
  
  .org-branch::before {
    display: none;
  }
  
  .org-branch {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--bg-card);
  }
  
  .service-card {
    min-height: auto;
  }
  
  .org-level-3 {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }
  
  .org-sub-line {
    display: none;
  }
}

@media (max-width: 480px) {
  .org-level-3 {
    grid-template-columns: 1fr;
  }
}

/* ─── Galerie Publique & Lightbox ───────────────────────────── */
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-filter-btn {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.gallery-effects-panel {
  display: flex;
  gap: 12px;
}
.gallery-effect-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-effect-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.gallery-effect-btn.active {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

/* Grille et cartes */
.gallery-events-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.gallery-event-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}
.gallery-event-title-wrap {
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gallery-event-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.gallery-event-date {
  font-size: 0.8rem;
  color: var(--text-light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}
.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-card:hover .gallery-card-img-wrap img {
  transform: scale(1.05);
}
.gallery-card-info {
  padding: 14px;
  flex: 1;
}
.gallery-card-caption {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* Effet Noir & Blanc */
.gallery-grayscale img {
  filter: grayscale(100%);
}
.gallery-grayscale .gallery-card:hover img {
  filter: grayscale(0%);
}

/* Thème Sombre ("Blanc sur Noir") pour la galerie */
.gallery-dark-theme-wrapper {
  background: #0d1117;
  color: #f0f6fc;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid #30363d;
  box-shadow: var(--shadow-xl);
}
.gallery-dark-theme-wrapper .gallery-toolbar {
  background: #161b22;
  border-color: #30363d;
}
.gallery-dark-theme-wrapper .gallery-filter-btn {
  background: #21262d;
  border-color: #30363d;
  color: #c9d1d9;
}
.gallery-dark-theme-wrapper .gallery-filter-btn:hover,
.gallery-dark-theme-wrapper .gallery-filter-btn.active {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}
.gallery-dark-theme-wrapper .gallery-effect-btn {
  background: #21262d;
  border-color: #30363d;
  color: #c9d1d9;
}
.gallery-dark-theme-wrapper .gallery-effect-btn:hover {
  border-color: var(--primary-light);
  color: white;
}
.gallery-dark-theme-wrapper .gallery-effect-btn.active {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}
.gallery-dark-theme-wrapper .gallery-event-title-wrap {
  border-color: #30363d;
}
.gallery-dark-theme-wrapper .gallery-event-title {
  color: #58a6ff;
}
.gallery-dark-theme-wrapper .gallery-event-date {
  color: #8b949e;
}
.gallery-dark-theme-wrapper .gallery-card {
  background: #161b22;
  border-color: #30363d;
}
.gallery-dark-theme-wrapper .gallery-card:hover {
  border-color: #8b949e;
}
.gallery-dark-theme-wrapper .gallery-card-caption {
  color: #c9d1d9;
}

/* Lightbox interactive */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
.lightbox-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
.lightbox-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lightbox-event {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-light);
}
.lightbox-count {
  font-size: 0.8rem;
  color: #ccc;
}
.lightbox-close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}
.lightbox-body-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin: 16px 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: var(--radius-sm);
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10010;
}
.lightbox-nav-btn:hover {
  background: rgba(255,255,255,0.25);
  color: var(--accent-light);
}
.lightbox-nav-btn.prev {
  left: 0;
}
.lightbox-nav-btn.next {
  right: 0;
}
@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}
.lightbox-footer {
  width: 100%;
  max-width: 800px;
  text-align: center;
  color: white;
  padding: 16px;
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-caption {
  font-size: 0.95rem;
  line-height: 1.5;
}
