:root {
    --primary: #2d8a3c; /* Vert Mpongo */
    --primary-dark: #1e6028;
    --black: #111827;
    --grey-bg: #f3f4f6; /* Gris clair signature QAY */
    --white: #ffffff;
    --rainbow: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    --radius-pill: 50px;
    --radius-card: 32px;
    --shadow: 0 20px 40px rgba(0,0,0,0.05);
}

body {
    background-color: var(--grey-bg);
    color: var(--black);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Header & Rainbow Bar */
.rainbow-top { height: 5px; background: var(--rainbow); position: fixed; top: 0; width: 100%; z-index: 2000; }

/* --- Styles de base du Header --- */
.main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2ecc71;
}

.btn-don {
    background: #e74c3c;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px;
}

/* --- Menu Mobile (Hamburger) --- */
.mobile-menu-btn {
    display: none; /* Caché sur desktop */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* --- MEDIA QUERY (Mobile) --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex; /* Visible sur mobile */
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Caché à droite */
        width: 70%;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 80px;
        transition: 0.4s ease-in-out;
    }

    .nav-menu.active {
        right: 0; /* Apparition */
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
        gap: 20px;
    }

    /* Animation du bouton hamburger en "X" */
    .mobile-menu-btn.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--black); 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase;
}

/* Boutons Pill */
.btn-qay {
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.btn-primary { background: var(--primary); color: white !important; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(45, 138, 60, 0.2); }

/* Cartes et Sections */
.container { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }

.card-qay {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

section.hero .container {
    z-index: 0;
}

h1 { font-size: 4rem; font-weight: 900; letter-spacing: -2px; line-height: 1; }
h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.text-highlight { color: var(--primary); }



footer {
    background: #111827; /* Fond noir profond pour le footer */
    padding: 5rem 0 2rem;
    color: white;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--primary);
}

.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grant-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grant-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 138, 60, 0.1);
}

label {
    font-size: 0.9rem;
    color: var(--black);
}

select {
    cursor: pointer;
    font-family: inherit;
}

/* Tags des pays */
.country-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.country-pill {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.country-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0fdf4;
}

/* Processus par étapes */
.process-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    position: relative;
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(45, 138, 60, 0.3);
}

/* =========================================
   BACKGROUNDS VIVANTS (ANIMATIONS CSS)
   ========================================= */

/* Définition de l'animation */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Classe pour les HERO SECTIONS (Accueil) - Effet plus marqué avec du vert */
.bg-vivant-hero {
    /* On mélange du blanc, du gris clair et des touches de vert Mpongo très clair */
    background: linear-gradient(-45deg, #ffffff, #f3f4f6, #e6f4ea, #d1e7dd);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    /* On s'assure que le texte reste lisible */
    position: relative;
    z-index: 1;
}

/* Classe pour les HEADERS des pages internes - Effet très subtil */
.bg-vivant-subtle {
    /* Un mélange très léger de blanc et de gris avec une infime pointe de couleur */
    background: linear-gradient(-45deg, #ffffff, #f8f9fa, #f0f2f5, #ffffff);
    background-size: 300% 300%;
    animation: gradient-animation 20s ease infinite;
}

/* Petit ajustement pour que le header ne soit pas transparent si on utilise l'animation */
header.bg-vivant-subtle, header.bg-vivant-hero {
    backdrop-filter: none; /* On désactive le flou si on a un fond animé */
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Style de base des liens du menu */
.nav-links li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    padding: 8px 12px;
    transition: all 0.3s ease; /* Transition douce pour toutes les propriétés */
    position: relative;
}

/* Effet HOVER : Changement de couleur et ajout d'une ligne discrète */
.nav-links li a:hover {
    color: var(--primary);
}

/* Effet ACTIVE : Style quand on est sur la page */
.nav-links li a.active {
    color: var(--primary);
}

/* Optionnel : Une petite barre colorée sous l'élément actif/hover */
.nav-links li a.active::after,
.nav-links li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: 0.3s;
}

/* On retire l'effet de barre pour le bouton de don car il a déjà son propre style */
.nav-links li a.btn-primary::after {
    display: none;
}

/* hero section */

.hero {
    position: relative;
    background: url('images/mpongo-hero-1.jpg') center/cover no-repeat;
    color: white;
}

/* Overlay sombre */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

/* Texte au-dessus de l'overlay */
.hero * {
    position: relative;
    z-index: 1;
}

/* Ombre du texte */
.hero h1,
.hero p {
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}


/*end home hero section*/ 


/* Container principal */
.mpongo-breadcrumb {
  padding: 20px 0;
  background-color: #ffffff; /* Fond blanc pur pour le côté corporate */
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Liste des éléments */
.breadcrumb-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

/* Style des items */
.breadcrumb-item {
  font-size: 14px;
  color: #555; /* Gris foncé neutre */
  display: flex;
  align-items: center;
}

/* Séparateur entre les liens */
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 15px;
  color: #ccc;
  font-weight: 300;
}

/* Style du lien "Accueil" */
.breadcrumb-item a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #2E8B37; /* Le vert du logo MPONGO au survol */
}

