/* ==========================================================
   AEIDS Mali — Feuille de style principale
   ========================================================== */

:root {
    --aeids-green: #1e7a34;
    --aeids-green-dark: #145523;
    --aeids-green-light: #e8f5ec;
    --aeids-gold: #f2a71b;
    --aeids-gold-dark: #d68f0e;
    --aeids-dark: #17281c;
    --aeids-gray: #6c757d;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--aeids-dark);
}

a { text-decoration: none; }

.text-green { color: var(--aeids-green) !important; }
.text-gold { color: var(--aeids-gold) !important; }
.bg-green { background-color: var(--aeids-green) !important; }
.bg-green-light { background-color: var(--aeids-green-light) !important; }
.bg-gold { background-color: var(--aeids-gold) !important; }

.btn-primary,
.btn-vert {
    background-color: var(--aeids-green);
    border-color: var(--aeids-green);
}
.btn-primary:hover,
.btn-vert:hover {
    background-color: var(--aeids-green-dark);
    border-color: var(--aeids-green-dark);
}

.btn-gold {
    background-color: var(--aeids-gold);
    border-color: var(--aeids-gold);
    color: #fff;
}
.btn-gold:hover {
    background-color: var(--aeids-gold-dark);
    border-color: var(--aeids-gold-dark);
    color: #fff;
}

.btn-outline-vert {
    border-color: var(--aeids-green);
    color: var(--aeids-green);
}
.btn-outline-vert:hover {
    background-color: var(--aeids-green);
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title .eyebrow {
    display: inline-block;
    color: var(--aeids-gold-dark);
    background: #fff5e2;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section-title h2 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}
.section-title p {
    color: var(--aeids-gray);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--aeids-dark);
    color: #d7e4da;
    font-size: 0.85rem;
    padding: 0.45rem 0;
}
.top-bar a { color: #d7e4da; }
.top-bar a:hover { color: var(--aeids-gold); }
.top-bar-infos span { margin-right: 1.75rem; }
.top-bar-social a {
    display: inline-flex;
    margin-left: 0.9rem;
    font-size: 0.95rem;
}

/* ---------- Navbar ---------- */
.main-navbar {
    padding: 0.6rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.brand-text { line-height: 1.15; }
.brand-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--aeids-green);
    font-size: 1.15rem;
}
.brand-slogan {
    display: block;
    font-size: 0.72rem;
    color: var(--aeids-gray);
}
.main-navbar .nav-link {
    font-weight: 600;
    color: var(--aeids-dark);
    padding: 0.6rem 0.9rem;
    position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--aeids-green);
}
.btn-donate {
    background-color: var(--aeids-gold);
    color: #fff !important;
    font-weight: 700;
    padding: 0.55rem 1.3rem;
    border-radius: 30px;
    margin-left: 0.5rem;
}
.btn-donate:hover { background-color: var(--aeids-gold-dark); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--aeids-green-dark) 0%, var(--aeids-green) 60%, #2c9146 100%);
    color: #fff;
    padding: 6rem 0 8rem;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/logo.jpg') center right -80px no-repeat;
    background-size: 480px;
    opacity: 0.08;
    pointer-events: none;
}
.hero h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.hero .highlight { color: var(--aeids-gold); }
.hero p.lead {
    color: #eafaef;
    font-size: 1.15rem;
    max-width: 560px;
}
.hero-stats {
    position: relative;
    margin-top: -4.5rem;
    z-index: 2;
}
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 1rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    height: 100%;
}
.stat-card i { font-size: 2rem; color: var(--aeids-gold); }
.stat-card .stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--aeids-green);
    display: block;
    margin-top: 0.4rem;
}
.stat-card .stat-label { color: var(--aeids-gray); font-size: 0.9rem; }

/* ---------- Domaines ---------- */
.domaine-card {
    border: 1px solid #eef1ee;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: all 0.25s ease;
    background: #fff;
}
.domaine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(30,122,52,0.12);
    border-color: transparent;
}
.domaine-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--aeids-green-light);
    color: var(--aeids-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.domaine-card h5 { font-size: 1.05rem; }
.domaine-card p { color: var(--aeids-gray); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Cards projets / actus ---------- */
.card-projet, .card-actu {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.card-projet:hover, .card-actu:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(0,0,0,0.1);
}
.card-img-top-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--aeids-green-light);
}
.card-img-top-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.card-projet:hover .card-img-top-wrap img,
.card-actu:hover .card-img-top-wrap img { transform: scale(1.08); }
.card-img-top-wrap .no-image {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--aeids-green);
    font-size: 2.5rem;
}
.badge-statut {
    position: absolute; top: 12px; left: 12px;
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
    border-radius: 30px;
    font-weight: 600;
}
.card-projet .card-body h5, .card-actu .card-body h5 {
    font-size: 1.05rem;
}
.card-meta {
    font-size: 0.8rem;
    color: var(--aeids-gray);
}

/* ---------- Sections génériques ---------- */
.section { padding: 5rem 0; }
.section-alt { background: #f8faf8; }

.page-banner {
    background: linear-gradient(135deg, var(--aeids-green-dark), var(--aeids-green));
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 0.5rem; }
.page-banner .breadcrumb { justify-content: center; margin-bottom: 0; }
.page-banner .breadcrumb a { color: #d9f2df; }
.page-banner .breadcrumb-item.active { color: var(--aeids-gold); }

/* ---------- Galerie ---------- */
.galerie-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.galerie-item:hover img { transform: scale(1.1); }
.galerie-caption {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff; padding: 1.5rem 1rem 0.75rem;
    font-size: 0.9rem; font-weight: 600;
}

/* ---------- Formulaires ---------- */
.form-control:focus, .form-select:focus {
    border-color: var(--aeids-green);
    box-shadow: 0 0 0 0.2rem rgba(30,122,52,0.15);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--aeids-dark); color: #c9d6cc; }
.footer-newsletter {
    background: var(--aeids-green);
    color: #fff;
    padding: 2rem 0;
}
.footer-newsletter h4 { color: #fff; font-size: 1.25rem; }
.footer-main { padding: 3.5rem 0 2rem; }
.footer-brand { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #c9d6cc; }
.footer-links a:hover { color: var(--aeids-gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 0.75rem; display: flex; gap: 0.6rem; }
.footer-contact a { color: #c9d6cc; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: #fff; margin-right: 0.5rem;
}
.footer-social a:hover { background: var(--aeids-gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 0;
    font-size: 0.85rem;
}

.back-to-top {
    position: fixed; right: 22px; bottom: 22px;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--aeids-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--aeids-green-dark); color: #fff; }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--aeids-green); }
.pagination .page-item.active .page-link { background-color: var(--aeids-green); border-color: var(--aeids-green); }

@media (max-width: 991.98px) {
    .hero { padding: 3.5rem 0 6rem; text-align: center; }
    .hero p.lead { margin: 0 auto; }
    .hero-stats { margin-top: -3.5rem; }
}

@media (max-width: 575.98px) {
    .hero h1 { font-size: 1.75rem; }
    .hero p.lead { font-size: 1rem; }
    .footer-main { padding-left: 1.25rem; padding-right: 1.25rem; }
}
