:root {
  --green-900: #0f5436;
  --green-700: #1a8c4a;
  --green-100: #e8f5e9;
  --yellow-500: #ff9900;
  --red-500: #d84b36;
  --ink: #162019;
  --muted: #647067;
  --paper: #fffdf7;
  --white: #ffffff;
  --line: rgba(18, 51, 34, 0.14);
  --shadow: 0 24px 70px rgba(18, 51, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  padding-top: 90px;
  background:
    linear-gradient(90deg, rgba(18, 51, 34, 0.96) 0%, rgba(18, 51, 34, 0.82) 42%, rgba(18, 51, 34, 0.08) 100%),
    url("../assets/uploads/pexels-lagosfoodbank-9968380.jpg") center / cover no-repeat;
  color: var(--white);
}

.page-header {
  width: 100%;
  max-width: none;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 51, 34, 0.96) 0%, rgba(18, 51, 34, 0.82) 52%, rgba(18, 51, 34, 0.28) 100%),
    url("../assets/gallery/soutien-scolaire/soutien-scolaire.jpeg") top / cover no-repeat;
  color: var(--white);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(18, 96, 76, 0.98);
  backdrop-filter: blur(16px);
}

.brand-bar {
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(18, 51, 34, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  width: 120px;
  height: 120px;
  border-radius: 100%;
  object-fit: cover;
  background: var(--white);
}

.brand small {
  display: block;
  margin-top: -4px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(18, 96, 76, 0.94);
  backdrop-filter: blur(16px);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  font: inherit;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.has-dropdown:hover > .nav-link,
.has-dropdown.is-open > .nav-link {
  background: #1ea1b3;
  color: var(--white);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 250px;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(18, 96, 76, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.is-open > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #1ea1b3;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.62fr);
  align-items: center;
  gap: 48px;
  padding: 40px 0 90px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow-500);
  font-weight: 800;
  /* text-transform: uppercase; */
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
article h3,
p {
  overflow-wrap: anywhere;
}

/* Headings and paragraphs: use project color tokens */
h1,
h2 {
  color: var(--green-100);
}

h3 {
  overflow-wrap: anywhere;
  color: var(--green-900);
}

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

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.14rem;
}

.hero-actions,
.contact-form .btn {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--green-900);
  background: var(--yellow-500);
  box-shadow: 0 16px 38px rgba(246, 201, 69, 0.24);
}

.btn-secondary {
  margin-left: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-media {
  min-height: 520px;
}

.project-hero,
.page-hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  align-items: end;
  gap: 42px;
  padding: 120px 0 110px;
}

.project-hero h1,
.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.project-shortcuts {
  display: grid;
  gap: 12px;
}

.project-shortcuts a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 900;
}

.project-shortcuts a::after {
  content: ">";
  color: var(--yellow-500);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2,
.impact-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
}

.presentation-section {
  padding-bottom: 56px;
}

.presentation-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.presentation-text {
  max-width: 920px;
}

.presentation-text p {
  margin: 0 0 18px;
  color: var(--muted);
}

.presentation-text strong {
  color: var(--green-900);
}

.presentation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 0;
  margin: 22px 0 24px;
  list-style: none;
}

.presentation-list li {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--green-900);
  background: var(--green-100);
  font-weight: 800;
}

.presentation-text .presentation-closing {
  margin-bottom: 0;
  color: var(--green-900);
  font-weight: 900;
}

.country-section {
  padding-top: 40px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.country-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf6 100%);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.country-feature-content h3 {
  margin: 0 0 12px;
  color: var(--green-900);
  font-size: 1.25rem;
}

.country-feature-content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.country-borders {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--green-900);
}

.country-borders strong {
  color: var(--green-700);
}

.country-map-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fcf8;
}

.togo-map {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: #dbeafe;
}

.togo-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.map-loading,
.map-error {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  color: var(--green-900);
  text-align: center;
  font-weight: 700;
}

.map-error {
  color: #a33a3a;
  background: #fff2f2;
}

.map-attribution {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.map-marker {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d21034;
  box-shadow: 0 0 0 2px #d21034;
}

.map-label {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--green-900);
  font-weight: 700;
}

@media (max-width: 900px) {
  .country-feature-card {
    grid-template-columns: 1fr;
  }
}

