:root {
  --bg: #f8f5ef;
  --paper: #fffdf9;
  --text: #111111;
  --muted: #4f4a45;
  --line: rgba(17, 17, 17, 0.12);
  --green: #255d50;
  --green-deep: #163e35;
  --gold: #b68c42;
  --gold-soft: rgba(182, 140, 66, 0.14);
  --shadow-soft: 0 30px 70px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 20px 35px rgba(17, 17, 17, 0.06);
  --radius-large: 32px;
  --radius-medium: 24px;
  --radius-small: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(182, 140, 66, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(37, 93, 80, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(248, 245, 239, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: white;
  font-size: 0.88rem;
  box-shadow: 0 18px 28px rgba(37, 93, 80, 0.18);
}

.brand-word {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.country-menu {
  position: relative;
}

.country-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.country-menu-toggle span {
  color: var(--gold);
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.country-menu.is-open .country-menu-toggle,
.country-menu-toggle:hover,
.country-menu-toggle:focus-visible {
  color: var(--text);
}

.country-menu.is-open .country-menu-toggle span {
  transform: rotate(180deg);
}

.country-menu-list {
  position: absolute;
  top: calc(100% + 14px);
  right: -14px;
  z-index: 40;
  display: grid;
  min-width: 218px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-7px);
  background: rgba(255, 253, 249, 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.14);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.country-menu.is-open .country-menu-list {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.country-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.84rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.country-menu-flag {
  display: inline-block;
  flex: 0 0 24px;
  width: 24px;
  height: 17px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(17, 17, 17, 0.12);
}

.country-menu-flag.country-menu-flag {
  object-fit: fill;
}

.country-menu-list a:hover,
.country-menu-list a:focus-visible {
  color: var(--green-deep);
  background: var(--gold-soft);
}

.hero-home {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(182, 140, 66, 0.15), transparent 24%),
    radial-gradient(circle at 82% 32%, rgba(37, 93, 80, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 70%);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 2% 3% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(182, 140, 66, 0.18);
  filter: blur(0.5px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.84);
}

.hero-copy h1,
.story-copy h2,
.section-head h2,
.big-quote h2,
.country-hero h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.96;
  font-family: Baskerville, "Palatino Linotype", Palatino, serif;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.9;
  text-wrap: balance;
}

.subtitle,
.hero-subtitle {
  margin-top: 22px;
  max-width: 670px;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.75;
  color: var(--muted);
}

.country-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.hero-location {
  display: inline-block;
  margin: 24px 0 0;
  padding: 9px 12px;
  color: #fff;
  background: rgba(17, 17, 17, 0.56);
  border-left: 2px solid var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.cta-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 22px 44px rgba(37, 93, 80, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 28px 50px rgba(37, 93, 80, 0.22);
}

.hero-panels {
  display: grid;
  gap: 18px;
}

.hero-photo {
  position: relative;
  height: 220px;
  margin: 0 0 2px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--radius-medium);
  box-shadow: 0 24px 45px rgba(17, 17, 17, 0.14);
  transform: rotate(1.2deg);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 17, 17, 0.72));
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-photo:hover img {
  transform: scale(1.05);
}

.hero-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  z-index: 1;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 128px;
  padding: 24px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--green));
}

.panel-box.alt {
  background: linear-gradient(135deg, rgba(37, 93, 80, 0.06), rgba(182, 140, 66, 0.06));
}

.panel-number {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0;
}

.panel-label {
  color: var(--muted);
  font-size: 0.98rem;
}

.section-block {
  padding: 100px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: end;
}

.intro-copy h2,
.section-head h2,
.big-quote h2 {
  font-size: clamp(2.5rem, 3.8vw, 4.2rem);
}

.intro-text {
  color: var(--muted);
  font-size: 1.12rem;
}

.stats-block {
  background: rgba(255, 255, 255, 0.24);
}

.section-head {
  margin-bottom: 32px;
}

.stats-grid,
.metrics-grid,
.sector-grid,
.country-grid,
.quick-facts-grid,
.split-grid {
  display: grid;
  gap: 22px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.metric-card,
.sector-card,
.country-card,
.panel,
.story-card,
.highlight-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.stat-card {
  position: relative;
  padding: 30px 22px 26px;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.stat-index {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.stat-card h3,
.metric-card h3,
.sector-card h3,
.panel h3,
.highlight-box h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.stat-card p,
.metric-card p,
.sector-card p,
.panel li,
.card-description,
.tagline {
  color: var(--muted);
}

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

.country-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.country-card:hover,
.country-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(17, 17, 17, 0.12);
  border-color: rgba(182, 140, 66, 0.35);
}

.card-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green), #d7c29b);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.country-card:hover .card-image-wrap img,
.country-card:focus-visible .card-image-wrap img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.photo-location {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 11px 13px;
  color: #fff;
  background: rgba(17, 17, 17, 0.76);
  border-left: 2px solid var(--gold);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  transform: translateY(4px);
  transition: transform 0.28s ease, background 0.28s ease;
}

.country-card:hover .photo-location,
.country-card:focus-visible .photo-location,
.country-card:active .photo-location {
  transform: translateY(0);
  background: rgba(17, 17, 17, 0.88);
}

.card-content {
  padding: 22px 22px 24px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.country-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-flag {
  display: inline-block;
  width: 30px;
  height: 21px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 2px;
  box-shadow: 0 3px 8px rgba(17, 17, 17, 0.12);
}

.country-flag-image {
  object-fit: fill;
}

.country-code {
  display: none;
}

.flag-maroc {
  background: #c1272d;
  position: relative;
}

.flag-maroc::after {
  content: "☆";
  position: absolute;
  inset: 0;
  color: #006233;
  font-size: 15px;
  line-height: 19px;
  text-align: center;
}

.flag-egypte {
  background: linear-gradient(#ce1126 0 33%, #fff 33% 66%, #000 66%);
}

.flag-nigeria {
  background: linear-gradient(90deg, #008751 0 33%, #fff 33% 66%, #008751 66%);
}

.flag-cote-ivoire {
  background: linear-gradient(90deg, #f77f00 0 33%, #fff 33% 66%, #009e60 66%);
}

.flag-kenya {
  background: linear-gradient(#000 0 27%, #fff 27% 34%, #b22234 34% 66%, #fff 66% 73%, #006b3f 73%);
}

.flag-afrique-du-sud {
  background: linear-gradient(155deg, #de3831 0 35%, #fff 35% 41%, #002395 41% 56%, #fff 56% 62%, #007a4d 62%);
}

.card-kicker {
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.card-content h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  letter-spacing: -0.05em;
  font-family: Georgia, "Times New Roman", serif;
}

.tagline {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
}

.card-description {
  margin: 0;
  font-size: 0.98rem;
}

.fact-pill {
  margin-top: 18px;
  padding: 10px 13px;
  background: linear-gradient(135deg, rgba(37, 93, 80, 0.08), rgba(182, 140, 66, 0.08));
  color: var(--green);
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.site-footer {
  padding: 32px 0 70px;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  text-align: center;
}

.country-page-root {
  padding-bottom: 80px;
}

.country-hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: inset 0 -120px 120px rgba(0, 0, 0, 0.25);
}

.country-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.02), rgba(12, 12, 12, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 90px;
  color: #fff;
}

.country-hero h1 {
  font-size: clamp(2.9rem, 7vw, 7rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.facts-strip {
  padding: 26px 0 10px;
}

.quick-facts-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-fact {
  padding: 18px 16px;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--text);
  font-size: 0.94rem;
  box-shadow: var(--shadow-card);
}

.content-section {
  padding: 70px 0;
}

.muted-section {
  background: rgba(255, 255, 255, 0.24);
}

.two-column {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 26px;
  align-items: stretch;
}

.story-copy p,
.story-card p,
.metric-meaning,
.metric-why,
.metric-comparison,
.partner-item span,
.panel li,
.error-content p {
  color: var(--muted);
}

.story-card,
.panel,
.highlight-box {
  padding: 28px 24px;
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
  padding: 24px 22px;
}

.metric-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 800;
}

.metric-value {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.06em;
  font-weight: 800;
}

.metric-meaning,
.metric-why,
.metric-comparison {
  margin: 0 0 8px;
}

.sector-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-card {
  padding: 24px 22px;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(37, 93, 80, 0.08), rgba(182, 140, 66, 0.08));
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.partners-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.partner-item strong {
  font-size: 1.15rem;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.panel li {
  position: relative;
  padding-left: 20px;
}

.panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.big-quote {
  padding: 52px 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 93, 80, 0.04), rgba(182, 140, 66, 0.08));
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-large);
}

.concluding-section {
  padding-top: 12px;
}

.error-screen {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.error-content {
  max-width: 760px;
  padding: 42px 24px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-large);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.error-content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.error-box {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 24px;
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.error-box h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .intro-grid,
  .two-column,
  .split-grid,
  .country-grid,
  .stats-grid,
  .sector-grid,
  .partners-list,
  .quick-facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .intro-grid,
  .two-column,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-home {
    padding-top: 70px;
  }

  .country-grid,
  .stats-grid,
  .metrics-grid,
  .sector-grid,
  .partners-list,
  .quick-facts-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .country-hero h1 {
    line-height: 1;
  }
}

/* Accueil immersif */
.home-page {
  background: #f5f1e9;
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #0b211d;
  color: #fff;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.opening-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-inner {
  position: relative;
  width: min(360px, calc(100% - 40px));
  text-align: center;
}

.opening-inner::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 181, 106, 0.2), rgba(214, 181, 106, 0) 68%);
  transform: translateX(-50%);
  animation: halo-breathe 4s ease-in-out infinite;
  pointer-events: none;
}

.africa-outline {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 166px;
  margin: 0 auto 28px;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(214, 181, 106, 0.3));
  animation: map-breathe 4s ease-in-out 2.4s infinite;
}

.africa-outline g {
  transform-origin: 50% 50%;
  animation: map-pulse 4s ease-in-out 2.4s infinite;
}

.africa-outline path {
  fill: rgba(214, 181, 106, 0.2);
  stroke: #d6b56a;
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-dasharray: 2200 18;
  stroke-dashoffset: 2200;
  animation: draw-africa 2.4s ease forwards, map-stroke 2.8s ease-in-out 2.4s infinite alternate;
}

.opening-name {
  margin: 0;
  color: #e9d8ad;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.opening-message {
  min-height: 28px;
  margin: 28px 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.opening-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.opening-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #d6b56a;
  will-change: width;
  animation: load-progress 6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #12231f;
  color: #fff;
}

.hero-collage,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-collage {
  z-index: -2;
  background: #12231f;
}

.hero-slide {
  position: absolute;
  inset: -3%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: cinematic-slide 24s linear infinite;
}

.hero-slide-nairobi { background-image: url("assets/kenya.jpg"); animation-delay: 0s; }
.hero-slide-abidjan { background-image: url("assets/cote-divoire.jpg"); animation-delay: 8s; }
.hero-slide-cape { background-image: url("assets/south-africa.jpg"); animation-delay: 16s; }

.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 20, 17, 0.9) 0%, rgba(5, 20, 17, 0.56) 46%, rgba(5, 20, 17, 0.28) 100%), linear-gradient(0deg, rgba(5, 20, 17, 0.72), transparent 62%);
}

