*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
    /*background-color: black; /*fond*/
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;


}

header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
    
}

.logo{
    color: rgb(255, 255, 255);
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out; /* hover */
   /* background-color: rgba(18,18,18,0.8); /*gris sombre*/


}

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


.nav-links-head {
    background-color: rgba(18,18,18,0.8); /*gris sombre*/


}

.nav-links{
    display: flex;
    gap: 2rem;

}

li a{
    position: relative;
    color: white;
    font-weight: 600;
  

}

li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgba(18,18,18,0.8),rgb(255,121,27));
    
}

li a:hover::before{
    width: 100%;
}

.visit-btn{
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border:none; /*aucune bordure*/
    font-weight: 600;
    font-size: 1rem;
    color: rgb(255, 255, 255);
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3 ease-in-out;
    background: linear-gradient(to right, rgb(56, 48, 41),rgb(255,121,27));
    border: 2px solid (18,18,18,0.8);
}

.visit-btn:hover{
    background: linear-gradient(to right,rgb(255,121,27), rgb(56, 48, 41));
    transform: scale(1.03);
}

#menu-icon{
    font-size: 2rem;
    display: none;
}


 /* ----BODY---- */  

section{
    min-height: flex;
    padding: 8rem 12%;
    width:100%;
    position: relative;
    background-color: black; /*fond*/

}

.about{
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}


.about img{
    width: 20vw;
    border-radius: 50%;

}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
 }

 .text h3{
    font-size: 1.8rem;
    font-weight: 600;
    opacity: 0.8;
    color: rgb(255,121,27);
 }


 .text h1{
    font-size: 2.3rem;
    font-weight: 600;
    color: white;
 }

 .text span{
    font-size: 1.4rem;
    color:#6e6e73;
 }



.btn-group{
    display: flex;
    gap: 1rem;
  
 }


.btn{ /*BTN GENERAL*/
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid white;
    cursor: pointer;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
    color: rgb(255, 255, 255);
    flex: 1;
 }


 .btn:hover{
    background-color: black;
    border: 2px solid rgb(255,121,27);
    color: rgb(255,121,27);

 }

.socials {
display: flex;
gap: 1rem;
font-size: 1.2rem;

}
.socials i{
display: flex;
cursor: pointer;
transition: 0.2s ease-in-out;
color: white;
}

.socials i:hover{
transform: scale(1.1);
color: rgb(255,121,27);

}

/* ------------------------------A PROPOS----------------------------------------*/
.apropos h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: white;
}

.apropos-conteneur {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap; /* pour que ça passe sur plusieurs lignes*/
}


.apropos-conteneur img {
    width: 20vw;
    border-radius: 3rem;
}

.apropos-conteneur img:hover {
    transform: translateY(-10px)scale(1.02);
}

.apropos-description {
    max-width: 600px; /* largeur du texte */
    text-align: center;
    font-size: 1.4rem;
    /*font-weight: 600;*/
    line-height: 1.8;
    color: #ffffff;
    background-color: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 2rem;
}
.apropos-description:hover{
   /* transform: translateY(-10px)scale(1.02);*/
    border: 2px solid rgb(255,121,27);
}

/*-------------------------------PROJECT---------------------------------------*/




.projects-grid{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10rem;
    padding: 6rem 0; /* espace en haut et en bas */
}

.projects h2{
    font-size: 3rem;
    margin-bottom: 2rem;
    color: white;
}

.projects-card{
    width: 45vw;
    min-height: 500px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: 1px solid rgba(26, 26, 26, 0.8);

    background-color: rgba(26, 26, 26, 0.8); /*gris sombre*/
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: #6e6e73;
    font-weight: 600;
}


.projects-card:hover{
    /*background-color: black;*/
    color: white;
    transform: translateY(-10px)scale(1.02);
    border: 2px solid #6e6e73;
}


.projects-card img{
    width: 15vw;
    border-radius: 1rem;
}

.projects-card-more img{
  width: 23vw;
}
.projects-card-discord img{
    width: 30vw;
}

.btn-group{
    gap: 1rem;
}
.projects-card:hover .btn{
    border: 2px solid white;
    color: white;
}

.projects-card:hover .btn:hover{
    border: 2px solid rgb(255,121,27);
    background-color: rgba(26, 26, 26, 0.8); /*gris sombre*/
    color: rgb(255,121,27);
}

.projects-card h3{
    font-size: 2rem;
    font-weight: 600;
    color: white;
}



