*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}



/* Couleurs & structure */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #f0f0f0;
  scroll-behavior: smooth;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 15px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.logo img{
  width: 70px;
  height: 70px;
}
.nav-list{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navbar a {
  margin: 0 15px;
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.navbar a:hover {
  color: white;
  transform: scale(1.1);
}
.menu-icon{
  display: none;
}
.menu-icon img{
      width: 24px;
    height: 24px;
    cursor: pointer;
}

header.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  animation: fadeIn 1.5s ease-out;
}
.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00ffff;
  margin-top: 20px;
}
h1 {
  font-size: 2.5rem;
  margin: 0;
}
h2 {
  color: #00ffff;
  font-weight: normal;
}
section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
section.show {
  opacity: 1;
  transform: translateY(0);
}
section h3 {
  font-size: 1.8rem;
  color: #00ffff;
  margin-bottom: 10px;
}

/* Bouton CV */
.btn-cv {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 2px solid #00ffff;
  color: #00ffff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}
.btn-cv:hover {
  background-color: #00ffff;
  color: #000;
  transform: scale(1.05);
}

/* Compétences */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills li {
  background-color: #1a1a1a;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #00ffff;
  transition: 0.3s;
}
.skills li:hover {
  background-color: #00ffff;
  color: #000;
}

/* Projets */
.project {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  transition: 0.3s;
}
.project:hover {
  background: #222;
  transform: scale(1.02);
}
.project img {
  width: 120px;
  border-radius: 8px;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #00ffff;
  color: white;
  border-radius: 5px;
  font-size: 1rem;
  transition: 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: white;
}
.contact-form button {
  padding: 10px 15px;
  border: none;
  background-color: #00ffff;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background-color: #00cccc;
}

/* Réseaux */
.socials a {
  font-size: 20px;
  margin: 10px;
  display: inline-block;
  color: #00ffff;
  text-decoration: none;
  transition: 0.3s;
}
.socials a i {
  margin-right: 8px;
}
.socials a:hover {
  color: white;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #1a1a1a;
  color: #999;
}

                                  /* Responsive */

@media only screen and (max-width:768px) {
  .btn-cv{
    display: none;
  }

  .project p{
    display: none;
  }
.project a{
  display: none;
}
.navbar ul{
  display: none;
}
.nav-list{
       display: flex;
        flex-direction: column;
        gap: 1.3rem;
        height: 0;
        overflow: hidden;
        transition: all 0.5s;
}
.menu-icon{
  display: block;
  margin-top: 10px;
  margin-left: 10rem;
}

#menu:checked ~ .nav-list{
        height: 18rem;
        padding-block:1.5rem ;
        display: flex;
}

#skills{
  display: none;
}

}
/* Animation fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
