/* =========================================
   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;
    line-height: 1.6;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   3. BARRE DE NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    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;
    align-items: center;
}

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

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* =========================================
   4. EN-TÊTE ET GRILLE DE TEXTE
   ========================================= */
.content-wrapper {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    color: var(--accent-color);
    margin-top: 0;
}

/* =========================================
   5. GALERIE : ALIGNEMENT DES COLONNES
   ========================================= */

/* Le conteneur aligne ses enfants (les div column-group) côte à côte */
/* Le conteneur aligne les 3 groupes HORIZONTALEMENT */
.screenshot-container {
    display: flex;
    flex-direction: row;
    /* Force l'alignement en ligne (colonnes) */
    justify-content: center;
    align-items: flex-start;
    /* Aligne le haut des colonnes */
    gap: 30px;
    /* Espace entre les colonnes */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* Chaque groupe aligne ses images VERTICALEMENT */
.column-group {
    display: flex;
    flex-direction: column;
    /* Force l'empilement des images */
    gap: 20px;
    /* Espace entre les images d'une même colonne */
    flex: 1;
    /* Donne une largeur égale aux 3 colonnes */
    min-width: 250px;
    /* Largeur minimale pour éviter qu'elles soient trop fines */
}

/* Style des images pour qu'elles ne débordent pas */
.project-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.project-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

/* Si l'écran est trop petit (Mobile), on repasse en une seule colonne */
@media (max-width: 800px) {
    .screenshot-container {
        flex-direction: column;
        align-items: center;
    }

    .column-group {
        width: 100%;
    }
}

/* Style des images */
.project-img {
    width: 100%;
    /* L'image prend toute la largeur de sa colonne */
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.project-img:hover {
    transform: scale(1.03);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.2);
}