:root {
    --primary: #0284c7; /* Bleu ingénieur */
    --dark: #0f172a;
    --bg: #f8fafc;
    --white: #ffffff;
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; background: var(--bg); color: var(--dark); }

/* Nav */
nav {
    display: flex; justify-content: space-between; padding: 1.5rem 3rem;
    background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--primary); }
nav ul { display: flex; list-style: none; gap: 20px; padding: 0; margin: 0; }
nav a, nav i { text-decoration: none; color: var(--dark); cursor: pointer; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* Hero */
.hero {
    text-align: center; padding: 5rem 1rem; background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
}
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.hero p { color: #64748b; font-size: 1.2rem; max-width: 600px; margin: 0 auto; }
.tech-stack { font-size: 2rem; margin-top: 1rem; color: var(--primary); gap: 1rem; display: flex; justify-content: center; }

/* Sections */
section { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.section-title { 
    border-left: 5px solid var(--primary); padding-left: 1rem; margin-top: 3rem; margin-bottom: 2rem;
}

/* Grille Projets */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.content { padding: 1.5rem; }
.tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: #e0f2fe; color: var(--primary); font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 600; }
.btn-delete { color: red; cursor: pointer; float: right; margin-top: 10px; font-size: 0.9rem; }

/* Admin & Modal */
.hidden { display: none !important; }
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content { background: white; padding: 2rem; border-radius: 8px; width: 300px; text-align: center; }
.admin-container { background: #334155; color: white; padding: 2rem; margin: 2rem; border-radius: 8px; }
input, select, textarea { width: 100%; margin: 5px 0; padding: 10px; border-radius: 4px; border: none; }
button { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; width: 100%; margin-top: 10px;}