.country-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.country-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.country-grid strong {
  display: block;
  color: var(--green-900);
  font-size: 1.02rem;
  line-height: 1.35;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.intro-grid article,
.action-card,
.values-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.intro-grid article {
  padding: 28px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 900;
}

.intro-grid h3,
.action-card h3,
.values-list h3 {
  margin: 22px 0 8px;
  color: var(--green-900);
  font-size: 1.2rem;
}

.intro-grid p,
.action-card p,
.values-list p,
.impact-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.actions {
  padding-top: 40px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.action-card {
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.action-top span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 0.8rem;
  font-weight: 800;
}

.impact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 50px;
  align-items: center;
  padding: 88px max(20px, calc((100vw - 1180px) / 2));
  background: var(--green-900);
  color: var(--white);
}

.impact-copy h2 {
  color: var(--white);
}

.impact-copy p {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stats div {
  padding: 26px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stats strong {
  display: block;
  color: var(--yellow-500);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.values-list div {
  padding: 28px;
}

.info-grid,
.news-partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.info-grid article,
.news-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.info-grid h3,
.news-card h2 {
  margin: 0 0 10px;
  color: var(--green-900);
}

.info-grid p,
.news-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.section-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
}

.project-list-section,
.content-card[id],
.section-heading.compact {
  scroll-margin-top: 150px;
}

.project-list-section.upcoming {
  padding-top: 48px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.project-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.project-card h3 {
  margin: 18px 0 10px;
  color: var(--green-900);
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-status.future {
  color: var(--green-900);
  background: rgba(246, 201, 69, 0.28);
}

.project-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 58px max(20px, calc((100vw - 1180px) / 2));
  background: var(--green-900);
  color: var(--white);
}

.project-cta h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.content-card.partner-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* Stacked layout for stages page: articles one below the other */
.stages-section .content-grid {
  grid-template-columns: 1fr;
}

/* Stacked layout for missions page: articles one below the other */
.missions-section .content-grid {
  grid-template-columns: 1fr;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.content-card h3 {
  margin: 0 0 10px;
  color: var(--green-900);
}

/* Ensure article headings use the site heading color (higher specificity) */
article.content-card h3,
article h3 {
  color: var(--green-900);
}

.actions-list {
  display: grid;
  gap: 42px;
  margin-top: 34px;
}

.action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.action-item:nth-child(even) .action-media {
  order: 2;
}

.action-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(18, 51, 34, 0.1);
}

.action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 42px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--green-700);
  border-radius: 999px;
  color: var(--green-700);
  background: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.action-pill:hover,
.action-pill:focus-visible {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 107, 69, 0.2);
}

.asso{
  width: 100px;
}

.action-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.action-copy h3 {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--green-900);
}

.action-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.action-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .action-item {
    grid-template-columns: 1fr;
  }

  .action-item:nth-child(even) .action-media {
    order: 0;
  }

  .village-layout {
    grid-template-columns: 1fr;
  }
}

.content-card p {
  margin: 0;
  color: var(--muted);
}

.content-card p + p {
  margin-top: 10px;
}

.content-card p strong {
  color: var(--green-900);
}

.village-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
  margin-top: 14px;
}

.village-text p {
  margin-bottom: 12px;
}

.village-map {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 51, 34, 0.08);
}

.village-map iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

/* Fees table styling */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.95rem;
}
.fees-table thead th {
  background: var(--green-700);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.04);
}
.fees-table tbody td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.fees-table tbody tr:nth-child(even) td {
  background: #fbfaf4;
}
.fees-table tbody tr td:first-child {
  font-weight: 700;
  color: var(--green-900);
}
.fees-table tbody tr.total-row td,
.fees-table tfoot th {
  font-weight: 900;
  background: rgba(18,51,34,0.04);
}

/* Note box for recommendations */
.fees-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--green-700);
  background: var(--green-100);
  color: var(--green-900);
  border-radius: 6px;
  font-weight: 700;
}

.fees-chart {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 26px 0 18px;
  padding: 18px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf4;
}

.fees-chart svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

.highlight {
  display: inline-block;
  border-left: 4px solid var(--green-700);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--green-900);
  font-weight: 700;
  background: rgba(234, 248, 237, 0.88);
}

