/* ============================================================
   MY AFAWA – Custom Stylesheet
   Stack: Bootstrap 5 + Custom CSS3
   Font: Outfit (Google Fonts)
   Palette: Institutional Green #1a6b3c, Light Green #e8f5ee,
            White #ffffff, Soft Gray #f8f9fa, Dark Green #0d3d22
============================================================ */

/* ---- 0. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1a6b3c;
  --green-dark:   #0d3d22;
  --green-mid:    #28a458;
  --green-light:  #e8f5ee;
  --green-pale:   #f3faf6;
  --green-accent: #3ec96e;
  --white:        #ffffff;
  --gray-100:     #f8f9fa;
  --gray-200:     #e9ecef;
  --gray-400:     #ced4da;
  --gray-600:     #6c757d;
  --gray-800:     #343a40;
  --shadow-sm:    0 2px 12px rgba(26,107,60,.08);
  --shadow-md:    0 8px 32px rgba(26,107,60,.12);
  --shadow-lg:    0 20px 60px rgba(26,107,60,.16);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --radius-xl:    32px;
  --transition:   .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- Utility ---- */
.py-6   { padding-top: 5rem; padding-bottom: 5rem; }
.mb-6   { margin-bottom: 4rem; }
.text-green  { color: var(--green) !important; }
.bg-green    { background: var(--green) !important; }
.text-white-60  { color: rgba(255,255,255,.65); }
.text-white-70  { color: rgba(255,255,255,.75); }

/* ---- Buttons ---- */
.btn-green {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  border-radius: 99px;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: .01em;
}
.btn-green:hover, .btn-green:focus {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,60,.3);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 99px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-green:hover, .btn-outline-green:focus {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,60,.25);
}

.btn-white-green {
  background: #fff;
  color: var(--green);
  border: 2px solid #fff;
  border-radius: 99px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-white-green:hover {
  background: var(--green-light);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 99px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}

/* ============================================================
   1. NAVBAR
============================================================ */
#mainNav {
  padding: .75rem 0;
  transition: all .35s ease;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
}
#mainNav.scrolled {
  box-shadow: 0 4px 24px rgba(26,107,60,.1);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.95) !important;
  border-bottom-color: var(--green-light);
}

.logo-badge {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(26,107,60,.3);
  flex-shrink: 0;
}
.logo-badge-sm { width: 34px; height: 34px; font-size: .95rem; border-radius: 8px; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 1.1rem; color: var(--gray-800); font-weight: 500; letter-spacing: -.01em; }
.logo-main strong { color: var(--green); font-weight: 800; }
.logo-sub { font-size: .65rem; color: var(--gray-600); letter-spacing: .04em; text-transform: uppercase; }

/* Navbar logo */
.navbar-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .navbar-logo { height: 22px; }
}
@media (max-width: 575.98px) {
  .navbar-logo { height: 20px; }
}

/* Badge Pro */
.badge-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(26,107,60,.35);
  align-self: flex-start;
  margin-top: 2px;
  line-height: 1;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-800);
  padding: .4rem .75rem !important;
  border-radius: 99px;
  transition: var(--transition);
  font-size: .92rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--green);
  background: var(--green-pale);
}

/* ============================================================
   2. HERO
============================================================ */
.hero-section {
  position: relative;
  background: #fff;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.min-vh-hero { min-height: calc(100vh - 80px); }

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  background: var(--green);
  pointer-events: none;
  animation: floatShape 8s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; top: -150px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; bottom: 10%; left: -80px; animation-delay: 2.5s; }
.shape-3 { width: 180px; height: 180px; top: 30%; right: 15%; animation-delay: 5s; opacity: .04; }

@keyframes floatShape {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.04); }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  color: var(--green);
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 99px;
  letter-spacing: .02em;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-800);
  letter-spacing: -.03em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 520px;
  line-height: 1.7;
}

