/*
 * Fichier CSS unifié pour la page d'accueil (index.php)
 * Palette de couleurs basée sur l'identité visuelle de l'ONG
 * Vert : #4CAF50
 * Orange : #FFA726
*/

/* --- Définition des variables de couleur --- */
:root {
    --green-themed: #4CAF50;
    --orange-themed: #FFA726;
    --background-color: #f4f7f6;
    --card-background: #fff;
    --text-color: #333;
}

/* Styles généraux pour le corps et les conteneurs */
body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* --- En-tête et bannière de bienvenue --- */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-container {
    width: 5%;
    min-width: 50px;
}

.logo {
    width: 100%;
    height: auto;
}

.welcome-banner {
    flex-grow: 1;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.welcome-text {
    display: inline-block;
    animation: marquee-animation 15s linear infinite;
    font-size: 1.5em;
    color: var(--green-themed); /* Couleur verte pour le texte de bienvenue */
    font-weight: bold;
}

@keyframes marquee-animation {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- Styles pour la barre de navigation et le titre de la page --- */
.main-nav {
    text-align: center;
    margin-bottom: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #e9ecef;
}

.page-title {
    text-align: center;
    color: var(--green-themed); /* Couleur verte pour le titre de la page */
    font-size: 2.5em;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* --- Grille de cartes pour le tableau de bord --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Sélection des cartes pour varier les couleurs */
.card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Appliquez le vert sur une carte sur deux */
.card:nth-child(2n) .card-title {
    color: var(--green-themed);
}

/* Appliquez l'orange sur l'autre carte sur deux */
.card:nth-child(2n+1) .card-title {
    color: var(--orange-themed);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 10px;
    margin-bottom: 10px;
}

.card-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
}

/* Utilitaires */
.logo-container-initial {
    text-align: center;
    padding-top: 10px;
}

.logo-container-initial img {
    width: 5%;
}