.fees-legend {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.fees-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.legend-food { background: #0f5436; }
.legend-transport { background: #1a8c4a; }
.legend-accommodation { background: #ff9900; }
.legend-operations { background: #d84b36; }

.content-card .card-note {
  margin-top: 14px;
  color: var(--green-900);
  font-weight: 800;
}

.content-card-link {
  margin-top: 20px;
}

/* Responsive layout dedicated to the long Missions page */
.missions-page {
  overflow-x: hidden;
}

.missions-page main,
.missions-page .missions-section,
.missions-page .content-grid,
.missions-page .content-card {
  min-width: 0;
}

.missions-page .content-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.missions-page .content-card h4 {
  margin: 30px 0 12px;
  color: var(--green-900);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.3;
}

.missions-page .content-card h5 {
  margin: 20px 0 10px;
  color: var(--green-700);
  font-size: 1rem;
  line-height: 1.4;
}

.missions-page .content-card ul,
.missions-page .content-card ol {
  max-width: 100%;
  margin: 12px 0 20px;
  padding-left: 1.4rem;
  color: var(--muted);
}

.missions-page .content-card li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.missions-page .content-card hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--line);
}

.missions-page .content-card blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow-500);
  border-radius: 0 8px 8px 0;
  color: var(--green-900);
  background: var(--green-100);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(246, 201, 69, 0.55);
  outline-offset: 3px;
}

.program-table {
  min-width: 1050px;
  margin: 0;
  background: var(--white);
}

.program-table th:first-child,
.program-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  background: var(--white);
}

.program-table thead th:first-child {
  z-index: 2;
  background: var(--green-700);
  color: var(--white);
}

.fees-table-scroll .fees-table {
  min-width: 650px;
  margin-top: 0;
}

.missions-page .village-map,
.missions-page .fees-chart {
  max-width: 100%;
}

@media (max-width: 860px) {
  .missions-page .village-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .missions-page .village-text,
  .missions-page .village-map {
    width: 100%;
    min-width: 0;
  }

  .missions-page .village-map iframe {
    width: 100%;
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .missions-page .fees-chart {
    grid-template-columns: 1fr;
  }

  .missions-page .fees-chart svg {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .missions-page .page-hero,
  .missions-page .missions-section {
    width: calc(100% - 24px);
  }

  .missions-page .page-hero {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .missions-page .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.02;
  }

  .missions-page .missions-section {
    padding: 52px 0 68px;
  }

  .missions-page .missions-section .section-heading {
    margin-bottom: 24px;
  }

  .missions-page .missions-section .content-grid {
    gap: 14px;
    margin-top: 24px;
  }

  .missions-page .content-card {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .missions-page .content-card[id] {
    scroll-margin-top: 94px;
  }

  .missions-page .content-card h3 {
    margin-bottom: 14px;
    font-size: 1.45rem;
  }

  .missions-page .content-card h4 {
    margin-top: 24px;
    font-size: 1.12rem;
  }

  .missions-page .content-card h5 {
    margin-top: 18px;
    font-size: 0.96rem;
  }

  .missions-page .content-card p,
  .missions-page .content-card li {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .missions-page .content-card ul,
  .missions-page .content-card ol {
    padding-left: 1.15rem;
  }

  .missions-page .content-card hr {
    margin: 24px 0;
  }

  .missions-page .content-card blockquote {
    padding: 14px;
    margin: 18px 0;
    font-size: 0.92rem;
  }

  .program-table {
    min-width: 920px;
    font-size: 0.82rem;
  }

  .program-table th:first-child,
  .program-table td:first-child {
    min-width: 175px;
  }

  .fees-table-scroll .fees-table {
    min-width: 590px;
    font-size: 0.82rem;
  }

  .missions-page .fees-chart {
    gap: 16px;
    padding: 14px;
  }

  .missions-page .fees-chart svg {
    max-width: 185px;
  }

  .missions-page .fees-legend {
    font-size: 0.86rem;
  }

  .missions-page .village-map iframe {
    min-height: 210px;
  }

  .missions-page .highlight {
    display: block;
    max-width: 100%;
  }
}

.placeholder-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow-500);
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green-100);
}

.gallery-grid .gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(18, 51, 34, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.video-card h3 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 1.8rem;
}

.video-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.video-card video {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.team-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 51, 34, 0.06);
}

