/* =========================================
   1. POLICE ET VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
}

/* =========================================
   2. STRUCTURE GÉNÉRALE
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 100px;
    /* Espace pour la navbar fixe */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

/* =========================================
   3. BARRE DE NAVIGATION (NAVBAR)
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

nav h1 {
    font-size: 1.2rem;
    margin: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================
   4. GRILLE D'IMAGES (GALLERY)
   ========================================= */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    width: 90%;
    margin: 40px auto;
}

img {
    width: 100%;
    max-width: 500px;
    /* Ajuste la taille de tes captures */
    height: auto;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

img:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 800px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    img {
        max-width: 100%;
    }

    nav h1 {
        font-size: 1rem;
    }
}

/* =========================================
   BARRE DE NAVIGATION (NAVBAR)
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* Espace entre retour et titre */
    align-items: center;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

.nav-title {
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

/* =========================================
   MISE EN PAGE DU CONTENU
   ========================================= */
.content-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

.intro {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Grille d'images */
.gallery-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project-img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-img:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}