/* Reset et Polices */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0f172a; /* Fond bleu très sombre */
    color: #e2e8f0; /* Texte clair */
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #38bdf8; /* Bleu néon */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

.btn-contact {
    background-color: #38bdf8;
    color: #0f172a !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://source.unsplash.com/random/1920x1080/?code,technology');
    background-size: cover;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 20px;
}

/* Boutons */
.buttons {
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    background-color: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
    transition: transform 0.2s;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

.btn:hover {
    transform: scale(1.05);
}

/* Sections Générales */
.section {
    padding: 80px 10%;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    border-bottom: 2px solid #38bdf8;
    display: inline-block;
    padding-bottom: 10px;
}

/* Cards À propos */
.about-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: #1e293b;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card i {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 15px;
}

/* Grille Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Couleurs spécifiques icones */
.python i { color: #ffe873; }
.html i { color: #e34c26; }
.js i { color: #f7df1e; }
.dart i { color: #00b4ab; }

/* Footer */
footer {
    padding: 20px;
    background-color: #020617;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.contact-info {
    margin-top: 40px; 
    margin-bottom: 20px; 
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #cbd5e1; /* Une couleur gris clair */
}

/* --- LE BOUTON BURGER (Caché sur PC) --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #e2e8f0;
}

/* --- VERSION MOBILE --- */
@media screen and (max-width: 768px) {
    
    /* On affiche le bouton burger */
    .hamburger {
        display: block;
    }

    /* On configure le menu pour qu'il soit caché par défaut */
    .nav-links {
        display: none; /* CACHÉ PAR DÉFAUT */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #1e293b; /* Fond du menu ouvert */
        position: absolute;
        top: 70px; /* Juste en dessous de la barre nav */
        left: 0;
        padding: 20px 0;
        border-top: 1px solid #38bdf8;
    }

    /* Cette classe sera ajoutée par le JavaScript pour afficher le menu */
    .nav-links.active {
        display: flex;
    }

    /* Ajustements du reste du design mobile */
    .hero h1 { font-size: 1.8rem; }
    .hero h2 { font-size: 1.2rem; }
    .section { padding: 50px 5%; }
    .card { width: 100%; }
    .about-container { flex-direction: column; }
    .buttons { display: flex; flex-direction: column; gap: 15px; }
}

/* --- Style pour la carte Projet --- */
.project-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #1f2937; /* Gris foncé légèrement plus clair que le fond */
    padding: 25px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
}

/* Style de l'image */
.project-card img {
    width: 300px; /* Taille fixe pour l'image */
    height: 200px;
    object-fit: cover; /* Recadre l'image proprement */
    border-radius: 8px;
    border: 2px solid #3b82f6; /* Bordure bleue pour rappeler ton thème */
}

/* Conteneur du texte */
.project-info {
    flex: 1;
    text-align: left;
    color: #e5e7eb; /* Texte clair */
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #60a5fa; /* Titre en bleu clair */
}

.project-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Liste des technologies (les badges) */
.technologies {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.technologies li {
    background-color: #374151;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #9ca3af;
}

/* Responsive : Sur mobile, on met l'image au dessus */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        text-align: center;
    }
    
    .project-info {
        text-align: center;
    }
    
    .technologies {
        justify-content: center;
    }
    
    .project-card img {
        width: 100%;
        max-width: 400px;
    }
}