/* Style pour les liens de contact */
.Contact a {
  color: #fff;
  background: #3ace3a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 8px;
  font-size: 1.5em;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}
.Contact a:hover {
  background: #fff;
  color: #3ace3a;
  border: 1px solid #3ace3a;
}
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #459285;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #000;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 400;
}

nav ul li a:hover {
  background-color: #3ace3a;
  color: #000;
}

/* Menu hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: 0.3s;
}

/* Sections avec padding-top pour le header fixe */
section {
  padding-top: 80px;
  scroll-margin-top: 80px;
}

/* Section principale */
.main-conta {
  background-color: #459285;
  padding: 120px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 70vh;
  gap: 40px;
}

.paragraphe {
  flex: 1;
  max-width: 600px;
}

.element {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.2;
}

.element span {
  color: #3ace3a;
}

.boutton {
  background-color: #3ace3a;
  color: #000;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.boutton:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 206, 58, 0.4);
}

.image img {
  width: 500px;
  height: 300px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section À propos */
.a-propos {
  background-color: #459285;
  padding: 80px 20px;
}

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

.a-propos h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #000;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.left-part {
  flex: 1;
}

.element-2 {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 30px;
  text-align: justify;
}

.element-2 span {
  color: #3ace3a;
  font-weight: 600;
}

.civil {
  background-color: #3ace3a;
  color: #000;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.right-part img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
}

/* Section projets */
.mes-projets {
  background-color: #459285;
  padding: 80px 20px;
}

.mes-projets h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}

.projet-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: solid 3px rgba(0, 0, 0, 0.1);
}
.projet-card img {
  border-radius: 15px;
  padding: 5px;
  text-align: center;
  width: 100%;
  border: solid 3px rgba(0, 0, 0, 0.1);
}

.projet-card:hover {
  transform: translateY(-5px);
}

.projet-card .jeu {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

.projet-card .jeu span {
  color: #3ace3a;
  font-weight: 600;
}

.projet-card button {
  background-color: #3ace3a;
  color: #000;
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* Section compétences */
.competences {
  /* background: linear-gradient(135deg, #667eea,#459285); */
  padding: 80px 20px;
}

.competences h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #fff;
}

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.skill-category h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-item label {
  color: #fff;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.skill-bar {
  background-color: rgba(255, 255, 255, 0.2);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, #3ace3a, #00cec9);
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* Section contact */
.formulaire {
  /* background: linear-gradient(135deg, #667eea,#459285); */
  padding: 80px 20px;
}
.Contenair {
  display: flex;
  justify-content: space-around;
  border: 5px solid lab(70.65% -29.4 -19.38 / 0);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}
.Contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 120px;
  margin: 0 auto;
}
.formulaire h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #fff;
}
.forme {
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
}

.forme p {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 40px;
  font-weight: 600px;
}

.forme p span {
  color: #3ace3a;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  /* backdrop-filter: blur(10px); */
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  color: #fff;
  display: block;
  margin-bottom: 8px;
  font-weight: 500px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: #3ace3a;
  color: #000;
  padding: 15px 40px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}
footer {
  width: 100%;
  text-align: center;
  padding: 15px 0px;
  background-color: #913e4c;
  font-weight: 300px;
}
/* Responsive Design */
@media (max-width: 768px) {
  /* Header mobile */
  .hamburger {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, var(--darker-color), var(--dark-color));
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    gap: 30px;
    backdrop-filter: blur(20px);
  }

  nav ul.active {
    left: 0;
  }

  nav ul li a {
    font-size: 1.2rem;
    padding: 15px 30px;
  }

  /* Sections mobile */
  .main-conta {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 60px;
  }

  .element {
    font-size: 2rem;
  }

  .image img {
    width: 250px;
    height: 250px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .right-part img {
    width: 250px;
    height: 250px;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .contact-form {
    padding: 20px;
  }

  .forme p {
    font-size: 1.5rem;
  }

  /* Réduction des tailles de titres sur mobile */
  h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 480px) {
  .element {
    font-size: 1.5rem;
  }

  .image img {
    width: 200px;
    height: 200px;
  }

  .right-part img {
    width: 200px;
    height: 200px;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  .forme p {
    font-size: 1.3rem;
  }
}

/* Animation du menu hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
