html, body {
    margin: 0;
    padding: 0;
    font-family: "Iceland", sans-serif;
    height: 100%;
    background: hsla(306, 91%, 64%, 1);
    background: linear-gradient(0deg, hsla(306, 91%, 64%, 1) 0%, hsla(283, 54%, 60%, 1) 25%, hsla(207, 100%, 36%, 1) 59%, hsla(226, 70%, 18%, 1) 100%);
    background: -moz-linear-gradient(0deg, hsla(306, 91%, 64%, 1) 0%, hsla(283, 54%, 60%, 1) 25%, hsla(207, 100%, 36%, 1) 59%, hsla(226, 70%, 18%, 1) 100%);
    background: -webkit-linear-gradient(0deg, hsla(306, 91%, 64%, 1) 0%, hsla(283, 54%, 60%, 1) 25%, hsla(207, 100%, 36%, 1) 59%, hsla(226, 70%, 18%, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#F74FE6", endColorstr="#B062D0", GradientType=1 );
    overflow: hidden;
}


nav {
    display: flex;
     justify-content: flex-end; 
    align-items: stretch; 
    flex-direction: row; 
    flex-wrap: nowrap; 
    align-content: center;
    height: 100%;
    margin-top: 1.5%;
    padding: 15px;
    gap: 5px;
    color: white;
    z-index: -10000;
}
nav div.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-right: auto; 
}
nav div.logo img {
    width: 30px; 
    height: auto;
    margin-right: 10px; 
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  
}
nav ul li {
    display: inline-block;
    margin: 0 10px;
   
}
nav ul:last-child {
    margin-right: 30px;
}
nav ul li a {
    text-decoration: none;
       color: #f74fe6;
   
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.4em;
}
nav ul li a:hover {
  color: #fff;
}
nav ul li a.active {
  color: #fff;
  background: #f74fe6;
}
.section {
  transition: opacity 0.5s ease;
  opacity: 1;
}
.section.hide {
  opacity: 0;
  pointer-events: none;
}
#home {
    position: relative;
    z-index: 10;
}


#home img {
    width: 20%; /* Adjust the size of the equaliser */
    height: auto;
    position: absolute;
    z-index: -1;
    top: 70%;
    left: 40%;
    animation: imgup 1.5s ease-in-out infinite alternate;

}

a#project-link {
    text-decoration: none;
    color: #f74fe6;
    font-size: 1.5em;
}
a#project-link:hover {
    color: #fff;
    transition: background-color 0.3s ease;
}
@keyframes imgup {
    from {
     
    }
  
    to {
      top: 65%;
    }
  }


section#projects[style*="display: none"] #projects-list,
section#projects[style*="display: none"] .edge-carousel,
section#projects[style*="display: none"] .projet-edge {
  display: none !important;
    pointer-events: none !important;
}

section#projects:not([style*="display: none"]) #projects-list,
section#projects:not([style*="display: none"]) .edge-carousel {
  width: 90vw;
  height: 65vh;
  min-width: 320px;
  min-height: 320px;
  margin: 5vh auto 0 auto;
  padding: 0;
  border-radius: 2em;
  /* box-shadow: 0 8px 32px rgba(31,38,135,0.18); */
  position: relative;
  top: 0; left: 0;
  z-index: 1;
  display: flex;
  pointer-events: auto !important;
  background: transparent;
}

section#projects:not([style*="display: none"]) .projet-edge {
  width: 100%;
  height: 100%;
  border-radius: 2em;
  position: absolute;
  top: 0; left: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
section#projects:not([style*="display: none"]) .projet-edge.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.edge-carousel {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  width: 100vw;
  height: 100vh;

  top: 0; left: 0;
}

.projet-edge {
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 0.6s, transform 0.6s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
}
.projet-edge.active {
  opacity: 1;
  pointer-events: auto;

}
.fade-in { animation: fadeIn 0.7s; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.projet-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100vw;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
  /* Pour éviter que le texte soit trop large sur desktop */
  max-width: 80vw;
}

