/**
* Fondation Ndene — feuille de style de marque
* Chargée APRÈS main.css : elle surcharge la palette du template et ajoute les composants de la fondation.
* Palette tirée du logo : vert profond #004727, or #d79c04 / #eab625, rouge croix, crème.
*/

:root {
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(0, 51, 28, 0.08);
  --shadow-lift: 0 18px 40px rgba(0, 51, 28, 0.16);
  --ink-soft: color-mix(in srgb, var(--default-color), transparent 25%);
}

body {
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-gold-light);
  outline-offset: 2px;
}

::selection { background: var(--brand-gold-light); color: var(--brand-green-deep); }

/*--------------------------------------------------------------
# Boutons
--------------------------------------------------------------*/
.btn-ndene,
.btn-don,
.btn-ghost,
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nav-font);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .25s, box-shadow .25s, background-color .25s, color .25s, border-color .25s;
  cursor: pointer;
  line-height: 1.2;
}
.btn-ndene { background: var(--brand-green); color: #fff; }
.btn-ndene:hover { background: var(--brand-green-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-don { background: var(--brand-red); color: #fff; }
.btn-don:hover { background: #a60c09; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200, 16, 12, .28); }
.btn-ghost { border-color: var(--brand-green); color: var(--brand-green); background: transparent; }
.btn-ghost:hover { background: var(--brand-green); color: #fff; }
.dark-background .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.dark-background .btn-ghost:hover { background: #fff; color: var(--brand-green-deep); }
.btn-gold { background: var(--brand-gold-light); color: var(--brand-green-deep); }
.btn-gold:hover { background: #fff; color: var(--brand-green-deep); transform: translateY(-2px); }

/*--------------------------------------------------------------
# En-tête
--------------------------------------------------------------*/
.header,
.index-page .header,
.index-page.scrolled .header {
  --background-color: #ffffff; /* pas de backdrop-filter : il casserait le menu mobile plein écran (position: fixed) */
  --heading-color: var(--brand-green);
  --contrast-color: #fff;
  border-bottom: 1px solid rgba(0, 71, 39, .08);
  padding: 8px 0;
}
.scrolled .header { box-shadow: 0 6px 24px rgba(0, 51, 28, .08); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  margin-right: auto;
}
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text small {
  font-family: var(--nav-font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brand-gold);
  padding-left: 1px;
}
.brand-text strong {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--brand-green);
}
.brand:hover .brand-text strong { color: var(--brand-green-deep); }

@media (min-width: 1200px) {
  .navmenu { margin-left: auto; }
  .navmenu a, .navmenu a:focus { font-size: 15px; font-weight: 500; padding: 18px 13px; position: relative; }
  .navmenu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 13px; right: 13px; bottom: 10px;
    height: 2px;
    background: var(--brand-gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
  }
  .navmenu > ul > li > a:hover::after,
  .navmenu > ul > li > a.active::after { transform: scaleX(1); }
  .navmenu li:last-child a { padding-right: 13px; }
}

.header .btn-don { padding: 10px 24px; margin-left: 18px; font-size: 14px; }
@media (max-width: 1199px) {
  .header .btn-don { order: 2; margin: 0 14px 0 0; padding: 8px 18px; }
  .header .brand { order: 1; }
  .header .navmenu { order: 3; }
}
@media (max-width: 420px) {
  .brand img { height: 40px; }
  .brand-text strong { font-size: 21px; }
  .brand-text small { font-size: 9px; letter-spacing: .24em; }
  .header .btn-don span.lbl-long { display: none; }
}

.mobile-nav-active .mobile-nav-toggle { color: #fff; }

/*--------------------------------------------------------------
# Titres de section
--------------------------------------------------------------*/
.section-title { padding-bottom: 48px; text-align: center; }
.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .22em;
  color: var(--brand-gold);
  margin-bottom: 14px;
}
.section-title h2::before,
.section-title h2::after {
  content: "";
  width: 38px; height: 2px; margin: 0;
  background: var(--brand-gold-light);
  display: inline-block;
}
.section-title p {
  font-family: var(--heading-font);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 600;
  text-transform: none;
  max-width: 760px;
  margin: 0 auto;
}
.section-title .lead {
  font-family: var(--default-font);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 16px;
}

section, .section { padding: 84px 0; }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero-ndene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background:
    radial-gradient(900px 520px at 85% 28%, rgba(234, 182, 37, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(10, 107, 58, .10), transparent 60%),
    linear-gradient(180deg, #fffdf6 0%, var(--brand-cream) 100%);
  overflow: hidden;
}
.hero-ndene::before {
  /* motif de feuilles discret */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 71, 39, .07) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 65%);
  pointer-events: none;
}
.hero-ndene .container { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-green);
  background: rgba(234, 182, 37, .22);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow i { color: var(--brand-red); font-size: 15px; }

.hero-ndene h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  color: var(--brand-green);
  margin: 0 0 22px;
}
.hero-ndene h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand-gold);
}
.hero-ndene .lead {
  font-size: clamp(18px, 1.6vw, 21px);
  max-width: 560px;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-emblem {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
}
.hero-emblem::before {
  content: "";
  position: absolute;
  inset: -6% -6% -2% -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.6) 55%, transparent 72%);
}
.hero-emblem img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 51, 28, .22));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 70px;
  border-top: 1px solid rgba(0, 71, 39, .15);
  position: relative;
  z-index: 2;
}
.hero-pillars .pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 18px 0 0;
}
.hero-pillars .pill i {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-gold-light);
  font-size: 20px;
}
.hero-pillars .pill span {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-green);
}
@media (max-width: 991px) {
  .hero-ndene { text-align: center; padding-top: 112px; min-height: auto; }
  .hero-ndene .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-emblem { max-width: 320px; margin-bottom: 36px; }
  .hero-pillars { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .hero-pillars .pill { padding: 20px 10px 0 0; text-align: left; }
}
@media (max-width: 480px) { .hero-pillars { grid-template-columns: 1fr; } }

/*--------------------------------------------------------------
# La fondation (mission / vision / valeurs)
--------------------------------------------------------------*/
.about-ndene .about-text h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.about-ndene .about-text p { color: var(--ink-soft); }
.about-ndene .quote {
  margin: 28px 0 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--brand-gold-light);
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--brand-green);
}

