/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth; /* Pour un défilement fluide */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    color: #333;
}

/* ===== LAYOUT ===== */
header, footer {
    background-color: #111;
    color: white;
    width: 100%;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* ===== NAVBAR (FIX OVERLAP) ===== */
header {
    position: sticky; /* Reste en haut lors du défilement */
    top: 0;
    z-index: 1000; /* Empêche la navbar de passer sous d'autres éléments */
    padding: 1rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4CAF50;
}

/* ===== CONTENU (FIX OVERLAP) ===== */
main {
    padding-top: 2rem; /* Espace sous la navbar */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Sections */
section {
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

/* ===== FOOTER (FIX ESPACE BLANC) ===== */
footer {
    padding: 2rem;
    margin-top: auto; /* Pousse le footer vers le bas */
    text-align: center;
}

/* ===== AUTRES ÉLÉMENTS ===== */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: #f0f0f0;
}

.project-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }
}