.projet-content h1 {
  font-size: 4vw;
  /* font-family: "Nunito", sans-serif; */
  font-weight: 900;
  margin: 0 0 0.4em 0;
  letter-spacing: 0.03em;
  color: #f74fe6;
}

.projet-content p {
  font-size: 2vw;
  font-weight: 400;
  margin: 0;
  max-width: 700px;
}

.carousel-dots-vertical {
  position: fixed;
  right: 3vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  z-index: 200;
}
.carousel-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
  border: 2px solid #f74fe6;
}
.carousel-dot.active {
  background: linear-gradient(135deg, #f74fe6 0%, #5a8fff 100%);
  opacity: 1;
  transform: scale(1.18);
  border: 2px solid #fff;
}
.projet-btn {
  /* margin-top: 2em;
  color: #fff;
  background: linear-gradient(90deg, #f74fe6 0%, #5a8fff 100%);
  padding: 0.9em 2.5em;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  box-shadow: 0 4px 16px rgba(87,79,230,0.13);
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-block; */
  margin-top: 2em;
   text-decoration: none;
    color: #f74fe6;
    font-size: 1.5em;
}
.projet-btn:hover {
  /* background: linear-gradient(90deg, #5a8fff 0%, #f74fe6 100%);
  color: #fff;
  transform: scale(1.08); */
    color: #fff;
}
/* Responsive */
@media (max-width: 900px) {
  .projet-content h1 {
    font-size: 2em;
  }
  .projet-content p {
    font-size: 1em;
  }
  .carousel-dots-vertical {
    right: 2vw;
    gap: 0.7em;
  }
}
section.home{

    width: 100%;
    height: 50vh;
    text-align: center;
    transition: opacity 0.2s ease; /* home part plus vite */

    /* background-color: red; */
}
section.home h1{
    font-size: 6em;
    letter-spacing: 0.3em;
    margin-top: 5%;
    margin-bottom: 0%;
    color: white;
    text-align: center;
    font-family: "Iceland", sans-serif;
    font-weight: 400;
    font-style: normal;
}
section.home h2{
    font-family: "Iceland", sans-serif;
    font-size: 2em;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-align: center;
}

section#projects{
   display: none;
     background: rgba(255,255,255,0.03);
  border-radius: 2em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);

  

}
/* section#projects h1{
    font-size: 6em;
    letter-spacing: 0.3em;
    margin-top: 5%;
    margin-bottom: 0%;
    color: white;
    text-align: center;
    font-family: "Iceland", sans-serif;
    font-weight: 400;
    font-style: normal;
    
} */
#about {
  margin-top: -3%;
}
/* .about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: #fff;
  padding: 2em 1em 3em 1em;
  background: rgba(255,255,255,0.03);
  border-radius: 2em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 700px;
  margin: 3em auto 2em auto;
}
.about-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.2em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border: 4px solid #f74fe6;
}
.about-content h1 {
  font-size: 2.2em;
  margin-bottom: 0.2em;
  font-family: "Iceland", sans-serif;
  letter-spacing: 0.1em;
  color: #f74fe6;
}
.about-content h2 {
  font-size: 5em;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1em;
  margin-top: 0;
}
.about-intro {
  font-size: 1.3em;
  margin-bottom: 1.2em;
  color: #fff;
}
.about-highlight {
  color: #f74fe6;
  font-weight: bold;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.about-list li {
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: #fff;
}
.about-icon {
  font-size: 1.3em;
  margin-right: 0.3em;
}
.about-cta {
  font-size: 1.1em;
  color: #f74fe6;
  margin-top: 1.2em;
  font-weight: bold;
} */
footer ul{
  display: flex;
  position: fixed;
  right: 4vw;
  bottom: 5vh;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

footer ul a{
 
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.3em;
  font-size: 1.4em;
 color: #f74fe6;
  text-decoration: none;
}
footer ul a:hover {
   
     color: #fff;
}
/* Réseaux sociaux fixes en bas à droite */
/* .social-fixed {
  position: fixed;
  right: 2vw;
  bottom: 2vh;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

.social-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.3em;
  font-size: 1.2em;
  color: #fff;
}
.social-fixed a:hover {
  color: #f74fe6;
} */

/* Responsive : plus petit sur mobile */
@media (max-width: 600px) {
  footer ul {
    right: 1vw;
    bottom: 1vh;
    gap: 8px;
  }
  footer ul a {
    font-size: 1em;
    padding: 0.5em 1em;
    border-radius: 18px;
  }
}
/* TABLETTES - largeur max 1024px */
@media (max-width: 1024px) {
    #home img {
        width: 70%;
        top: -25%;
        left: 15%;
    }

    section.home h1 {
        font-size: 4em;
        letter-spacing: 0.4em;
    }

    section.home h3 {
        font-size: 1.5em;
    }

    section.home {
        height: auto;
        padding: 5%;
    }
}