/* ----------------------------------SKILL------------------------------ */


/* TITRES */
.skill-title{
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: white;
}
.skill-static {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

 /* Sous-titre */
.skill-languages{
  text-align: left;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* CONTENEUR (fenêtre) */
.skill-row {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
}

/* RUBAN QUI DÉFILE */
.skill-track{
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  width: max-content;
  animation: scroll-left 22s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause au hover */
.skill-row:hover .skill-track {
  animation-play-state: paused;
}

/* CARD (un skill) */
.skill-card{
  flex: 0 0 auto;
  width: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  border: 2px solid black;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  background-color: rgba(26, 26, 26, 0.8);
  position: relative;
}

.skill-card img{
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
}

/* LABEL (nom qui apparaît) */
.skill-name {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translate(-50%, 10px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 6px 20px;
  opacity: 0;
  z-index: 20;
  font-weight: 600;
  white-space: nowrap;
}

.skill-card:hover .skill-name {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  border: 2px solid #6e6e73;
}

/* OPTION : plus compact mobile */
@media (max-width: 768px){
  .skill-card img{
    width: 42px;
    height: 42px;
  }
  .skill-track{
    gap: 1.25rem;
    animation-duration: 18s;
  }
}


/* ----------------------------------PICTURES----------------------------- */


.pictures {
  background: #000;
  text-align: center;
}

.pictures-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: white;
}

/* CARROUSEL SWIPER */

/* Taille du carrousel */
.swiper {
  width: 100%;
  height: 500px;
  margin: 0 auto;
  /*position: sticky;*/
}

/* Style des images */
.swiper-slide img {
  width:50%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
  align-items: center;


}
:root { /*formaté à la racine */
    --swiper-navigation-color: rgb(255, 255, 255); /* noir par défaut */
    --swiper-navigation-size: 60px; /* taille des flèches */
    /*--swiper-theme-color:rgb(241, 0, 149);*/
}


.swiper-button-next,
.swiper-button-prev {
transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
color: rgb(255,121,27);
}

.intro-pictures{
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-top: 40px;
  font-weight: 700;
}

.travel-link{
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  padding: 7px 17px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(26, 26, 26, 0.8); /*sombre */
  transition: transform 160ms ease;
  color: rgb(255, 255, 255);
  font-style: italic;
  border: 2px solid #6e6e73;
}

.travel-link:hover{
  transform: translateY(-3px);
  background-color: rgb(255,121,27);
  border: 2px solid rgb(255,121,27);
  color: black;

}


/* ----------------------------------CONTACT----------------------------- */


.contact {
  display: flex;
  justify-content: center;
  padding: 5rem 2rem;

}

.input-box {
  width: 100%;
  max-width: 600px;
  background: rgba(26, 26, 26, 0.8); /*sombre */
  padding: 3rem;
  border-radius: 2rem;
  
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: white;
  font-weight: 600;
  
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input input,
.input textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #6e6e73;
  border-radius: 1rem;
  background: rgba(26, 26, 26, 0.8);
  color: white;
  font-size: 1rem;
  transition: 0.3s ease;
  outline: none; /* pour que border reste*/

}

textarea {
  resize: none;
  min-height: 120px;
}

.input input:focus,
.input textarea:focus {
  border-color: rgb(255,121,27);
  background-color: rgba(255, 255, 255, 0.15);
}

.bttn{
    background: rgba(26, 26, 26, 0.8); /*sombre */
    border: 2px solid white;
    border-radius: 3rem;
    color: white;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s ease-in-out;
    align-self: center;
    width: 200px;
    height: 50px;

}
.bttn:hover {
  background-color: rgb(255,121,27);
  border-color: rgb(255,121,27);
  color: black;
  transform: translateY(-3px);
}

/* ----------------------------------footer----------------------------- */



footer{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    background-color: black;

}

footer ul{
    display: flex;
    align-items: center;
    gap: 3rem;
    color: white;
    margin-top: 20px;
}


footer a{
    color: rgb(255, 255, 255);
    font-weight: 600;



}

.copyright{
    font-size: 300;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
    
}

 /*  ------------TABLETTE 900px----------------*/



@media(max-width:900px){ /* Entre tablette et ordi*/

header {
    padding: 0.5rem 1rem;   /* moins large  */
    gap: 3rem;
}

.logo {
    font-size: 1.2rem;
    color: rgb(255,121,27);
}

.visit-btn {
    display: none;
}
}




/*  ------------TABLETTE 768px----------------*/

@media(max-width:768px){ /* grande tablette*/

header {
    padding: 0.5rem 1rem;
    gap: 3rem;
    }
.logo {
    font-size: 1.2rem;      /* légèrement plus petit */
    color: rgb(255,121,27);
  }

.visit-btn {
    display: none;
  }


.about .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
}

.apropos-conteneur img {
    width: 40vw;
}

.projects-card {
    gap: 2.5rem;
    width: 60vw;
}
.projects-card img {
    width: 30vw;
    
}


.skill-title {
    margin-bottom: 6rem;
    
}


.pictures-title {
    margin-bottom: 6rem;
}

.swiper-slide img {
    width: 60%;
    height: 90%;
    margin-bottom: 6rem;
}
}



 /*  ------------TABLETTE 600px----------------*/

@media (max-width: 600px) { /*Moyenne tablette*/

     /* Header compact, logo à gauche, burger à droite */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.5rem;
    position: fixed;
    top: 0;
    
    right: 0;
    background: rgba(18,18,18,0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-radius: 1; /* pas d'arrondi sur mobile */
  }

  /* Logo plus petit */
  .logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
  }

  /* Burger visible */
  #menu-icon {
    display: block;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
  }

  /* Cacher la nav par défaut */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 100%; /* sous le header */
    width: 50vw;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    gap: 1.5rem;
    justify-content: center; /* CENTRAGE VERTICAL */
    align-items: center;     /* CENTRAGE HORIZONTAL */

    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-20px);
    opacity: 0;
  }

  /* Quand menu ouvert */
  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Liens centrés et visibles */
  .nav-links a {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  /* Couleur au clic / hover (mobile tactile) */
  .nav-links a:active,
  .nav-links a:focus,
  .nav-links a:hover {
    color: orange;
  }

  /* Bouton Visit caché */
  .visit-btn {
    display: none;
  }

  /* Supprimer l’animation hover pseudo ::before sur les liens */
  li a::before {
    display: none;
  }

 /*  ------------About----------------*/
.about .about-container{
    gap: 4rem;
}
.apropos-conteneur img {
    width: 35vw;
    border-radius: 2rem;
}

 /*  ------------PROJECT----------------*/

.projects-card {
    width: 55vw;
    gap: 2rem;
}
.projects-card img {
    width: 30vw;
}
.btn-group{
    gap: 0.5rem;
}
}



