/* ══════════════════════════════════════════
   BGIC – GLOBAL STYLES
   Palette: #2E7D32 | #1565C0 | #FFC107 | #fff
   ══════════════════════════════════════════ */

:root {
  --green:       #2E7D32;
  --green-light: #4CAF50;
  --green-pale:  #f0f7f0;
  --blue:        #1565C0;
  --blue-dark:   #0D47A1;
  --gold:        #FFC107;
  --gold-dark:   #F9A825;
  --white:       #ffffff;
  --text:        #1a2e1a;
  --text-light:  #4a5e4a;
  --shadow:      0 4px 24px rgba(46,125,50,0.12);

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; }

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

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.35);
}
.btn-primary.large { padding: 16px 40px; font-size: 1rem; }
.btn-primary.full  { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 6px;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-nav {
  background: var(--gold);
  color: var(--text) !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--gold-dark); }

/* ── SECTION COMMON ── */
.section { padding: 96px 0 80px; }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}
.section-eyebrow.light { color: var(--gold); }
.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title.center { text-align: center; }
.section-title.light { color: var(--white); }

.section-intro {
  max-width: 660px;
  color: var(--text-light);
  margin-bottom: 52px;
  font-size: 1.05rem;
}
.section-intro.center { margin-left: auto; margin-right: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green);
  border-bottom: 3px solid var(--gold);
  transition: box-shadow 0.3s;
}
#navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-leaf  { font-size: 1.5rem; }
.logo-text  {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
}
.logo-sub {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(255,193,7,0.15);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-links li a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-links li a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(76,175,80,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(21,101,192,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #1a3a6b 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 Q35 15 30 30 Q25 45 30 60' stroke='rgba(255,193,7,0.06)' stroke-width='1' fill='none'/%3E%3C/svg%3E") repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 760px;
}

.gold-accent {
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(255,193,7,0.3);
}

.hero-desc {
  max-width: 580px;
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════
   WAVE DIVIDERS
   ══════════════════════════════════════════ */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; height: 80px; }
.wave-green-to-white  { background: var(--green); }
.wave-white-to-lightgreen { background: var(--white); }
.wave-lightgreen-to-green { background: var(--green-pale); }
.wave-green-to-white2 { background: var(--green); }

/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
.about-section { background: var(--white); }

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-icon-box {
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(46,125,50,0.3);
}

.big-icon { font-size: 7rem; }

.icon-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.about-card-float {
  position: absolute;
  bottom: -20px;
  left: -10px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  max-width: 240px;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 1rem;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.pill {
  background: var(--green-pale);
  color: var(--green);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(46,125,50,0.2);
}

/* ══════════════════════════════════════════
   PROGRAMMES
   ══════════════════════════════════════════ */
.programmes-section { background: var(--green-pale); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.prog-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  border-left: 4px solid transparent;
  box-shadow: 0 2px 12px rgba(46,125,50,0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.prog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46,125,50,0.15);
  border-left-color: var(--blue);
}
.prog-card.featured {
  border-left-color: var(--gold);
  box-shadow: 0 4px 20px rgba(255,193,7,0.15);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.prog-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.prog-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.card-list {
  list-style: none;
  padding: 0;
}
.card-list li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ══════════════════════════════════════════
   IMPACT
   ══════════════════════════════════════════ */
.impact-section {
  background: var(--green);
  padding: 100px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.stat-card {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  border: 1px solid rgba(255,193,7,0.25);
  transition: background 0.2s;
}
.stat-card:hover { background: rgba(255,255,255,0.13); }

.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  display: inline;
  line-height: 1;
}
.stat-unit {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  font-weight: 500;
}

.impact-quote {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 40px;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  border-top: 3px solid var(--gold);
}
.impact-quote blockquote {
  font-size: 1.15rem;
  color: var(--white);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 12px;
}
.impact-quote cite {
  font-size: 0.88rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* ══════════════════════════════════════════
   PROJETS
   ══════════════════════════════════════════ */
.projets-section { background: var(--white); }

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.projet-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  transition: transform 0.2s, box-shadow 0.2s;
}
.projet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.projet-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projet-emoji { font-size: 4rem; }

.projet-body {
  padding: 24px;
}
.projet-tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}
.projet-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.projet-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.projet-annee {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-pale);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ══════════════════════════════════════════
   PARTENAIRES
   ══════════════════════════════════════════ */
.partenaires-section {
  background: var(--green-pale);
  padding: 96px 0;
}

.partenaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin: 48px 0;
}

.partenaire-item {
  background: var(--white);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  box-shadow: 0 2px 10px rgba(46,125,50,0.07);
  border: 1px solid rgba(46,125,50,0.1);
  transition: box-shadow 0.2s, transform 0.2s;
}
.partenaire-item:hover {
  box-shadow: 0 6px 20px rgba(46,125,50,0.15);
  transform: translateY(-2px);
}
.partenaire-item span {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.cta-banner {
  background: var(--green);
  border-radius: 16px;
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 16px;
}
.cta-banner-text h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-banner-text p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-section { background: var(--white); }

.contact-cols { align-items: start; gap: 56px; }

.contact-info p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  margin-bottom: 28px;
}
.contact-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(46,125,50,0.08);
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.social-btn:hover {
  background: var(--green);
  color: var(--white);
}

.contact-form-box {
  background: var(--green-pale);
  border-radius: 16px;
  padding: 40px 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid rgba(46,125,50,0.2);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}
.form-group textarea { resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.form-success span { font-size: 3rem; }
.form-success p {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green);
}
.hidden { display: none !important; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: #1B3A20;
  color: var(--white);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-leaf { font-size: 2rem; }
.footer-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-top: 8px;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-bar p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--green);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--blue); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 36px 28px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0 60px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 3px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }

  .hamburger { display: flex; }

  nav { position: relative; }

  .hero { min-height: 100svh; }
  .hero-title { font-size: 2rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2.2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .about-card-float { display: none; }

  .contact-cols { grid-template-columns: 1fr; }
}
