/* Styles de base */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Abel", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #f5f5f5;
}

/* Navigation */
nav {
  width: 100%;
  background-image: url(../Image/what.jpg);
  background-size: cover;
  padding: 1rem;
  text-align: center;
  position: relative;
}

nav h3 {
  font-size: 2.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem 0;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #78dbe8;
  transform: translateY(-2px);
}

.back-arrow img {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 1rem;
  top: 1rem;
  transition: transform 0.3s ease;
}

.back-arrow img:hover {
  transform: scale(1.1);
}

/* Section Projets */
.hero {
  padding: 4rem 2rem;
}

.projects-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #233D63;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: #233D63;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.project-info p {
  color: #666;
  font-size: 1.1rem;
}

.skills-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.skills-section h3 {
  color: #233D63;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  color: #233D63;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.skills-list li:hover {
  background: #e9ecef;
}

/* Section Contact */
#contact {
  padding: 4rem 2rem;
  background: #fff;
}

.btn-reseau-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-home img {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease;
}

.btn-home:hover img {
  transform: scale(1.2);
}

.contact-info {
  text-align: center;
  margin-bottom: 3rem;
  color: #233D63;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #78dbe8;
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  background: #233D63;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background: #1a2d4a;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  nav h3 {
    font-size: 1.8rem;
    flex-direction: column;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  nav h3 {
    font-size: 1.4rem;
  }

  .back-arrow img {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .project-card img {
    height: 200px;
  }

  .btn-reseau-contact {
    gap: 1rem;
  }

  .btn-home img {
    width: 35px;
    height: 35px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-content {
  animation: fadeIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skills-list li {
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.skills-list li:nth-child(1) { animation-delay: 0.1s; }
.skills-list li:nth-child(2) { animation-delay: 0.2s; }
.skills-list li:nth-child(3) { animation-delay: 0.3s; }
.skills-list li:nth-child(4) { animation-delay: 0.4s; }
.skills-list li:nth-child(5) { animation-delay: 0.5s; }