/* ===== BASE ===== */
body {
  font-family: 'Fira Code', monospace;
  margin: 0;
  background: #0d1117;
  color: #00ff00;
}

a { color:#00ff00; text-decoration:underline; transition:0.3s; }
a:hover { color:#80ff80; }

/* ===== HEADER ===== */
header {
  background:#0d1117;
  box-shadow:0 2px 8px rgba(0,255,0,0.2);
  position:sticky;
  top:0;
  z-index:10;
}

.wrap {
  max-width:1100px;
  margin:0 auto;
  padding:1rem 2rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand {
  display:flex;
  align-items:center;
  gap:0.8rem;
}

.brand img {
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid #00ff00;
}

nav ul {
  list-style:none;
  display:flex;
  gap:1.5rem;
  margin:0;
  padding:0;
}

nav a {
  font-weight:500;
}

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #00ff00;
  cursor: pointer;
}

/* Menu responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul.nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #0d1117;
    position: absolute;
    top: 60px;
    right: 2rem;
    border: 1px solid #00ff00;
    padding: 1rem;
    border-radius: 8px;
  }

  nav ul.nav-menu.active {
    display: flex;
  }
}

/* ===== HERO ===== */
.hero-terminal {
  background: #0d1117;
  border: 1px solid #00ff00;
  border-radius: 12px;
  padding: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  position: relative;
  font-family: 'Fira Code', monospace;
  color: #00ff00;
}
.hero-terminal pre.terminal-text {
  white-space: pre;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #80ff80;
  margin: 0;
}
.hero-terminal .cursor {
  display: inline-block;
  width: 1ch;
  background-color: #00ff00;
  animation: blink 1s steps(2, start) infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { background: #00ff00; }
  50% { background: #0d1117; }
}
/* Centrer les boutons */
.hero-terminal .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.hero-terminal .btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 1px solid #00ff00;
  background: transparent;
  color: #00ff00;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.hero-terminal .btn:hover {
  background: #00ff00;
  color: #0d1117;
}


/* ===== HERO ===== */
.hero {
  text-align:left;
  padding:3rem 2rem;
  margin:2rem auto;
  border:1px solid #00ff00;
  border-radius:12px;
  max-width:1100px;
  position:relative;
}

.hero h1 { font-size:2.5rem; margin-bottom:1rem; color:#00ff00; }
.hero p { font-size:1.1rem; line-height:1.6; color:#80ff80; white-space:pre-line; }

.cursor {
  display:inline-block;
  width:1ch;
  background-color:#00ff00;
  animation: blink 1s steps(2, start) infinite;
  margin-left:2px;
}

@keyframes blink { 0%,100%{background:#00ff00;} 50%{background:#0d1117;} }

.actions { display:flex; gap:1rem; margin-top:1.5rem; justify-content:center; }
.btn {
  padding:0.8rem 1.5rem;
  border-radius:4px;
  border:1px solid #00ff00;
  background:transparent;
  color:#00ff00;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}
.btn:hover { background:#00ff00; color:#0d1117; }

/* ===== SECTIONS ===== */
section { padding:3rem 2rem; max-width:1100px; margin:auto; }
.section-head { text-align:center; margin-bottom:2rem; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; }

/* ===== CARDS ===== */
.card {
  background:#0d1117;
  border:1px solid #00ff00;
  border-radius:12px;
  padding:1.5rem;
  box-shadow:0 2px 8px rgba(0,255,0,0.2);
  transition:0.3s;
}
.card:hover { transform:translateY(-3px); box-shadow:0 4px 14px rgba(0,255,0,0.4); }
.card h3, .card h4 { margin-bottom:0.5rem; color:#00ff00; }
.card p { color:#80ff80; }

/* ===== TERMINAL CARD ===== */
/* ===== COMPÉTENCES TECHNIQUES ===== */
#competences {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

#competences .section-head {
  text-align: center;
  margin-bottom: 2rem;
}

#competences .section-head p {
  color: #80ff80;
  margin: 0.5rem 0;
  font-family: 'Fira Code', monospace;
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.terminal-card {
  background: #0d1117;
  border: 1px solid #00ff00;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.2);
  transition: 0.3s;
  font-family: 'Fira Code', monospace;
}

.terminal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 255, 0, 0.4);
}

.terminal-card h3 {
  margin-bottom: 1rem;
  color: #00ff00;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
}

.terminal-card h3 .prompt {
  color: #80ff80;
  margin-right: 0.5rem;
}

.skill-category {
  margin: 0;
  padding: 0;
}

.skill-item {
  color: #80ff80;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.skill-item .dir {
  color: #00ff00;
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .terminal-grid {
    grid-template-columns: 1fr;
  }
  
  .terminal-card {
    padding: 1rem;
  }
}

/* ===== CONTACT ===== */
.contact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-top:2rem; }
.contact-card { background:#0d1117; border:1px solid #00ff00; border-radius:10px; padding:1rem; text-align:center; box-shadow:0 2px 8px rgba(0,255,0,0.2); transition:0.3s; }
.contact-card:hover { transform:translateY(-3px); box-shadow:0 4px 14px rgba(0,255,0,0.4); }

/* ===== FOOTER ===== */
footer { text-align:center; padding:1.5rem; background:#0d1117; border-top:1px solid #00ff00; font-size:0.9rem; color:#80ff80; margin-top:2rem; }

/* ===== TERMINAL STYLE ===== */
code {
  background:#1e1e1e;
  padding:0.2rem 0.5rem;
  border-radius:4px;
  font-family:'Fira Code', monospace;
  font-size:0.95rem;
}
.code-installing { color: #facc15; } /* jaune */
.code-todo { color: #38bdf8; }       /* bleu clair */
.code-completed { color: #22c55e; }  /* vert */
