:root {
  --bg: #f8f6f1;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #18212b;
  --muted: #5f6b76;
  --line: rgba(24, 33, 43, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.09);

  --burkina-red: #d21034;
  --burkina-green: #006a4e;
  --burkina-yellow: #f2c300;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: 1120px;
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-slide-site {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 900ms ease, transform 20s linear;
}

.bg-slide-site.active {
  opacity: 0.18;
  transform: scale(1);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(0, 106, 78, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  position: relative;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  position: relative;
  margin: 0 auto;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

body.nav-open .nav-toggle-icon {
  background: transparent;
}

body.nav-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
}

.btn-ghost {
  border: 1px solid rgba(24, 33, 43, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1146a1;
  background: #eef5ff;
  border: 1px solid #d5e6ff;
}

.hero {
  padding: 72px 0 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 14px 0 14px;
}

.hero-text p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-images {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1400ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 12px 0;
}

.lead {
  max-width: 72ch;
  color: var(--muted);
}

.gallery {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.gallery-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px;
  scroll-snap-type: x proximity;
}

.gallery-strip::-webkit-scrollbar {
  height: 7px;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: #cfd5dc;
  border-radius: 999px;
}

.gallery-item {
  flex: 0 0 290px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  scroll-snap-align: start;
  outline: none;
}

.gallery-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
}

.gallery-strip .gallery-item:nth-child(3n + 1) figcaption {
  background: var(--burkina-red);
  color: #fff;
}

.gallery-strip .gallery-item:nth-child(3n + 2) figcaption {
  background: var(--burkina-yellow);
  color: #111827;
}

.gallery-strip .gallery-item:nth-child(3n + 3) figcaption {
  background: var(--burkina-green);
  color: #fff;
}

.gallery-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.donate-section {
  padding-top: 32px;
}

.donate-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.donate-list,
.legal-list {
  padding-left: 20px;
}

.donate-list li,
.legal-list li {
  margin-bottom: 8px;
}

.donate-qr {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 18px;
}

.donate-qr img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.muted {
  color: var(--muted);
}

.legal-section {
  padding-top: 42px;
}

.legal-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.footer {
  margin-top: 40px;
  background: rgba(11, 18, 32, 0.92);
  color: #d7dfeb;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a {
  color: #eef4ff;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92%, 760px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 18px 18px 22px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-dialog img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 14px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-inner,
  .donate-card {
    grid-template-columns: 1fr;
  }

  .hero-images {
    min-height: 360px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    background: rgba(0, 106, 78, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 50px 0;
  }

  .gallery {
    gap: 8px;
  }

  .gallery-item {
    flex-basis: 82%;
  }

  .hero-images {
    min-height: 260px;
  }

  .donate-card,
  .legal-box {
    padding: 20px;
  }
}
