/* ========================================
   NYANGA DÉVELOPPEMENT — Professional NGO Design
   ======================================== */

:root {
  --navy:      #0C2340;
  --blue:      #1A56DB;
  --blue-dark: #1444B0;
  --teal:      #0891B2;
  --teal-bg:   #E0F2FE;
  --amber:     #D97706;
  --amber-bg:  #FEF3C7;
  --text-1:    #111827;
  --text-2:    #374151;
  --text-3:    #6B7280;
  --text-4:    #9CA3AF;
  --bg-1:      #FFFFFF;
  --bg-2:      #F9FAFB;
  --bg-3:      #F0F9FF;
  --border:    #E5E7EB;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-2);
  line-height: 1.65;
  font-size: 16px;
  background: var(--bg-1);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── CONTAINER ── */
.nd-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── SECTIONS ── */
.nd-section       { padding: 96px 0; }
.nd-section-alt   { background: var(--bg-2); }
.nd-section-dark  { background: var(--navy); }

/* ── EYEBROW LABEL ── */
.nd-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
}

/* ── HEADINGS ── */
.nd-h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.nd-h2 .accent { color: var(--teal); }
.nd-subtitle {
  font-size: 17px;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 0;
}

/* ── BUTTONS ── */
.nd-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 0.3px;
}
.nd-btn-primary {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.nd-btn-primary:hover {
  background: #B45309;
  border-color: #B45309;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,119,6,0.35);
}
.nd-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.nd-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.nd-btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.nd-btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nd-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nd-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nd-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  line-height: 1.25;
}
.nd-brand-logo { height: 56px; width: auto; display: block; flex-shrink: 0; }
.nd-brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.nd-brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nd-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nd-nav-links a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nd-nav-links a:hover { color: var(--navy); background: var(--bg-2); }

.nd-nav-links .nd-btn {
  padding: 9px 20px;
  font-size: 13px;
  margin-left: 8px;
}

/* Hamburger */
.nd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nd-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.nd-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
  gap: 2px;
}
.nd-mobile-menu.open { display: flex; }
.nd-mobile-menu a {
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: var(--radius-sm);
}
.nd-mobile-menu a:hover { background: var(--bg-2); color: var(--navy); }

/* ================================================================
   HERO
   ================================================================ */
.nd-hero {
  position: relative;
  background: var(--navy);
  padding: 200px 32px 120px;
  text-align: center;
  overflow: hidden;
}
/* Ambient glow */
.nd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 100%, rgba(8,145,178,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 0%,   rgba(26,86,219,0.14) 0%, transparent 70%);
  pointer-events: none;
}
/* Subtle dot grid */
.nd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.nd-hero > .nd-container { position: relative; z-index: 1; }

.nd-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  border: 1px solid rgba(8,145,178,0.35);
  padding: 5px 14px;
  border-radius: 100px;
}
.nd-hero h1 {
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 24px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.nd-hero h1 .accent { color: var(--teal); }
.nd-hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.nd-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ================================================================
   MISSIONS — cartes
   ================================================================ */
.nd-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.nd-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.nd-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.nd-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.nd-card-num {
  font-size: 11px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.nd-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}
.nd-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.nd-card-text {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ================================================================
   À PROPOS
   ================================================================ */
.nd-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: start;
}
.nd-about-text {
  position: sticky;
  top: 104px;
}
.nd-about-text p,
.nd-about-right p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 18px;
}
.nd-about-text p:last-child,
.nd-about-right p:last-child { margin-bottom: 0; }

.nd-about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  object-fit: cover;
  height: auto;
}
.nd-about-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.nd-about-imgs img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ================================================================
   HISTORIQUE (timeline)
   ================================================================ */
.nd-historique {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.nd-timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 40px;
  max-width: 740px;
}
.nd-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--blue));
  opacity: 0.3;
}
.nd-timeline-item {
  position: relative;
  margin-bottom: 44px;
}
.nd-timeline-item:last-child { margin-bottom: 0; }
.nd-timeline-dot {
  position: absolute;
  left: -40px;
  top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 2px var(--teal);
}
.nd-timeline-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--teal-bg);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.nd-timeline-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.nd-timeline-text {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.75;
}

/* ================================================================
   GALERIE (sections visibles)
   ================================================================ */
.nd-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.nd-gallery-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.nd-gallery-block-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.nd-gallery-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.nd-gallery-split-reverse { direction: rtl; }
.nd-gallery-split-reverse > * { direction: ltr; }

.nd-gallery-split-text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 14px;
}
.nd-gallery-split-text p:last-child { margin-bottom: 0; }

