/* Couleurs de l'ONG : Bleu espoir et Orange action */
:root {
    --primary: #0056b3;
    --secondary: #ff7b00;
    --dark: #333;
    --light: #f4f4f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { line-height: 1.6; color: var(--dark); }

.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary); text-decoration: none; }
.logo span { color: var(--secondary); }
.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.btn-don {
    background: var(--secondary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
}

/* Style pour le conteneur du logo */
.navbar-brand.logo {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Style précis pour l'image du logo */
.navbar-brand.logo img {
    height: 60px;    /* Ajustez cette valeur selon vos goûts (entre 50px et 70px) */
    width: auto;      /* Garde les proportions de l'image pour éviter de l'écraser */
    max-width: 100%;  /* Sécurité pour les petits écrans */
    object-fit: contain;
    transition: transform 0.3s ease; /* Petit effet au survol */
}

/* Effet au survol (optionnel) */
.navbar-brand.logo img:hover {
    transform: scale(1.05);
}

/* Adaptation pour mobile (si besoin d'un logo plus petit sur smartphone) */
@media (max-width: 768px) {
    .navbar-brand.logo img {
        height: 45px; 
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero-content h1 { font-size: 48px; margin-bottom: 20px; }
.hero-content p { font-size: 20px; margin-bottom: 30px; }
.hero-btns a { text-decoration: none; padding: 15px 30px; border-radius: 5px; font-weight: bold; margin: 0 10px; }
.btn-main { background: var(--primary); color: #fff; }
.btn-sub { background: #fff; color: var(--primary); }

/* Stats */
.stats { padding: 40px 0; background: var(--primary); color: #fff; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-item i { font-size: 40px; margin-bottom: 10px; color: var(--secondary); }

/* About */
.about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-img img { width: 100%; border-radius: 10px; box-shadow: 10px 10px 0 var(--secondary); }
.about-text h2 { color: var(--primary); margin-bottom: 20px; font-size: 32px; }
.about-text ul { list-style: none; margin-top: 20px; }
.about-text ul li { margin-bottom: 10px; }
.about-text i { color: var(--secondary); margin-right: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .about-grid, .grid-3 { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Penser à un menu burger ici */
}


/* --- SLIDER CSS --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Hauteur du slide */
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Texte Animé */
.slide-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
}

.slide-text h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #ff7b00; /* Orange Espoir */
}

/* Animations de texte */
.active .ani-top {
    animation: fadeInUp 0.8s forwards;
}
.active .ani-bottom {
    animation: fadeInUp 1s 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contrôles */
.slider-controls span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 15px;
    z-index: 100;
}
.next { right: 20px; }
.prev { left: 20px; }

/* Navbar Sticky */
.navbar {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}


/* Ajustements pour le menu mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .btn-don {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

/* Style du bouton burger personnalisé (optionnel) */
.navbar-toggler {
    border: none;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Forcer l'affichage vertical sur mobile quand le menu est ouvert */
@media (max-width: 991px) {
    .navbar-collapse.show {
        display: block !important;
        width: 100%;
        background: #ffffff;
        padding-bottom: 20px;
    }
    
    .navbar-nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-item {
        padding: 10px 0;
        border-bottom: 1px solid #f8f9fa;
    }

    /* Animation fluide de l'ouverture */
    .collapsing {
        transition: height 0.35s ease;
    }
}


/* actualites et blog */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    height: 3rem; /* Pour garder l'alignement si les titres varient */
    overflow: hidden;
}

#actualites .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}


/* Style des articles en liste */
article.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

article.card:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.object-fit-cover {
    object-fit: cover;
}

/* Sidebar design */
aside .card {
    border-radius: 15px;
}

aside .btn-primary {
    background-color: var(--primary);
    border: none;
}

/* Pagination ou boutons de lien */
.btn-link:hover {
    color: var(--secondary) !important;
}

/* Animation sur les articles */
.article-hover {
    transition: 0.3s;
}
.article-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}


.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}
.article-body strong {
    color: var(--primary);
    font-weight: 700;
}
.article-hover { transition: 0.3s; }
.article-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

.card img {
    width: 100%;
    height: 250px;       /* Fixe une hauteur égale pour toutes les cartes */
    object-fit: cover;   /* Coupe l'image proprement sans l'écraser */
    object-position: center;
}


.article-body h3 {
    color: var(--primary);
    margin-top: 25px;
    font-weight: 600;
}

.article-body p {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 15px;
}

.article-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 8px;
}


.footer-section {
    background-color: #1a1a1a;
}

/* Section CTA Jaune/Orange pour le don */
.footer-cta {
    background-color: #f39c12; /* Ou le jaune spécifique de VESP */
    color: #000;
}

.footer-cta h2 {
    font-size: 2.2rem;
}

/* Styles principaux du footer */
.footer-main {
    background-color: #121212;
    padding-top: 80px;
}

.footer-main h5, .footer-main h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-main a:hover {
    color: #f39c12 !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

.text-primary {
    color: #f39c12 !important; /* Couleur d'accentuation */
}

@media (max-width: 768px) {
    .footer-cta h2 { font-size: 1.6rem; }
}

/* Positionnement et index de profondeur */
.toast-container {
    z-index: 9999; /* Pour être certain qu'il passe devant tout (slider, menu, etc.) */
    bottom: 20px !important;
    right: 20px !important;
}

/* Style interne du Toast */
.toast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    min-width: 300px;
}

/* Animation d'entrée personnalisée (optionnel) */
.toast.show {
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Couleurs spécifiques selon le succès */
.toast.bg-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
}

.toast-body {
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}