/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #121212;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header et navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #121212;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ffd700;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
  color: #ffd700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
}

.nav-links a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: #e0e0e0;
  transition: color 0.3s, transform 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffd700;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffd700;
}

/* Hero */
.hero {
  text-align: center;
  padding: 8rem 5% 3rem;
  background-color: #121212;
  color: #e0e0e0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffd700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p,
.tagline {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #a0a0a0;
}

/* Sections */
section {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #ffd700;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: #ffd700;
}

/* À propos */
.profile-pic {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 3px solid #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skills li {
  background: transparent;
  color: #ffd700;
  padding: 0.5rem 1rem;
  border: 1px solid #ffd700;
  border-radius: 4px;
  transition: all 0.3s;
}

.skills li:hover {
  background: #ffd700;
  color: #121212;
}

.title-centered {
  text-align: center;
  margin: 1rem auto;
  color: #ffd700;
  position: relative;
}

.title-centered::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #ffd700;
}

/* Projets */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #333;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
  border-color: #ffd700;
}

.project-card h3 {
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-links a,
.btn-project {
  color: #ffd700;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  border: 1px solid #ffd700;
}

.project-links a:hover,
.btn-project:hover {
  background: #ffd700;
  color: #121212;
}

/* Détails du projet */
.project-details {
  padding: 3rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.project-details h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #ffd700;
  position: relative;
}

.project-details h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #ffd700;
}

.project-image {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 340px;
    max-height: 450px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid #333;
  margin: 0 auto 2rem;
}

.project-images {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 2rem;
  max-width: 1000px;
}
 #video{
     display: block;
     width: 100%;
     max-width: 100%;
     height: auto;
     object-fit: cover;
     object-position: top;
 }
.project-images .project-image {
  width: calc(50% - 10px);
  height: 300px;
}

/* Social links */
.social-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #ffd700;
  color: #121212;
  transform: translateY(-3px);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #121212;
  color: #ffd700;
  border-top: 1px solid #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #121212;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    margin: 1rem 0;
    color: #e0e0e0;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .project-image {
    height: 250px;
  }

  .project-images {
    flex-direction: column;
    gap: 15px;
  }

  .project-images .project-image {
    width: 100%;
    height: 250px;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
  }

  .btn-project {
    width: 100%;
    text-align: center;
  }
}