.nd-portfolio-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
}
.nd-portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.nd-portfolio-img:hover img { transform: scale(1.04); }

/* ================================================================
   VIDÉOS
   ================================================================ */
.nd-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.nd-video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  line-height: 0;
  box-shadow: var(--shadow);
}
.nd-video {
  width: 100%;
  display: block;
  max-height: 310px;
}

/* ================================================================
   MEMBRES
   ================================================================ */
.nd-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.nd-member-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px 28px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nd-member-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.nd-member-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin: 0 auto 20px;
  border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 2px var(--teal);
  background: var(--bg-2);
}
/* Edwige : photo trop zoomée, afficher en entier */
.nd-team-grid .nd-member-card:nth-child(3) .nd-member-photo {
  object-fit: contain;
  object-position: center;
}

.nd-member-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.3;
}
.nd-member-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ================================================================
   CONTACT
   ================================================================ */
.nd-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
.nd-contact-info h3 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin-bottom: 4px;
  margin-top: 20px;
}
.nd-contact-info h3:first-child { margin-top: 0; }
.nd-contact-info p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 0;
  line-height: 1.6;
}

.nd-form-group { margin-bottom: 16px; }
.nd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.nd-form-group input,
.nd-form-group textarea,
.nd-form-row input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-1);
  font-family: inherit;
  background: var(--bg-1);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nd-form-group input:focus,
.nd-form-group textarea:focus,
.nd-form-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}
.nd-form-group input::placeholder,
.nd-form-group textarea::placeholder,
.nd-form-row input::placeholder {
  color: var(--text-4);
}

/* ================================================================
   FOOTER
   ================================================================ */
.nd-footer {
  background: #080F1E;
  padding: 56px 0 28px;
}
.nd-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.nd-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.nd-footer-brand-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.nd-footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 220px;
}
.nd-footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.nd-footer-col p,
.nd-footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  display: block;
}
.nd-footer-col a:hover { color: rgba(255,255,255,0.7); }
.nd-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 8px;
}

/* ================================================================
   DON section accent strip
   ================================================================ */
.nd-don-strip {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  padding: 64px 32px;
  text-align: center;
}
.nd-don-strip h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.nd-don-strip p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ================================================================
   RESPONSIVE — tablette (≤ 960px)
   ================================================================ */
@media (max-width: 960px) {
  .nd-nav-inner { height: 72px; }
  .nd-brand-logo { height: 40px; }
  .nd-brand-name { font-size: 15px; }
  .nd-brand-sub  { font-size: 10px; }
  .nd-hero { padding: 140px 24px 88px; }
  .nd-hero h1 { white-space: normal; }

  .nd-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .nd-about-text { position: static; }
  .nd-team-grid { grid-template-columns: repeat(2, 1fr); }
  .nd-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ================================================================
   RESPONSIVE — mobile (≤ 640px)
   ================================================================ */
@media (max-width: 640px) {
  /* Nav */
  .nd-nav-links { display: none; }
  .nd-hamburger { display: flex; }
  .nd-nav-inner { height: 64px; }
  .nd-brand-logo { height: 34px; }
  .nd-brand-name { font-size: 14px; }
  .nd-brand-sub  { display: none; }

  /* Hero */
  .nd-hero { padding: 104px 20px 72px; }
  .nd-hero h1 { font-size: clamp(28px, 8vw, 38px); white-space: normal; letter-spacing: -0.5px; }
  .nd-hero-desc { font-size: 16px; }
  .nd-hero-actions { flex-direction: column; align-items: center; }
  .nd-hero-actions .nd-btn { width: 100%; max-width: 300px; }

  /* Sections */
  .nd-section { padding: 64px 0; }
  .nd-container { padding: 0 18px; }

  /* Cartes */
  .nd-cards-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Galerie */
  .nd-gallery-grid { grid-template-columns: 1fr; }
  .nd-gallery-split { grid-template-columns: 1fr; gap: 24px; }
  .nd-gallery-split-reverse { direction: ltr; }
  .nd-portfolio-img { height: 220px; }

  /* Vidéos */
  .nd-video-grid { grid-template-columns: 1fr; }

  /* Membres */
  .nd-team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .nd-member-photo { width: 80px; height: 80px; }
  .nd-member-card { padding: 22px 14px 20px; }

  /* Contact */
  .nd-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .nd-form-row { grid-template-columns: 1fr; }

  /* Footer */
  .nd-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .nd-footer-bottom { flex-direction: column; text-align: center; }

  /* Timeline */
  .nd-historique { margin-top: 48px; padding-top: 36px; }
}

@media (max-width: 380px) {
  .nd-team-grid { grid-template-columns: 1fr; }
}