/*  ------------MOBILE----------------*/

@media (max-width: 425px) { /* mobile 14 pro */


/* ABOUT */
.about .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 3rem;
}

.about img{
    width: 30vw;
    gap: 1rem;
}

.text h3 {
    font-size: 25px;
}
.text h1 {
    font-size: 1.5rem;
}
.text span {
    font-size: 1.2rem;
}
.btn{
    padding: 4px 20px;
}
.apropos h2 {
    font-size: 2rem;
}

.apropos-description {
    font-size: 18px;
}


/* PROJECT*/
.projects h2 {
    font-size: 2rem;
}

.projects-card {
    width: 76vw;
    gap: 2rem;
    }

.projects-card img {
    width: 40vw;
    }

.projects h2 {
    font-size: 2rem;
}





/*picture*/
.swiper-slide img {
    width: 60%;
    height: 60%;
    margin-top: 5rem;
}

/*footer*/
footer ul {
    gap: 1rem;
    
}
}



@media (max-width: 375px) { /* Iphone SE */
    .about img {
        width: 35vw;
    }

    .apropos-conteneur img {
        width: 40vw;
    }

    .skill-title{
    font-size: 2rem;
    }
    
    .skill-card img{
    width: 12vw;
    }

    footer ul {
    display: none;
    }

    .copyright {
    color: rgb(255,121,27);
    }

}



@media (max-width: 320px) {/* Petit tel */

 :root {
    --swiper-navigation-size: 25px; /* change ici la taille souhaitée */
  }

  /* Forcer la taille si Swiper n'applique pas la variable */
  .swiper-button-next,
  .swiper-button-prev {
    width: var(--swiper-navigation-size) !important;
    height: var(--swiper-navigation-size) !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: calc(var(--swiper-navigation-size) * 0.6) !important;
  }


.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

       .skill-title {
        margin-bottom: 6rem;
    }

        .swiper-slide img {
        width: 60%;
        height: 50%;
        margin-top: 7rem;
    }
    .bttn {
    font-weight: 500;
    width: 150px;
    height: 40px;
}


}