.mvv-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 71, 39, .10);
  border-top: 4px solid var(--brand-gold-light);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s, box-shadow .3s;
}
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.mvv-card i { font-size: 30px; color: var(--brand-green); }
.mvv-card h4 { font-size: 22px; margin: 14px 0 8px; }
.mvv-card p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.mvv-card ul { margin: 0; padding: 0; list-style: none; }
.mvv-card ul li { display: flex; gap: 10px; padding: 3px 0; font-size: 16px; color: var(--ink-soft); }
.mvv-card ul i { font-size: 16px; color: var(--brand-red); line-height: 1.6; }

/*--------------------------------------------------------------
# Domaines d'action
--------------------------------------------------------------*/
.actions-ndene { background: var(--brand-cream); }
.action-card {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 30px 34px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.action-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.action-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.action-card:hover::after { transform: scaleX(1); }
.action-card .icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--brand-green);
  color: var(--brand-gold-light);
  font-size: 28px;
  margin-bottom: 22px;
}
.action-card.is-red .icon { background: var(--brand-red); color: #fff; }
.action-card h3 { font-size: 23px; margin-bottom: 10px; }
.action-card p { margin: 0 0 16px; font-size: 16px; color: var(--ink-soft); }
.action-card ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.action-card ul li { display: flex; gap: 8px; padding: 3px 0; }
.action-card ul i { color: var(--brand-gold); }

/*--------------------------------------------------------------
# Impact
--------------------------------------------------------------*/
.impact {
  position: relative;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(234, 182, 37, .16), transparent 70%),
    var(--brand-green-deep);
}
.impact .section-title p { color: #fff; }
.impact .section-title .lead { color: rgba(255,255,255,.78); }
.impact-item { text-align: center; padding: 10px 14px; }
.impact-item .purecounter,
.impact-item .num {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 600;
  line-height: 1;
  color: var(--brand-gold-light);
}
.impact-item .num sup { font-size: .5em; top: -.7em; margin-left: 2px; }
.impact-item p { margin: 12px 0 0; font-size: 16px; color: rgba(255,255,255,.85); }
.impact-item::before {
  content: "";
  display: block;
  width: 36px; height: 2px;
  background: var(--brand-gold-light);
  margin: 0 auto 18px;
  opacity: .7;
}

/*--------------------------------------------------------------
# Agir / Faire un don
--------------------------------------------------------------*/
.agir-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 71, 39, .12);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s, box-shadow .3s;
}
.agir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.agir-card .icon { font-size: 34px; color: var(--brand-red); margin-bottom: 16px; line-height: 1; }
.agir-card h3 { font-size: 24px; margin-bottom: 10px; }
.agir-card p { color: var(--ink-soft); font-size: 16px; flex-grow: 1; }
.agir-card .btn-ndene, .agir-card .btn-ghost, .agir-card .btn-gold { align-self: flex-start; margin-top: 8px; }
.agir-card.is-featured {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #e6f0ea;
}
.agir-card.is-featured h3 { color: #fff; }
.agir-card.is-featured p { color: rgba(255,255,255,.85); }
.agir-card.is-featured .icon { color: var(--brand-gold-light); }
.agir-card .badge-feat {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--nav-font); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand-gold-light); color: var(--brand-green-deep);
  padding: 5px 12px; border-radius: 999px;
}