/* SMARTPHONES - largeur max 768px */
@media (max-width: 768px) {
    #home img {
        width: 90%;
        top: -15%;
        left: 5%;
    }

    section.home h1 {
        font-size: 2.5em;
        letter-spacing: 0.2em;
    }

    section.home h3 {
        font-size: 1.2em;
    }

    section.home {
        margin-top: 20%;
        padding: 5%;
        height: auto;
    }
}

/* PETITS ÉCRANS - largeur max 480px */
@media (max-width: 480px) {
    #home img {
        width: 10%;
        top: 100%;
        left: 22%;
    }

    section.home h1 {
        font-size: 3em;
        letter-spacing: 0.1em;
    }

    section.home h3 {
        font-size: 1.3em;
    }

    section.home {
        margin-top: 20%;
        width: 90%;
    }
    section.home ul{
        
        flex-direction: column;
        margin-top: 0%;
        margin-left: 0%;
    }
    section.home ul a{
        
        padding: 0.4em 0.8em;
    }
    @keyframes imgup {
        from {
         
        }
      
        to {
          top: 75%;
        }
      }
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: #fff;
}
#contact h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  font-family: "Iceland", sans-serif;
  letter-spacing: 0.1em;
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1em auto;
  background: rgba(255,255,255,0.08);
  padding: 2em 1.5em;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
#contact label {
  font-size: 1.1em;
  color: #fff;
  text-align: left;
}
#contact input, #contact textarea {
  padding: 0.7em;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  margin-bottom: 0.5em;
  background: #fff;
  color: #222;
  resize: vertical;
}
#contact button[type="submit"] {
  background: linear-gradient(90deg, #f74fe6 0%, #5a8fff 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.8em 2em;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1em;
  transition: background 0.2s, transform 0.15s;
}
#contact button[type="submit"]:hover {
  background: linear-gradient(90deg, #5a8fff 0%, #f74fe6 100%);
  transform: scale(1.05);
}
#contact a {
  color: #f74fe6;
  text-decoration: underline;
}
#contact a:hover {
  color: #fff;
}
@media (max-width: 600px) {
  #contact form {
    padding: 1em 0.5em;
    max-width: 95vw;
  }
  #contact h1 {
    font-size: 2em;
  }
}