.team-grid img {
  width: 100%;
  aspect-ratio: 5  / 5;
  object-fit: cover;
  object-position: center top;
}

.team-grid h3 {
  margin: 18px 18px 4px;
  color: var(--green-900);
}

.team-grid p {
  margin: 0 18px 20px;
  color: var(--muted);
}

.document-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 58px max(20px, calc((100vw - 1180px) / 2));
  background: var(--green-100);
}

.document-band h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.document-band p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.document-secondary {
  color: var(--white);
  background: var(--green-900);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: 58px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 110px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--green-900);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  align-self: start;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green-900);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf4;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(246, 201, 69, 0.4);
  border-color: var(--yellow-500);
}

.contact-form .btn {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green-700);
  font-weight: 700;
}

.site-footer {
  background: #eff1ed;
  color: var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 48px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 30px;
  border-bottom: 1px solid rgba(18, 51, 34, 0.1);
}

.footer-contact {
  min-width: 0;
  max-width: 760px;
}

.footer-title {
  margin: 0 0 18px;
  color: var(--green-900);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-contact p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.footer-contact strong {
  color: var(--green-900);
}

.footer-social {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: start;
}

.footer-social .social-links {
  flex-wrap: wrap;
  margin-top: 0;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-social-links a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-900);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-social-links img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.footer-bottom {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px;
  text-align: center;
  background: var(--green-900);
  color: var(--white);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .site-header {
    background:
      linear-gradient(180deg, rgba(18, 51, 34, 0.96) 0%, rgba(18, 51, 34, 0.8) 58%, rgba(18, 51, 34, 0.22) 100%),
      url("../assets/gallery/rencontres-communautaires/assemblee-groupe-1.jpeg") center / cover no-repeat;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    justify-content: space-between;
    padding-right: 14px;
    padding-left: 14px;
  }

  .navbar .brand {
    flex: 0 0 auto;
    margin-right: auto;
  }

  .navbar .menu-toggle {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 44px 0 28px;
  }

  .footer-contact {
    max-width: none;
  }

  .footer-social {
    align-items: flex-start;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    border-radius: 8px;
    padding: 8px;
    background: rgba(18, 51, 34, 0.96);
  }

  .nav-links.is-open {
    display: grid;
  }

  .menu-toggle.is-open span:not(.sr-only):nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:not(.sr-only):nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:not(.sr-only):nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-toggle span:not(.sr-only) {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-item,
  .nav-link {
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
    min-height: 46px;
    border-radius: 8px;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 0 8px 12px;
    border-left: 2px solid #1ea1b3;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
  }

  .has-dropdown:hover > .dropdown-menu,
  .has-dropdown:focus-within > .dropdown-menu {
    display: none;
  }

  .has-dropdown.is-open > .dropdown-menu {
    display: block;
  }

  .hero,
  .project-hero,
  .page-hero,
  .section-heading,
  .impact-band,
  .video-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100vh - 90px);
    padding: 56px 0 120px;
  }

  .hero-media {
    display: none;
  }

  .intro-grid,
  .actions-grid,
  .values-list,
  .info-grid,
  .news-partners,
  .project-grid,
  .presentation-list,
  .country-grid,
  .content-grid,
  .gallery-grid,
  .team-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-feature {
    grid-column: auto;
    grid-row: auto;
  }

  .document-band {
    display: grid;
  }

  .project-cta {
    display: grid;
  }

  .actions-grid {
    gap: 14px;
  }

  .action-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .hero,
  .project-hero,
  .page-hero,
  .section,
  .contact-section {
    width: min(100% - 28px, 1180px);
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .section {
    padding: 70px 0;
  }

  .impact-band {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .contact-section {
    padding: 70px 0 82px;
  }

  .footer-top {
    width: min(100% - 28px, 1180px);
    gap: 24px;
    padding: 36px 0 24px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .team-grid h3 {
    margin: 12px 12px 4px;
    font-size: 0.95rem;
  }

  .team-grid p {
    margin: 0 12px 14px;
    font-size: 0.82rem;
  }

  .footer-title {
    margin-bottom: 12px;
  }

  .footer-contact p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .footer-bottom {
    padding: 16px 14px;
  }

  .footer-bottom p {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .site-footer {
    display: grid;
  }
}



.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-popup[hidden] {
  display: none;
}

.form-popup {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.form-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 18, 0.68);
  backdrop-filter: blur(3px);
}

.form-popup__dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 36px 30px 30px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: form-popup-in 180ms ease-out;
}

.form-popup__dialog h2 {
  margin: 14px 0 10px;
  color: var(--green-900);
}

.form-popup__dialog p {
  margin: 0 0 24px;
  line-height: 1.65;
}

.form-popup__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  font-size: 1.8rem;
  font-weight: 800;
}

.form-popup.is-error .form-popup__icon {
  background: #b42318;
}

.form-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  padding: 4px 8px;
  color: var(--ink);
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes form-popup-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .form-popup__dialog { animation: none; }
}