.home-hero-content {
  padding: 13vh 0 13vh;
}

.hero-kicker {
  margin: 0 0 26px;
  color: #e1c681;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: Baskerville, "Palatino Linotype", Palatino, serif;
  font-size: clamp(3.3rem, 8vw, 8.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.home-hero h1 span {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: title-rise 0.9s ease forwards;
}

.home-hero h1 span:nth-child(2) { animation-delay: 0.16s; }
.home-hero h1 span:nth-child(3) { animation-delay: 0.32s; }

.hero-brand {
  margin: 34px 0 0;
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.3em;
}

.hero-deck {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
}

.journey-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 22px 0 26px;
  color: #142b24;
  background: #e1c681;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: gap 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.journey-button span {
  font-size: 1.4rem;
  line-height: 1;
}

.journey-button:hover,
.journey-button:focus-visible {
  gap: 34px;
  background: #fff3cc;
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-scroll span {
  width: 1px;
  height: 54px;
  background: #d6b56a;
  transform-origin: top;
  animation: scroll-line 1.8s ease-in-out infinite;
}

.hero-scroll small {
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.story-opening {
  background: #102b25;
  color: #fff;
}

.story-opening::after {
  content: "54";
  position: absolute;
  right: -0.08em;
  bottom: -0.22em;
  color: rgba(225, 198, 129, 0.08);
  font-family: Baskerville, "Palatino Linotype", Palatino, serif;
  font-size: min(48vw, 42rem);
  line-height: 0.75;
}

.story-number {
  position: absolute;
  top: 58px;
  right: 5%;
  color: #d6b56a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.story-layout {
  position: relative;
  z-index: 1;
}

.story-layout h2 {
  max-width: 840px;
  margin: 0;
  font-family: Baskerville, "Palatino Linotype", Palatino, serif;
  font-size: clamp(3.4rem, 9vw, 9rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
}

.story-layout h2 em {
  color: #d6b56a;
  font-style: italic;
}

.story-line {
  margin: 46px 0 0;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.story-support {
  max-width: 450px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.numbers-section {
  background: #f5f1e9;
}

.numbers-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 90px;
  align-items: start;
}

.numbers-intro {
  position: sticky;
  top: 140px;
}

.numbers-intro h2 {
  max-width: 360px;
  margin: 0;
  font-family: Baskerville, "Palatino Linotype", Palatino, serif;
  font-size: clamp(2.6rem, 4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

.numbers-intro > p:last-child {
  max-width: 330px;
  margin-top: 24px;
  color: var(--muted);
}

.number-list {
  border-top: 1px solid var(--line);
}

.big-number {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}

.big-number .counter {
  margin: 0;
  color: var(--green);
  font-family: Baskerville, "Palatino Linotype", Palatino, serif;
  font-size: clamp(3.3rem, 7vw, 7.2rem);
  letter-spacing: 0;
  line-height: 0.86;
}

.big-number h3 {
  margin: 16px 0 8px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 700;
}

.big-number > p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

@keyframes draw-africa { to { stroke-dashoffset: 0; } }
@keyframes map-breathe {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(214, 181, 106, 0.24)); }
  50% { filter: drop-shadow(0 0 18px rgba(214, 181, 106, 0.62)); }
}
@keyframes halo-breathe {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.86); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
@keyframes map-stroke {
  from { stroke: #b9954a; stroke-width: 1.15; }
  to { stroke: #f0d58d; stroke-width: 1.65; }
}
@keyframes map-pulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.035); opacity: 1; }
}
@keyframes load-progress { to { width: 100%; } }
@keyframes cinematic-slide {
  0%, 4% { opacity: 0; transform: scale(1.04); }
  8%, 19% { opacity: 1; transform: scale(1); }
  23%, 100% { opacity: 0; transform: scale(1.05); }
}
@keyframes title-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes scroll-line { 0%, 100% { transform: scaleY(0.45); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 760px) {
  .opening-inner {
    width: min(390px, calc(100% - 42px));
  }

  .opening-inner::before {
    top: 2px;
    width: min(76vw, 300px);
    height: min(76vw, 300px);
  }

  .africa-outline {
    width: min(45vw, 178px);
    height: min(53vw, 198px);
    margin-bottom: 24px;
  }

  .opening-name {
    font-size: 0.72rem;
    letter-spacing: 0.27em;
  }

  .opening-message {
    min-height: 44px;
    margin: 25px auto 18px;
    font-size: clamp(0.74rem, 3.2vw, 0.9rem);
  }

  .opening-progress {
    width: min(100%, 330px);
    height: 3px;
    margin: 0 auto;
  }

  .home-hero {
    min-height: calc(100svh - 128px);
  }

  .home-hero-content {
    padding: 12vh 0 11vh;
  }

  .hero-scroll {
    display: none;
  }

  .numbers-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .numbers-intro {
    position: static;
  }

  .story-section {
    min-height: 88svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-screen,
  .africa-outline path,
  .opening-progress span,
  .hero-slide,
  .home-hero h1 span,
  .hero-scroll span {
    animation: none;
  }

  .africa-outline,
  .africa-outline g,
  .africa-outline path,
  .opening-progress span,
  .home-hero h1 span {
    animation: none;
  }

  .africa-outline path {
    stroke-dashoffset: 0;
  }

  .opening-progress span {
    width: 100%;
  }

  .home-hero h1 span {
    opacity: 1;
    transform: none;
  }
}
