/* Styles de base */
:root {
  --bg-color: #1e1e1e;
  --text-color: #e0e0e0;
  --accent-color: #00aaff;
  --terminal-bg: #252526;
  --terminal-text: #f8f8f8;
  --section-bg: #252526;
  --card-bg: #333333;
  --nav-bg: #252526;
  --border-color: #444444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar Styles */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 8vh;
  background-color: var(--nav-bg);
  padding: 0 5%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.accent {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 50%;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Sections */
section {
  padding: 40px 5%;         /* Réduction du padding vertical */
  min-height: auto;         /* Retrait de la hauteur minimale */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;                /* Optionnel : espace entre les éléments internes */
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: var(--text-color);
}

h2 {
  font-size: 32px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Profile Section */
.profile-section {
  background-color: var(--section-bg);
}

.profile-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.profile-image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 2;
  min-width: 300px;
}

.profile-info h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 22px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.bio {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.8;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.skill-tag {
  background-color: rgba(0, 170, 255, 0.1);
  color: var(--accent-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid var(--accent-color);
}

/* Terminal Section */
.terminal-section {
  background-color: var(--bg-color);
  padding: 80px 5%;
}

.terminal {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--terminal-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  background-color: #333;
  padding: 10px 15px;
  display: flex;
  align-items: center;
}

.terminal-controls {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close {
  background-color: #ff5f56;
}

.minimize {
  background-color: #ffbd2e;
}

.maximize {
  background-color: #27c93f;
}

.terminal-title {
  color: #ddd;
  font-size: 14px;
}

.terminal-body {
  padding: 15px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: var(--terminal-text);
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal-output-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

.terminal-line {
  display: flex;
  margin-bottom: 5px;
  white-space: nowrap;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  width: 100%;
}

.prompt {
  color: #0f0;
  margin-right: 8px;
  white-space: nowrap;
}

.command {
  color: #fff;
}

.terminal-output {
  margin-bottom: 10px;
  padding-left: 5px;
  color: #ddd;
  white-space: pre-wrap;
  line-height: 1.3;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  width: 100%;
  caret-color: #fff;
}

/* Styles pour les tables dans le terminal */
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 5px 0;
}

.terminal-table td {
  padding: 3px 10px 3px 0;
}

/* Badges Section */
.badges-section {
  background-color: var(--section-bg);
  text-align: center;
  padding: 80px 5%;
}

.badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.badge-link {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.badge-link:hover {
  transform: scale(1.05);
}

.badge {
  background-color: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  width: 250px;
  height: 250px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.badge:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent-color);
}

.badge-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 15px;
}

/* Articles Section */
.articles-section {
  background-color: var(--bg-color);
}

.coming-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.coming-soon-content {
  text-align: center;
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
}

.coming-soon-content i {
  font-size: 60px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.coming-soon-content h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: var(--terminal-bg);
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 30px;
}

.social-links a {
  color: var(--text-color);
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.copyright {
  font-size: 14px;
  color: #999;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .nav-links {
    width: 60%;
  }
}

@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .nav-links {
    position: absolute;
    right: 0;
    height: 92vh;
    top: 8vh;
    background-color: var(--nav-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 1000;
  }

  .nav-links li {
    opacity: 0;
  }

  .burger {
    display: block;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-info {
    text-align: center;
  }

  .skills {
    justify-content: center;
  }
}

.nav-active {
  transform: translateX(0%);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
