/* Palette unique — drapeau du Bénin */
:root {
  --g: #008751;
  --g-deep: #006640;
  --g-dark: #004d30;
  --y: #fcd116;
  --y-soft: #ffe566;
  --r: #e8112d;
  --ink: #06281c;
  --paper: #fffdf5;
  --muted: #3d5c4d;
  --line: rgba(0, 135, 81, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Syne", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  line-height: 1.5;
  overflow-x: hidden;
}

.flag-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.flag-rail .fr { flex: 1; }
.fr-g { background: var(--g); }
.fr-y { background: var(--y); }
.fr-r { background: var(--r); }

.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.top-on-hero {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 1.35rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--g-deep);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.top-on-hero .brand-mark { color: #fff; }

.top nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.top-on-hero nav a { color: rgba(255, 253, 245, 0.92); text-shadow: 0 1px 8px rgba(0,0,0,.45); }

.top nav a:hover { color: var(--g-deep); }
.top-on-hero nav a:hover { color: var(--y); }

/* —— HERO (Amazone) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background: #0a1a14;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  z-index: 0;
  display: block;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 35%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-flag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--g) 0 33.33%, var(--y) 33.33% 66.66%, var(--r) 66.66%);
  z-index: 3;
}

.top-on-hero { position: relative; z-index: 2; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 4.5rem;
  max-width: 34rem;
  margin-left: max(1.5rem, calc((100% - 1080px) / 2));
}

.hero-credit {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 245, 0.7);
}

.place {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--y);
}

.brand-hero {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
}

.support {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.08rem;
  color: rgba(255, 253, 245, 0.9);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta:hover { transform: translateY(-2px); }
.cta.large { padding: 1.05rem 1.7rem; font-size: 1.05rem; }

.cta.primary {
  background: var(--y);
  color: var(--ink);
}

.cta.primary:hover { background: var(--y-soft); }

.cta.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 253, 245, 0.45);
}

.cta.secondary:hover {
  border-color: var(--y);
  color: var(--y);
}

/* —— BÉNIN —— */
.benin {
  background: var(--paper);
  padding: 5rem 0;
}

.benin-grid {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r);
}

.eyebrow.center { text-align: center; }

.benin h2,
.projet h2,
.nous h2,
.closing h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--g-dark);
}

.center { text-align: center; }

.benin-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 48ch;
}

.benin-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--g);
}

.benin-facts li {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-k {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--g-deep);
}

.fact-v {
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— PROJET —— */
.projet {
  background: var(--g);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

.projet .eyebrow { color: var(--y); }

.projet h2 { color: #fff; margin-bottom: 2.5rem; }

.steps {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.steps article {
  padding: 1.4rem 1.2rem 1.5rem;
  border-top: 3px solid var(--y);
  background: rgba(0, 0, 0, 0.12);
}

.steps .n {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--y);
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.steps p {
  margin: 0;
  color: rgba(255, 253, 245, 0.82);
  font-size: 0.98rem;
}

/* —— CONTRIBUER —— */
.contrib {
  padding: 4.5rem 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(252, 209, 22, 0.2), transparent 42%),
    var(--paper);
}

.contrib-inner {
  width: min(680px, calc(100% - 3rem));
  margin: 0 auto;
}

.contrib h2 { margin-bottom: 0.8rem; }

.contrib p {
  color: var(--muted);
  font-size: 1.08rem;
}

.contrib .cta { margin-top: 0.4rem; }

/* —— NOUS —— */
.nous {
  padding: 5rem 0;
  background:
    linear-gradient(90deg, var(--y) 0 10px, transparent 10px),
    var(--paper);
}

.nous-inner {
  width: min(720px, calc(100% - 3rem));
  margin: 0 auto;
}

.nous p {
  color: var(--muted);
  font-size: 1.08rem;
}

.nous strong { color: var(--g-deep); }

.quote {
  margin: 1.5rem 0 1.75rem !important;
  padding: 1.1rem 0 1.1rem 1.1rem;
  border-left: 4px solid var(--r);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 1.25rem !important;
  line-height: 1.35;
}

/* —— CLOSING —— */
.closing {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--g-dark);
  color: #fff;
  overflow: hidden;
}

.closing-flag {
  position: absolute;
  inset: auto 0 0 0;
  height: 14px;
  background: linear-gradient(90deg, var(--g) 0 33.33%, var(--y) 33.33% 66.66%, var(--r) 66.66%);
}

.closing h2 { color: #fff; }

.closing p {
  margin: 0 0 1.5rem;
  color: rgba(255, 253, 245, 0.8);
}

.foot {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot a {
  color: var(--g-deep);
  font-weight: 700;
  text-decoration: none;
}

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

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .benin-grid,
  .steps { grid-template-columns: 1fr; }

  .top-on-hero nav a:nth-child(-n+3) { display: none; }

  .hero {
    min-height: 85vh;
    min-height: 85dvh;
  }

  .hero-inner {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 0 2rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.65) 100%);
  }

  .hero-photo { object-position: 34% 42%; }

  .brand-hero { font-size: clamp(3.2rem, 16vw, 5rem); }

  .flag-rail { width: 6px; }
}