/* Clickable albums and photo viewer */
.gallery-album-card {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--white);
  background: var(--green-900);
  text-align: left;
  cursor: pointer;
}

.gallery-album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-album-card span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  background: rgba(15, 84, 54, 0.9);
  font-weight: 800;
}

.gallery-album-card:hover img,
.gallery-album-card:focus-visible img {
  transform: scale(1.04);
}

.gallery-album-card:focus-visible {
  outline: 4px solid var(--yellow-500);
  outline-offset: 3px;
}

.gallery-viewer[hidden] {
  display: none;
}

.gallery-viewer {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 12, 0.86);
  backdrop-filter: blur(5px);
}

.gallery-viewer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.gallery-viewer__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.gallery-viewer__header .eyebrow {
  margin-bottom: 4px;
  color: var(--green-700);
}

.gallery-viewer__header h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.gallery-viewer__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-900);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-viewer__layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.gallery-years {
  padding: 22px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--green-100);
}

.gallery-years > p {
  margin: 0 0 12px;
  color: var(--green-900);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-years__menu {
  display: grid;
  gap: 8px;
}

.gallery-year-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--green-900);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.gallery-year-button.is-active,
.gallery-year-button:hover,
.gallery-year-button:focus-visible {
  border-color: var(--green-700);
  color: var(--white);
  background: var(--green-700);
}

.gallery-viewer__content {
  min-width: 0;
  padding: 20px;
  overflow-y: auto;
}

.gallery-viewer__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border-radius: 10px;
  background: #07130d;
}

.gallery-viewer__stage > img {
  display: block;
  width: 100%;
  height: min(58vh, 620px);
  object-fit: contain;
}

.gallery-viewer__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  background: rgba(15, 84, 54, 0.82);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-viewer__arrow.is-previous { left: 14px; }
.gallery-viewer__arrow.is-next { right: 14px; }
.gallery-viewer__arrow:disabled { display: none; }

.gallery-viewer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
}

.gallery-viewer__meta p {
  margin: 0;
  color: var(--green-900);
  font-weight: 800;
}

.gallery-viewer__meta span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.gallery-thumbnail {
  height: 82px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #07130d;
  cursor: pointer;
}

.gallery-thumbnail.is-active {
  border-color: var(--yellow-500);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gallery-is-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .gallery-viewer {
    padding: 8px;
  }

  .gallery-viewer__panel {
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .gallery-viewer__header {
    padding: 12px 14px;
  }

  .gallery-viewer__layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .gallery-years {
    padding: 10px 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-years > p {
    margin-bottom: 7px;
  }

  .gallery-years__menu {
    display: flex;
    gap: 7px;
    overflow-x: auto;
  }

  .gallery-year-button {
    width: auto;
    flex: 0 0 auto;
    padding: 7px 12px;
  }

  .gallery-viewer__content {
    padding: 12px;
    overflow: visible;
  }

  .gallery-viewer__stage {
    min-height: 250px;
  }

  .gallery-viewer__stage > img {
    height: min(48vh, 440px);
  }

  .gallery-viewer__arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-viewer__arrow.is-previous { left: 8px; }
  .gallery-viewer__arrow.is-next { right: 8px; }

  .gallery-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-note {
  min-height: 24px;
  margin-top: 12px;
  font-size: 0.95rem;
}

.form-note.success {
  color: #08783e;
}

.form-note.error {
  color: #b42318;
}
