/* --- Variables & Base --- */
:root {
    --primary: #00e5ff;      /* Cyan néon */
    --secondary: #7000ff;    /* Violet */
    --bg-dark: #0f172a;      /* Fond principal */
    --bg-card: #1e293b;      /* Fond des cartes */
    --text: #f1f5f9;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', sans-serif; background: var(--bg-dark); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Navbar --- */
.navbar { display: flex; justify-content: space-between; padding: 20px 5%; background: rgba(15,23,42,0.95); position: fixed; top: 0; width: 100%; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.nav-links { display: flex; gap: 30px; }
.nav-links a:hover { color: var(--primary); }

/* --- Hero --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 10%; background: radial-gradient(circle at top right, #1e293b, var(--bg-dark)); }
.hero-content { display: flex; width: 100%; justify-content: space-between; align-items: center; flex-wrap: wrap-reverse; margin-top: 60px;}
.hero-text h1 { font-size: 3rem; line-height: 1.1; margin: 10px 0; }
.hero-text h3 { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 20px; }
.hero-text span { color: var(--primary); }
.cta-buttons { display: flex; gap: 15px; margin-top: 20px; }
.btn { padding: 12px 25px; border-radius: 5px; font-weight: bold; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #000; box-shadow: 0 0 15px rgba(0,229,255,0.4); }
.btn-secondary { border-color: var(--primary); color: var(--primary); }
.hero-img img { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); box-shadow: 0 0 30px rgba(0,229,255,0.2); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- Sections --- */
.section-padding { padding: 80px 10%; }
.bg-darker { background: #0b1120; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header .line { width: 60px; height: 4px; background: var(--primary); margin: 0 auto; }

/* --- Cards (Skills & Projects) --- */
.skills-container, .projects-grid, .watch-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.skill-card, .project-card, .watch-card { background: var(--bg-card); padding: 25px; border-radius: 15px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); }
.skill-card:hover, .project-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.skill-card .icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; text-align: center; }
.skill-card ul { padding-left: 20px; color: var(--text-muted); }
.skill-card li { list-style: disc; margin-bottom: 5px; }

.card-image { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.8); border-radius: 10px 10px 0 0; }
.infra-bg { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.net-bg { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.stage-bg { background: linear-gradient(135deg, #059669, #34d399); }
.tags span { background: rgba(0,229,255,0.1); color: var(--primary); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; margin: 5px 5px 0 0; display: inline-block; }
.btn-link { color: var(--primary); font-weight: bold; display: block; margin-top: 15px; }

/* --- Watch (Veille) --- */
.watch-card { border-left: 4px solid var(--primary); }
.watch-date { font-size: 0.85rem; color: var(--primary); display: block; margin-bottom: 8px; }
.center-btn { text-align: center; margin-top: 40px; }

/* --- Contact Form --- */
.contact-container { max-width: 600px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.input-group input, .input-group textarea { width: 100%; padding: 15px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 5px; font-family: inherit; outline: none; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); }

footer { text-align: center; padding-top: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .nav-links { display: none; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-img { margin-bottom: 30px; }
    .cta-buttons { justify-content: center; }
}