* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  color: #222;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #000;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #222;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #333;
}

h4 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
}

/* À Propos Section */
#about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

#about img {
  width: 100%;
  max-width: 250px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.about-content h2 {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Compétences */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 3px solid #333;
}

.skill-category h3 {
  margin-top: 0;
  color: #222;
}

.skill-category ul {
  list-style-position: inside;
  margin-left: 0;
}

.skill-category li {
  margin-bottom: 0.5rem;
  color: #555;
}

/* Tableau */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table thead {
  background-color: #f5f5f5;
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #e0e0e0;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

table tbody tr:hover {
  background-color: #f9f9f9;
}

.projet-carte {
  border-left: 4px solid #e94560;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #fafafa;
  border-radius: 0 6px 6px 0;
}

.projet-carte h3 {
  margin-top: 0;
  color: #e94560;
}

.contact-content {
  text-align: center;
  position: absolute;
}

/* Réseaux Sociaux */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 50px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #e94560;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
  border: 1px solid #e0e0e0;
}

.social-links a:hover {
  background-color: #333;
  color: #ffffff;
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  padding: 2rem;
  text-align: center;
  color: #666;
  margin-top: 3rem;
}

footer p {
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  #about {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }
}