.band-cta {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(500px 260px at 0% 100%, rgba(234, 182, 37, .18), transparent 70%),
    linear-gradient(120deg, var(--brand-green-deep), var(--brand-green));
  overflow: hidden;
}
.band-cta h3 { font-size: clamp(26px, 3.6vw, 38px); color: #fff; margin-bottom: 12px; }
.band-cta p { color: rgba(255,255,255,.85); font-size: 18px; margin: 0; max-width: 640px; }

/*--------------------------------------------------------------
# Gouvernance / équipe
--------------------------------------------------------------*/
.team-ndene { background: var(--brand-cream); }
.member {
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 22px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .3s, box-shadow .3s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.member .avatar {
  width: 96px; height: 96px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), #0a6b3a);
  color: var(--brand-gold-light);
  font-size: 40px;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--brand-gold-light);
}
.member h4 { font-size: 20px; margin-bottom: 4px; }
.member span { font-family: var(--nav-font); font-size: 13px; letter-spacing: .04em; color: var(--brand-gold); font-weight: 500; text-transform: uppercase; }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-ndene .info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(0, 71, 39, .10);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.contact-ndene .info-item > i {
  flex: 0 0 52px; width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-gold-light);
  font-size: 22px;
}
.contact-ndene .info-item h3 { font-size: 18px; margin: 2px 0 4px; }
.contact-ndene .info-item p { margin: 0; font-size: 16px; color: var(--ink-soft); }

.contact-ndene .php-email-form {
  background: #fff;
  border: 1px solid rgba(0, 71, 39, .10);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}
.contact-ndene .form-control {
  border-radius: 10px;
  border: 1px solid rgba(0, 71, 39, .22);
  padding: 13px 16px;
  font-size: 16px;
  background: #fdfdfb;
}
.contact-ndene .form-control:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(234, 182, 37, .28);
}
.contact-ndene .php-email-form button[type=submit] {
  font-family: var(--nav-font);
  font-weight: 500;
  background: var(--brand-green);
  color: #fff;
  border: 0;
  padding: 14px 38px;
  border-radius: 999px;
  transition: .25s;
}
.contact-ndene .php-email-form button[type=submit]:hover { background: var(--brand-green-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.contact-ndene .form-label { font-weight: 600; font-size: 14px; color: var(--brand-green); margin-bottom: 6px; }

/*--------------------------------------------------------------
# Pied de page
--------------------------------------------------------------*/
.footer {
  --footer-background-color: #00331c;
  --background-color: #00331c;
  --default-color: #d4e4db;
  --heading-color: #ffffff;
  --accent-color: #eab625;
  --contrast-color: #00331c;
  background: var(--brand-green-deep);
  color: var(--default-color);
  font-size: 15px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-gold-light), var(--brand-gold), var(--brand-red));
}
.footer .footer-top { background: transparent; padding: 64px 0 34px; }
.footer .brand-text strong { color: #fff; }
.footer .brand img { height: 56px; background: #fff; border-radius: 50%; padding: 4px; }
.footer .footer-about p { font-family: var(--default-font); font-size: 15px; margin-bottom: 4px; }
.footer .footer-links h4, .footer h4 { color: #fff; font-family: var(--heading-font); font-size: 19px; }
.footer .footer-links ul a { color: #d4e4db; font-size: 15px; line-height: 1.3; }
.footer .footer-links ul a:hover { color: var(--brand-gold-light); }
.footer .social-links a { border-radius: 50%; background: rgba(255,255,255,.09); color: #fff; }
.footer .social-links a:hover { background: var(--brand-gold-light); color: var(--brand-green-deep); }
.footer .copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; font-size: 14px; }
.footer .credits { color: rgba(255,255,255,.55); }
.footer .credits a { color: rgba(255,255,255,.75); text-decoration: underline; }

/*--------------------------------------------------------------
# Divers : préchargeur, bouton haut de page
--------------------------------------------------------------*/
#preloader { background: #fffdf6; }
#preloader:before { border-color: var(--brand-green) transparent var(--brand-gold-light) transparent; }
.scroll-top { background: var(--brand-green); border-radius: 50%; width: 44px; height: 44px; }
.scroll-top i { color: var(--brand-gold-light); }
.scroll-top:hover { background: var(--brand-green-deep); }
.scroll-top.active { bottom: 16px; }

/* Pages intérieures (modèle pour les futurs départements & services) */
.page-title .heading {
  background: linear-gradient(120deg, var(--brand-green-deep), var(--brand-green));
  border-top: 0;
  padding: 130px 0 56px;
  color: #fff;
}
.page-title .heading h1 { color: #fff; font-family: var(--heading-font); }
.page-title .heading p { color: rgba(255,255,255,.82); }
.page-title nav { background: var(--brand-cream); }
.page-title nav ol a { color: var(--brand-green); }

@media (prefers-reduced-motion: reduce) {
  .hero-emblem img { animation: none; }
  * { scroll-behavior: auto !important; }
}