/* Style de la page active (Appels à projets) */
.breadcrumb-item.active {
  color: #2E8B37; /* Vert principal du logo */
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

/* Touche Arc-en-ciel Minimaliste (Uniquement sous l'élément actif) */
.breadcrumb-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, 
    #E73323, #F89B21, #F6EB34, #2E8B37, #2E5AA5, #8E4396
  );
  border-radius: 2px;
}

/* ====== BREADCRUMB – section visuelle ====== */
.mpongo-breadcrumb {
  --overlay: rgba(255, 255, 255, 0.68);           /* voile par-dessus l’image (fond clair corporate) */
  --overlay-dark: rgba(0, 0, 0, 0.25);            /* renfort discret pour lisibilité sur écrans HDR */
  --text: #0b1f17;                                /* texte par défaut */
  --text-active: #2E8B37;                         /* vert MPONGO pour l’item actif */
  --sep: #cfcfcf;                                  /* séparateur */
  --shadow: 0 3px 10px rgba(0,0,0,0.18);
  padding: clamp(28px, 6vw, 64px) 0;
  position: relative;
  background:
    url("images/breadcrumb-bg-1.jpg") center/contain no-repeat,
    #ffffff;
  /* centre l’image vers le haut pour dégager l’espace texte */
  background-position: center top; 
}

/* Overlay pour assurer la lisibilité du texte (aucun texte dans l'image) */
.mpongo-breadcrumb::before {
  content: "";
  position: absolute;
  inset: 0;
  /* léger fond blanc pour cohérence corporate + léger assombrissement au centre */
  background:
    radial-gradient(60% 60% at 50% 35%, var(--overlay-dark), transparent 65%),
    var(--overlay);
  z-index: 0;
}

/* Contenu par-dessus l’overlay */
.mpongo-breadcrumb .container,
.mpongo-breadcrumb nav,
.mpongo-breadcrumb .breadcrumb-list {
  position: relative;
  z-index: 1;
}

/* ====== BREADCRUMB – liste ====== */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  color: var(--text);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Items */
.breadcrumb-item {
  font-size: clamp(13px, 1.7vw, 15px);
  color: #555;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  text-wrap: balance;
}

/* Liens */
.breadcrumb-item a {
  color: #000;
  text-decoration: none;
  transition: color .25s ease;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15); /* renforce la lisibilité sur l'image */
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  color: #2E8B37;
  outline: none;
}

/* Séparateur “/” inséré en CSS (jamais dans l'image) */
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 12px;
  color: var(--sep);
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* État actif (page courante) */
.breadcrumb-item.active {
  color: var(--text-active);
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
}

/* Soulignement arc-en-ciel minimal sous l’élément actif (ta règle existante) */
.breadcrumb-item.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(to right, #E73323, #F89B21, #F6EB34, #2E8B37, #2E5AA5, #8E4396);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
  .mpongo-breadcrumb {
    background-size: 780px auto;       /* image un peu plus petite */
  }
}

@media (max-width: 768px) {
  .mpongo-breadcrumb {
    padding: 34px 0;
    background-size: 640px auto;
    background-position: center 6px;   /* remonte légèrement l'image */
  }
  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .mpongo-breadcrumb {
    padding: 26px 0;
    background-size: 520px auto;
    background-position: center 0;
  }
  .breadcrumb-item {
    font-size: 13px;
  }
}

/* Accessibilité — contraste renforcé si mode forcé */
@media (prefers-contrast: more) {
  .mpongo-breadcrumb::before {
    background:
      radial-gradient(60% 60% at 50% 35%, rgba(0,0,0,0.45), transparent 65%),
      rgba(255,255,255,0.8);
  }
}
footer div.container div img {
    height: 100px;
    width: auto;
    filter: none !important;
    margin-bottom: 0 !important;
}
.nav-menu a.active {
    color: #19811b;
    display: inline-block;
    position: relative;
}
.nav-menu a.active:before {
    content: " ";
    background: var(--rainbow);
    width: 100%;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}