/* ============ Charte graphique ANAN ============ */
:root {
  --green: #11B034;
  --green-dark: #0A3D1E;
  --pink: #F6CAC0;
  --cream: #FFF4EF;
  --terracotta: #C3653E;
  --ink: #1D2A1F;
  --grey: #5F6F63;
  --beige: #E3D8D3;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(29, 42, 31, .08);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
h1 { font-size: 56px; letter-spacing: -.02em; }
h2 { font-size: 44px; letter-spacing: -.015em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--pink); }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--green { background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(17, 176, 52, .28); }
.btn--green:hover { background: #0e9a2d; }
.btn--terracotta { background: var(--terracotta); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--green-dark); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(29, 42, 31, .08); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.header__logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); transition: width .25s;
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--green); }
.header__phone { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--green-dark); white-space: nowrap; }
.header__phone a:hover { color: var(--green); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: .25s; }

/* ============ Hero ============ */
.hero { background: linear-gradient(180deg, #F6EEEA 0%, var(--cream) 100%); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  min-height: 640px; padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { max-width: 640px; }
.hero__lead { margin-top: 24px; max-width: 470px; font-size: 17px; color: var(--grey); }
.hero__cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.niger-map { display: block; width: 100%; max-width: 600px; height: auto; margin-left: auto; overflow: visible; }
.niger-map__shadow { fill: var(--white); stroke: var(--white); stroke-width: 10; stroke-linejoin: round; filter: drop-shadow(0 18px 30px rgba(29, 42, 31, .18)); }
.niger-map__seams { fill: none; stroke: var(--white); stroke-width: 5; }
.niger-map image { transition: opacity .3s; }

/* ============ Sections ============ */
.section { padding: 110px 0; }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__sub { margin-top: 16px; color: var(--grey); }

/* ============ Domaines ============ */
.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.domain {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.domain:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.domain__img { padding: 10px 10px 0; }
.domain__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.domain__body { padding: 20px 22px 28px; }
.domain__icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--green);
}
.domain__icon svg { width: 20px; height: 20px; fill: var(--white); }
.domain h3 { margin-bottom: 10px; }
.domain p { font-size: 14px; color: var(--grey); }
.domains__note { margin-top: 48px; text-align: center; font-size: 15px; font-weight: 500; }
.domains__note strong { color: var(--green); }

/* ============ Changer les regards ============ */
.regards { background: var(--green-dark); color: var(--white); padding: 110px 0; overflow: hidden; }
.regards__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.regards__visual { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto; }
.regards__main {
  position: absolute; inset: 10% 14% 8% 0;
  border-radius: 50%; overflow: hidden;
}
.regards__bubble {
  position: absolute; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--green-dark);
}
.regards__bubble--top { width: 38%; aspect-ratio: 1; top: 0; right: 0; }
.regards__bubble--bottom { width: 28%; aspect-ratio: 1; bottom: 0; left: 0; }
.regards__visual img { width: 100%; height: 100%; object-fit: cover; }
.regards__text h2 { margin-bottom: 24px; }
.regards__text p { color: rgba(255, 255, 255, .78); margin-bottom: 18px; max-width: 500px; }
.regards__text .btn { margin-top: 18px; }

/* ============ Impact ============ */
.impact { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.impact h2 { max-width: 520px; margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.stat__head { display: flex; align-items: center; gap: 14px; }
.stat__icon { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.stat__num { font-size: 32px; font-weight: 700; }
.stat p { margin-top: 8px; font-size: 14px; color: var(--grey); }
.impact__img img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 20px; }


/* ============ Galerie ============ */
.gallery-section { padding-bottom: 110px; overflow: hidden; }
.gallery { position: relative; height: 440px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.gallery.is-dragging { cursor: grabbing; }
.gallery__track { position: absolute; inset: 0; }
.gallery__item {
  position: absolute; top: 50%; left: 50%; margin: 0;
  width: 240px; height: 400px; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); will-change: transform;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery__nav { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }
.gallery__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer; transition: background .2s, border-color .2s;
}
.gallery__btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery__btn:hover { background: var(--green); border-color: var(--green); }
.gallery__btn:hover svg { stroke: var(--white); }

/* ============ FAQ ============ */
.faq-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.faq-wrap h2 { margin-bottom: 36px; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 0 24px; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 15px; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; flex-shrink: 0; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink); color: var(--terracotta); font-size: 18px; font-weight: 500; transition: .25s;
}
.faq__item[open] summary::after { content: '−'; background: var(--green); color: var(--white); }
.faq__item p { padding-bottom: 22px; font-size: 14px; color: var(--grey); }
.faq__img img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: 20px; }