/* Hero stats */
.hero-stats { gap: 2rem; }
.stat-item { text-align: left; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--green); }
.stat-unit   { font-size: 1.2rem; font-weight: 700; color: var(--green); }
.stat-label  { font-size: .78rem; color: var(--gray-600); margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.stat-divider { width: 1px; height: 40px; background: var(--gray-200); align-self: center; }

/* Hero card */
.hero-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
}
.hero-card-main {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.hero-card-header {
  display: flex;
  align-items: center;
  padding: .8rem 1.2rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.hc-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green-d{ background: #28c840; }
.hero-card-body { padding: 1.5rem; }

/* Score visual */
.score-visual { text-align: center; }
.score-ring {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
}
.ring-svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.ring-bg       { fill: none; stroke: var(--green-light); stroke-width: 8; }
.ring-progress { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
.ring-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}
.ring-score { font-size: 1.6rem; font-weight: 800; color: var(--green); }
.ring-unit  { font-size: .75rem; color: var(--gray-600); }
.score-title { font-size: .82rem; color: var(--gray-600); font-weight: 500; }

.score-bars { text-align: left; }
.sb-item {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.sb-label { font-size: .75rem; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.sb-bar   { background: var(--green-light); border-radius: 99px; height: 6px; }
.sb-fill  { background: linear-gradient(90deg, var(--green), var(--green-mid)); border-radius: 99px; height: 6px; }
.sb-val   { font-size: .75rem; font-weight: 600; color: var(--green); text-align: right; }

/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border-radius: 99px;
  padding: .5rem 1rem;
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  animation: floatBadge 3s ease-in-out infinite;
}
.badge-certified { bottom: -20px; left: -20px; animation-delay: 0s; }
.badge-bank      { top: -18px; right: -10px; animation-delay: 1.5s; }

@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Hero card floating animation ── */
.hero-card-main {
  animation: heroCardFloat 5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heroCardFloat {
  0%,100% { transform: translateY(0px) rotate(0deg); box-shadow: 0 20px 60px rgba(26,107,60,.18); }
  33%      { transform: translateY(-8px) rotate(.4deg); box-shadow: 0 30px 70px rgba(26,107,60,.24); }
  66%      { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 26px 65px rgba(26,107,60,.21); }
}

/* ── Score ring animation ── */
.ring-progress {
  fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1);
}
.ring-progress.animated { stroke-dashoffset: 50; }

/* Score pulse glow */
@keyframes ringGlow {
  0%,100% { filter: drop-shadow(0 0 4px rgba(26,107,60,.3)); }
  50%      { filter: drop-shadow(0 0 12px rgba(26,107,60,.65)); }
}
.ring-svg { animation: ringGlow 2.8s ease-in-out infinite; }

/* ── Score number count-up ── */
.ring-score { transition: opacity .3s; }

/* ── Progress bars ── */
.sb-fill {
  background: linear-gradient(90deg, var(--green), var(--green-mid));
  border-radius: 99px; height: 6px;
  width: 0 !important;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.sb-fill.animated { width: var(--bar-target) !important; }

/* Shimmer sweep on bars */
.sb-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmerBar 2.2s 1.4s ease-in-out infinite;
  border-radius: 99px;
}
.sb-bar { position: relative; overflow: hidden; }

@keyframes shimmerBar {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ── Card entrance ── */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
.hero-card-wrapper { animation: cardEntrance .8s .3s cubic-bezier(.4,0,.2,1) both; }

/* Hero wave */
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ============================================================
   3. SECTION COMMONS
============================================================ */
.section-white     { background: var(--white); }
.section-green-pale{ background: var(--green-pale); }
.section-dark-green{
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #237a46 100%);
  position: relative;
}

.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 99px;
}
.section-label-light {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 99px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-800);
  letter-spacing: -.025em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}
.section-text {
  font-size: .97rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* Feature pills */
.feature-pill {
  display: inline-flex;
  align-items: center;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  color: var(--green);
  font-size: .82rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 99px;
}

/* ============================================================
   4. MISSION CARDS
============================================================ */
.mission-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: default;
}
.mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mission-card i    { font-size: 1.6rem; margin-bottom: .75rem; display: block; }
.mission-card h5   { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.mission-card p    { font-size: .82rem; margin: 0; line-height: 1.55; }

.mc-green {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff;
}
.mc-green i, .mc-green h5, .mc-green p { color: #fff; }
.mc-white {
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  color: var(--gray-800);
}

/* ============================================================
   5. PARCOURS TIMELINE
============================================================ */
.parcours-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.parcours-timeline::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-light), var(--green), var(--green-light));
}

.parcours-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: #fff;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(26,107,60,.25);
  transition: var(--transition);
}

.parcours-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(26,107,60,.35);
}

.step-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
  transform: translateX(4px);
}
.step-card-final {
  background: linear-gradient(135deg, var(--green-pale), #e0f5e9);
  border-color: var(--green-light);
}

.step-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--green);
}
.step-card-final .step-icon { background: rgba(26,107,60,.15); }

