: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; }

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 5px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.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;
}

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;
}