/* ============ Ressources ============ */
.resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.resource {
  display: flex; align-items: center; gap: 18px;
  padding: 24px; border-radius: var(--radius); background: var(--cream);
  border: 1.5px solid transparent; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.resource:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.resource__type {
  flex-shrink: 0; display: grid; place-items: center; width: 56px; height: 64px;
  border-radius: 10px; background: var(--terracotta); color: var(--white); font-size: 13px; font-weight: 700;
}
.resource { min-width: 0; }
.resource__info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.resource__info h3 { font-size: 15px; margin-bottom: 6px; }
.resource__info p { font-size: 13px; color: var(--grey); }
.resource__dl { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); }
.resource__dl svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Footer ============ */
.footer { background: var(--green-dark); color: var(--white); padding: 90px 0 32px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 56px; }
.footer__title { font-size: 44px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.footer__title span { color: var(--green); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
.newsletter { background: #114926; border-radius: var(--radius); padding: 28px; }
.newsletter h3 { margin-bottom: 8px; }
.newsletter > p { font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 20px; }
.newsletter__field { display: flex; background: var(--white); border-radius: 10px; padding: 5px; }
.newsletter__field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); }
.newsletter__field button { width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--green); cursor: pointer; }
.newsletter__field svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.newsletter__check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .8); cursor: pointer; }
.newsletter__check input { accent-color: var(--green); }
.newsletter__ok { margin-top: 12px; font-size: 13px; color: var(--pink); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.footer__col a, .footer__col p { font-size: 14px; color: rgba(255, 255, 255, .72); transition: color .2s; }
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: rgba(255, 255, 255, .65);
}
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); transition: transform .2s; }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: var(--white); }
.footer__credit { color: var(--white); font-weight: 600; transition: color .2s; }
.footer__credit:hover { color: var(--green); }

/* ============ Bouton WhatsApp flottant ============ */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; gap: 0;
  height: 60px; padding: 0 15px; border-radius: 999px;
  background: #25D366; color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, .4);
  transition: transform .2s, gap .3s;
}
.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: #25D366; z-index: -1; animation: wa-pulse 2.2s ease-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); flex-shrink: 0; }
.whatsapp-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 15px; font-weight: 600; transition: max-width .3s;
}
.whatsapp-float:hover { transform: translateY(-3px); gap: 10px; }
.whatsapp-float:hover .whatsapp-float__label { max-width: 140px; }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 16px; height: 54px; padding: 0 12px; }
}

/* ============ Image manquante (en attente des photos) ============ */
img.is-missing {
  background: repeating-linear-gradient(45deg, var(--beige) 0 12px, #EAE1DC 12px 24px);
  min-height: 100%;
  object-fit: none;
  color: transparent;
}

/* ============ Animations d'apparition ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .header__phone { display: none; }
}
@media (max-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  .domains { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .burger { display: block; margin-left: auto; }
  .header .btn--sm { display: none; }
  .nav {
    position: fixed; top: 80px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: var(--white); box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--beige); }
  .nav a::after { display: none; }
  .nav.is-open { transform: none; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 860px) {
  .section, .regards { padding: 80px 0; }
  .hero__inner, .regards__inner, .impact, .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero__inner { min-height: 0; }
  .resources { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  h1 { font-size: 34px; }
  h2, .footer__title { font-size: 28px; }
  .domains, .stats, .footer__grid { grid-template-columns: 1fr; }
  .btn { height: 48px; padding: 0 22px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-float::before { animation: none; }
}