.step-content h5 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; color: var(--gray-800); }
.step-content p  { font-size: .83rem; color: var(--gray-600); margin: 0; line-height: 1.55; }

.step-tag {
  position: absolute;
  top: .75rem; right: 1rem;
  background: var(--green-pale);
  color: var(--green);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 99px;
}
.step-card-final .step-tag { background: rgba(26,107,60,.15); }

/* ============================================================
   6. ELIGIBILITY CARDS
============================================================ */
.elig-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.elig-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.elig-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .75rem;
}
.elig-green  { background: var(--green-pale); color: var(--green); }
.elig-blue   { background: #e8f0fe; color: #1a73e8; }
.elig-orange { background: #fff3e0; color: #e67e22; }
.elig-teal   { background: #e0f7fa; color: #00838f; }
.elig-purple { background: #f3e5f5; color: #7b1fa2; }

.elig-card h6 { font-size: .88rem; font-weight: 700; color: var(--gray-800); margin-bottom: .3rem; }
.elig-card p  { font-size: .8rem;  color: var(--gray-600); margin: 0; line-height: 1.55; }

/* ============================================================
   7. TOOL CARDS
============================================================ */
.tool-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.tool-icon-wrap {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.tc-green  { background: var(--green-pale); color: var(--green); }
.tc-blue   { background: #e8f0fe; color: #1a73e8; }
.tc-orange { background: #fff3e0; color: #e67e22; }
.tc-teal   { background: #e0f7fa; color: #00838f; }
.tc-purple { background: #f3e5f5; color: #7b1fa2; }

.tool-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: .5rem; }
.tool-desc  { font-size: .85rem; color: var(--gray-600); flex: 1; line-height: 1.6; }
.tool-tags  { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.tool-tag   {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 99px;
  letter-spacing: .02em;
}
.tool-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  color: var(--green);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.tool-cta:hover { color: var(--green-dark); gap: .2rem; }

/* ============================================================
   8. IMPACT SECTION
============================================================ */
.impact-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.impact-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.impact-icon { font-size: 1.75rem; color: var(--green-accent); margin-bottom: .75rem; }
.impact-number { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: .25rem; }
.impact-card p { font-size: .8rem; color: rgba(255,255,255,.75); margin: 0; }

/* Impact breakdown bars */
.impact-breakdown { }
.ib-item {
  display: grid;
  grid-template-columns: 160px 1fr 44px;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.ib-label   { font-size: .85rem; color: rgba(255,255,255,.85); }
.ib-bar-wrap{ background: rgba(255,255,255,.15); border-radius: 99px; height: 8px; }
.ib-bar     { background: linear-gradient(90deg, var(--green-accent), #7ae8a0); border-radius: 99px; height: 8px; transition: width 1.5s ease; }
.ib-pct     { font-size: .85rem; font-weight: 700; color: var(--green-accent); }

/* ODD Badges */
.impact-goals { }
.odd-badge {
  display: flex; flex-direction: column;
  align-items: center;
  padding: .75rem .5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: default;
}
.odd-num   { font-size: .8rem; font-weight: 800; }
.odd-label { font-size: .65rem; line-height: 1.3; margin-top: .2rem; text-align: center; }
.odd-1  { background: #e8003d22; border: 1px solid rgba(232,0,61,.3); color: #ff6b8a; }
.odd-5  { background: rgba(255,58,33,.15); border: 1px solid rgba(255,58,33,.3); color: #ff8a6b; }
.odd-8  { background: rgba(162,25,66,.15); border: 1px solid rgba(162,25,66,.3); color: #e87fa1; }
.odd-9  { background: rgba(253,105,37,.15); border: 1px solid rgba(253,105,37,.3); color: #ffa876; }
.odd-10 { background: rgba(221,19,103,.15); border: 1px solid rgba(221,19,103,.3); color: #f0729e; }
.odd-17 { background: rgba(25,72,106,.15); border: 1px solid rgba(25,72,106,.4); color: #7ec8ff; }

/* ============================================================
   9. PARTNERS
============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.partner-logo-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.partner-logo-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.plc-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.plc-badge {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
}
.plc-bad  { background: linear-gradient(135deg,#005a8e,#0073b7); }
.plc-afdb { background: linear-gradient(135deg,#c0392b,#e74c3c); }
.plc-mf   { background: linear-gradient(135deg,var(--green),var(--green-mid)); }
.plc-bank { background: linear-gradient(135deg,#2c3e50,#34495e); }
.plc-dev  { background: linear-gradient(135deg,#8e44ad,#9b59b6); }
.plc-ifg  { background: linear-gradient(135deg,#d35400,#e67e22); }
.plc-inner span { font-size: .78rem; font-weight: 600; color: var(--gray-600); text-align: center; }

.partner-type-card {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid transparent;
  transition: var(--transition);
}
.partner-type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner-type-card i { font-size: 1.5rem; margin-bottom: .6rem; display: block; }
.partner-type-card h6 { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.partner-type-card p  { font-size: .82rem; color: var(--gray-600); margin: 0; }
.ptc-green  { background: var(--green-pale); border-color: var(--green-light); }
.ptc-green  i { color: var(--green); }
.ptc-blue   { background: #e8f0fe; border-color: #c5d5fc; }
.ptc-blue   i { color: #1a73e8; }
.ptc-orange { background: #fff3e0; border-color: #ffe0b2; }
.ptc-orange i { color: #e67e22; }

/* ============================================================
   10. RESSOURCES
============================================================ */
.ressources-filters .res-filter {
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
}
.ressources-filters .res-filter:hover,
.ressources-filters .res-filter.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.res-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-light); }

.res-cat-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px 4px 0 0;
}
.rc-green  { background: var(--green); }
.rc-blue   { background: #1a73e8; }
.rc-orange { background: #e67e22; }
.rc-teal   { background: #00838f; }
.rc-purple { background: #7b1fa2; }

.res-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .75rem;
  flex-shrink: 0;
}
.ri-green  { background: var(--green-pale); color: var(--green); }
.ri-blue   { background: #e8f0fe; color: #1a73e8; }
.ri-orange { background: #fff3e0; color: #e67e22; }
.ri-teal   { background: #e0f7fa; color: #00838f; }
.ri-purple { background: #f3e5f5; color: #7b1fa2; }

.res-type-tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-600); margin-bottom: .3rem;
}
.res-title { font-size: .9rem; font-weight: 700; color: var(--gray-800); margin-bottom: .4rem; }
.res-desc  { font-size: .82rem; color: var(--gray-600); flex: 1; line-height: 1.55; margin-bottom: .75rem; }
.res-meta  { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; margin-top: auto; }
.res-meta span { color: var(--gray-600); }
.res-dl {
  color: var(--green); font-weight: 600; text-decoration: none;
  display: flex; align-items: center; gap: .2rem; transition: var(--transition);
}
.res-dl:hover { color: var(--green-dark); }

/* ============================================================
   11. DIAGNOSTIC DE BANCABILITÉ
============================================================ */
.diag-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.diag-section { display: none; }
.diag-section.active { display: block; }

.diag-sec-header {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.diag-sec-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.dsi-green  { background: var(--green-pale); color: var(--green); }
.dsi-blue   { background: #e8f0fe; color: #1a73e8; }
.dsi-orange { background: #fff3e0; color: #e67e22; }
.dsi-teal   { background: #e0f7fa; color: #00838f; }
.diag-sec-header h5 { font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }

.diag-q { margin-bottom: 1.5rem; }
.diag-q-label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .65rem;
}
.diag-options {
  display: flex; flex-direction: column; gap: .5rem;
}
.diag-opt {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: .88rem;
}
.diag-opt:hover { border-color: var(--green-light); background: var(--green-pale); }
.diag-opt input[type="radio"] { accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.diag-opt:has(input:checked) {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
}

.diag-contact { background: var(--green-pale); border-radius: var(--radius-md); padding: 1.5rem; }
.diag-contact h6 { font-weight: 700; color: var(--gray-800); }
.diag-contact .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
}
.diag-contact .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
}

.progress-bar.bg-green { background: var(--green) !important; }

/* Diagnostic Result */
.diag-result-ring {
  position: relative;
  width: 140px; height: 140px;
}
.ring-progress-result {
  fill: none;
  stroke: var(--green);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s ease;
}

/* ============================================================
   12. FAQ
============================================================ */
.faq-accordion { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--green-light) !important; box-shadow: var(--shadow-sm); }
.faq-btn {
  font-family: 'Outfit', sans-serif;
  font-size: .93rem;
  font-weight: 600;
  color: var(--gray-800);
  background: #fff;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  box-shadow: none !important;
}
.faq-btn:not(.collapsed) {
  color: var(--green);
  background: var(--green-pale);
}
.faq-btn::after { filter: none; }
.faq-btn:not(.collapsed)::after { filter: none; }
.faq-body {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-200);
}

/* ============================================================
   13. CTA SECTION
============================================================ */
.section-cta { background: var(--green-pale); }
.cta-card {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, #2d9b54 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-bg-shape {
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.cta-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.25; }
.cta-subtitle { font-size: .97rem; line-height: 1.65; }

/* ============================================================
   14. CONTACT
============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--green);
}
.ci-item h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); font-weight: 700; margin-bottom: .15rem; }
.ci-item a  { color: var(--gray-800); text-decoration: none; font-weight: 600; font-size: .93rem; transition: color .2s; }
.ci-item a:hover { color: var(--green); }

.contact-form .form-control,
.contact-form .form-select {
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  padding: .7rem 1rem;
  font-size: .9rem;
  transition: var(--transition);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
}
.contact-form label.form-label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .3rem;
}

/* ============================================================
   15. FOOTER
============================================================ */
.footer { background: var(--green-dark); color: rgba(255,255,255,.8); }

.footer-top { padding: 4rem 0 3rem; }

.footer-desc { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.65); max-width: 320px; }

.footer-title {
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--green-accent); }

.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: .9rem;
}
.social-icon:hover { background: var(--green-mid); color: #fff; transform: translateY(-2px); }

.footer-newsletter .form-control {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
}
.footer-newsletter .form-control::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter .form-control:focus {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  box-shadow: none;
  color: #fff;
}
.footer-newsletter .btn-green { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.footer-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 99px;
}

/* Footer logo blanc */
.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .90;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,.9); }

/* ============================================================
   16. SCROLL-TO-TOP
============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,107,60,.35);
  transition: var(--transition);
  opacity: 0; pointer-events: none;
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ============================================================
   17. ANIMATIONS
============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays */
[style*="animation-delay:.1s"] { transition-delay: .1s !important; }
[style*="animation-delay:.2s"] { transition-delay: .2s !important; }
[style*="animation-delay:.3s"] { transition-delay: .3s !important; }
[style*="animation-delay:.4s"] { transition-delay: .4s !important; }
[style*="animation-delay:.5s"] { transition-delay: .5s !important; }

/* ============================================================
   18. TOAST
============================================================ */
#mainToast { background: var(--green); color: #fff; border-radius: var(--radius-md); }

/* ============================================================
   19. RESPONSIVE
============================================================ */
/* ════════════════════════════════════════════════
   RESPONSIVE — Tablette large (≤ 991px)
════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .hero-section         { padding: 7rem 0 5rem; }
  .min-vh-hero          { min-height: auto; }
  .hero-card-wrapper    { max-width: 400px; margin: 0 auto; }
  .badge-certified      { bottom: -10px; left: -10px; }
  .parcours-timeline::before { left: 28px; }
  .step-number          { width: 46px; height: 46px; font-size: .8rem; }
  .cta-card             { padding: 2.5rem 1.75rem; }
  .diag-card            { padding: 1.75rem 1.25rem; }
  .tool-card            { padding: 1.5rem 1.25rem; }
  .elig-card            { padding: 1rem; }
  .res-card             { padding: 1.25rem; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — Tablette portrait / grands téléphones (≤ 767px)
════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* Spacing */
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  /* Typography */
  .hero-title      { font-size: 1.85rem; line-height: 1.25; }
  .section-title   { font-size: 1.45rem; }
  .section-subtitle{ font-size: .92rem; }
  .section-text    { font-size: .92rem; }

  /* Hero */
  .hero-section       { padding: 5.5rem 0 3.5rem; }
  .hero-card-wrapper  { max-width: 100%; }
  .floating-badge     { display: none; }
  .hero-cta           { flex-direction: column; }
  .hero-cta .btn      { width: 100%; justify-content: center; text-align: center; }

  /* Score bars */
  .sb-item { grid-template-columns: 70px 1fr 34px; gap: .4rem; }
  .sb-label { font-size: .7rem; }
  .sb-val   { font-size: .7rem; }

  /* Parcours timeline */
  .parcours-timeline::before { display: none; }
  .parcours-step  { flex-direction: column; gap: .5rem; }
  .step-number    { width: 38px; height: 38px; font-size: .76rem; }
  .step-card      { padding: 1rem; gap: .75rem; }
  .step-icon      { width: 36px; height: 36px; font-size: .9rem; flex-shrink: 0; }
  .step-content h5{ font-size: .88rem; }
  .step-content p { font-size: .8rem; }
  .step-tag       { font-size: .68rem; padding: .2rem .55rem; white-space: nowrap; }

  /* Éligibilité */
  .elig-card      { padding: 1rem .9rem; }
  .elig-icon      { width: 36px; height: 36px; font-size: 1rem; }

  /* Outils */
  .tool-card      { padding: 1.25rem 1rem; }
  .tool-icon      { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: .75rem; }
  .tool-title     { font-size: .92rem; }
  .tool-desc      { font-size: .82rem; }

  /* Ressources */
  .res-card       { padding: 1.1rem; }
  .ressources-filters { gap: .4rem !important; }
  .res-filter     { font-size: .78rem; padding: .35rem .75rem; }

  /* FAQ */
  .faq-btn        { font-size: .86rem; padding: .85rem 1rem; }
  .faq-body .accordion-body { font-size: .85rem; padding: .75rem 1rem; }

  /* Partners */
  .partners-grid  { grid-template-columns: repeat(2, 1fr); gap: .75rem; }

  /* CTA */
  .cta-card       { padding: 2rem 1.25rem; border-radius: 1.25rem; }
  .cta-card .section-title { font-size: 1.3rem; }

  /* Contact */
  .contact-info   { margin-bottom: 2rem; }

  /* Footer */
  .footer-desc    { max-width: 100%; font-size: .88rem; }
  .footer-title   { font-size: .82rem; }
  .footer-link    { font-size: .82rem; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — Téléphones moyens (≤ 575px)
════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  /* Spacing */
  .py-6 { padding-top: 2.75rem; padding-bottom: 2.75rem; }

  /* Typography */
  .hero-title    { font-size: 1.6rem; }
  .section-title { font-size: 1.3rem; }

  /* Hero */
  .hero-section        { padding: 5rem 0 3rem; }
  .hero-subtitle       { font-size: .9rem; }
  .hero-cta .btn       { width: 100%; padding: .7rem 1rem !important; font-size: .88rem; }
  .hero-stats          { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .stat-divider        { display: none; }
  .stat-number         { font-size: 1.5rem; }
  .hero-card-body      { padding: 1rem; }
  .score-ring          { width: 90px; height: 90px; }
  .ring-svg            { width: 90px; height: 90px; }
  .ring-score          { font-size: 1.3rem; }

  /* Parcours */
  .step-card           { flex-wrap: wrap; }
  .step-tag            { align-self: flex-start; }

  /* Partners */
  .partners-grid       { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .partner-logo        { padding: .75rem; }

  /* FAQ */
  .faq-btn             { font-size: .83rem; padding: .75rem .9rem; }

  /* CTA */
  .cta-card            { padding: 1.75rem 1rem; }
  .cta-btns            { flex-direction: column; width: 100%; }
  .cta-btns .btn       { width: 100%; justify-content: center; }

  /* Ressources filters scroll on mobile */
  .ressources-filters  { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: .5rem; justify-content: flex-start !important; -webkit-overflow-scrolling: touch; }
  .ressources-filters::-webkit-scrollbar { height: 3px; }
  .ressources-filters::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 99px; }
  .res-filter          { flex-shrink: 0; }

  /* Contact */
  .contact-form .btn   { width: 100%; }

  /* Scroll-to-top */
  .scroll-top-btn      { bottom: 1rem; right: 1rem; width: 36px; height: 36px; font-size: .85rem; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — Petits téléphones (≤ 399px)
════════════════════════════════════════════════ */
@media (max-width: 399.98px) {
  .py-6               { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .hero-title         { font-size: 1.4rem; }
  .section-title      { font-size: 1.18rem; }
  .hero-card-body     { padding: .75rem; }
  .score-ring         { width: 80px; height: 80px; }
  .ring-svg           { width: 80px; height: 80px; }
  .ring-score         { font-size: 1.15rem; }
  .sb-item            { grid-template-columns: 62px 1fr 30px; gap: .3rem; }
  .sb-label           { font-size: .65rem; }
  .step-number        { width: 32px; height: 32px; font-size: .72rem; }
  .faq-btn            { font-size: .8rem; padding: .65rem .8rem; }
  .partners-grid      { grid-template-columns: repeat(2, 1fr); }
  .navbar-logo        { height: 18px; }
}
