/* ==========================================================================
   VARIABLES ET THÈME CULTUREL (Inspiré du Rwanda)
   ========================================================================== */
:root {
    --primary: #064e3b;       /* Vert profond des collines rwandaises */
    --primary-light: #0d9488; /* Vert turquoise émeraude */
    --accent: #f59e0b;        /* Jaune doré / Orange chaleureux traditionnel */
    --sky: #00a3e0;           /* Bleu azur officiel et lumineux du Rwanda 🇷🇼 */
    --bg-light: #f8fafc;      /* Fond épuré, blanc cassé moderne */
    --text-dark: #0f172a;     /* Anthracite foncé pour la lecture */
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   STRUCTURE GÉNÉRALE & RESPONSIVE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 80px; /* Évite que le footer ne cache le contenu */
}

/* ==========================================================================
   NAVIGATION ADAPTÉE AUX MOBILES
   ========================================================================== */
.navbar {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.15);
    border-bottom: 3px solid var(--accent); /* Filet doré horizontal */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.2rem;
    position: relative;
    transition: var(--transition);
}

/* Effet de survol épuré et moderne */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* ADAPTATION MOBILE AUTOMATIQUE (Responsive) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   COMPOSANTS VISUELS (Pour les futures rubriques)
   ========================================================================== */

/* Hero Section (Accueil) - Utilisation du bleu azur et du vert */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #043427 50%, var(--sky) 100%);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
    border-bottom-right-radius: 50px; /* Courbe asymétrique moderne */
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #e2e8f0;
}

/* Bouton moderne avec l'énergie du jaune or */
.btn-cta {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    background-color: #f59e0b;
}

/* ==========================================================================
   PIED DE PAGE (Footer)
   ========================================================================== */
footer {
    background-color: #0b1329;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

/* ==========================================================================
   STYLE DE LA GALERIE PHOTOS
   ========================================================================== */
.carte-photo {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.carte-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(6, 78, 59, 0.2);
    border-color: var(--primary-light);
}

.legende-photo {
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    background: var(--white);
    border-top: 1px solid #f1f5f9;
}

/* Liens textuels globaux habillés de bleu azur */
main a {
    color: var(--sky);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
main a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}