/* --- Responsive global & section about design --- */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: #fff;
  padding: 2em 1em 3em 1em;
  background: rgba(255,255,255,0.03);
  border-radius: 2em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 700px;
  margin: 3em auto 2em auto;
}
.about-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.2em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border: 4px solid #f74fe6;
  display: block;
  margin: 0 auto;
  align-self: center;
}
.about-content h1 {
  font-size: 2.2em;
  margin-bottom: 0.1em;
  font-family: "Iceland", sans-serif;
  letter-spacing: 0.1em;
  color: #f74fe6;
}
.about-content h2 {
  font-size: 1.6em;
  font-weight: 400;
  color: #fff;
  
}
.about-intro {
  font-size: 1.4em;
  margin-bottom: 1.2em;
  color: #fff;
}
.about-highlight {
  color: #f74fe6;
  font-weight: bold;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em 0;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.about-list li {
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  color: #fff;
}
.about-icon {
  font-size: 1.3em;
  margin-right: 0.3em;
}
.about-cta {
  font-size: 1.1em;
  color: #f74fe6;
  margin-top: 1.2em;
  font-weight: bold;
}
/* --- Responsive global --- */
@media (max-width: 900px) {
  .about-content {
    padding: 1.5em 0.5em 2em 0.5em;
    max-width: 98vw;
  }
  .about-img {
    width: 90px;
    height: 90px;
  }
  .about-content h1 {
    font-size: 1.5em;
  }
  .about-content h2 {
    font-size: 1em;
  }
}
@media (max-width: 600px) {
  .about-content {
    margin: 1.5em 0 1em 0;
    padding: 1em 0.2em 1.5em 0.2em;
    border-radius: 1em;
  }
  .about-img {
    width: 70px;
    height: 70px;
  }
  .about-content h1 {
    font-size: 1.1em;
  }
  .about-content h2 {
    font-size: 0.95em;
  }
  .about-list li {
    font-size: 0.98em;
  }
}
/* --- Responsive global pour nav, home, footer, etc. --- */
@media (max-width: 900px) {
  nav ul li a {
    font-size: 1.1em;
    padding: 8px 10px;
  }
  #home img {
    width: 60%;
    left: 20%;
    top: 110%;
  }
    @keyframes imgup {
        from {
         
        }
      
        to {
          top: 120%;
        }
      }
 
  section.home h2 {
    font-size: 1.6em;
  }
}
@media (max-width: 600px) {
  nav ul li a {
    font-size: 1em;
    padding: 6px 6px;
  }
  /* #home img {
    width: 90%;
    left: 5%;
    top: 80%;
  } */
  section.home h1 {
    margin-top: 1.5em;
  }

  footer ul {
    right: 0.5vw;
    bottom: 0.5vh;
    gap: 4px;
  }
  footer ul a {
    font-size: 0.9em;
    padding: 0.4em 0.7em;
    border-radius: 12px;
  }
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
}
.burger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.side-panel {
  position: fixed;
  top: 0;
  right: -70vw;
  width: 70vw;
  height: 100vh;
  background: #222;
  box-shadow: -2px 0 16px rgba(0,0,0,0.18);
  transition: right 0.3s;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}
.side-panel.open {
  right: 0;
}
.side-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.side-panel ul li {
  margin: 2em 0;
  text-align: center;
}
.side-panel ul li a {
  color: #fff;
  font-size: 1.5em;
  text-decoration: none;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  display: block;
  transition: background 0.2s;
}
.side-panel ul li a:hover {
  background: #f74fe6;
  color: #fff;
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-list { display: none; }
}

#contact-feedback,
.contact-feedback {
  margin-top: 1em;
  padding: 1em 1.5em;
  border-radius: 12px;
  font-size: 1.1em;
  font-family: "Nunito", sans-serif;
  text-align: center;
  transition: opacity 0.3s;
  opacity: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.contact-feedback.success {
  background: #e6f9f1;
  color: #1a7f5a;
  border: 2px solid #1a7f5a;
}
.contact-feedback.error {
  background: #ffe6ee;
  color: #d12c6a;
  border: 2px solid #d12c6a;
}
.g-recaptcha {
  margin: 1em auto;
  display: flex;
  justify-content: center;
}

/* Popup mail */
.mail-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #222;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(31,38,135,0.18);
  padding: 2em 2.5em;
  z-index: 9999;
  min-width: 280px;
  max-width: 90vw;
  text-align: center;
  font-family: "Nunito", sans-serif;
  animation: fadeIn 0.5s;
}
.mail-popup h2 {
  margin-top: 0;
  color: #f74fe6;
}
.mail-popup a {
  color: #f74fe6;
  text-decoration: underline;
}
.mail-popup-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2em;
  color: #d12c6a;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
  outline: none;
}
.mail-popup-close:focus {
  outline: 2px solid #f74fe6;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



