/*BASE STYLES - MOBILE (0 à 480px)*/
* {
  box-sizing: border-box; /* Applique à TOUS les éléments */
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0a0a; /* Noir très légèrement grisé */
  color: #f5f5f5; /* Blanc cassé pour moins de fatigue visuelle */
  margin: 0;
  padding: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.generalSettings {
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.logo a {
  text-decoration: none;
  color: #f5f5f5;
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2em;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* Bouton burger - visible sur mobile */
.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
}

/* Animation burger actif */
.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu mobile caché par défaut */
.nav-links {
  position: fixed;
  top: 7%;
  right: -100%;
  width: 50%;
  background-color: #0a0a0a;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: right 0.7s ease;
  z-index: 999;
}

/* Menu ouvert */
.nav-links.active {
  right: 0;
}

.nav-links li {
  width: 100%;
  text-align: center;
}

.nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1rem;
  display: block;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #888;
}

.intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
}

.presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.texteIntro {
  margin: 0.3em 0 0 0;
}

.btnContainer {
  display: flex;
  gap: 1rem;
}

.introBtn, .introBtn2 {
  width: fit-content;
  padding: 0.4em 0.9em;          
  background-color: transparent; 
  border: 1px solid white;
  color: white;
  text-decoration: none; 
  border-radius: 30px 30px 30px 30px;
  transition: all 0.5s ease-out;
}

.introBtn:active, .introBtn2:active {
  background-color: #ffffff;
  color: rgba(3, 3, 194, 0.813);
  transition: all 0.2s ease-in;
}

.realisationTitre {
  text-align: center;
  padding: 3rem 2rem;
}

.realisationTitre p {
  margin-bottom: 3em;
}

.realisationTitre {
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.projetsContainer1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding: 0 2rem 3rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  opacity: 0.95;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.card-img {
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .card-img img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 99px;
  padding: 2px 10px;
  margin-bottom: 0.6rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  margin: 0 0 0.4rem;
}

.card-desc {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.hardSkills {
  text-align: center;
  padding: 1rem 2rem;
}

.listeLangage {
  list-style-type: none;
  padding: 0 0 1em 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.listeLangage img {
  margin-right: 0.5rem;
  width: 4em;
  height: 4em; 
}

.listeOutils {
  list-style-type: none;
  padding: 0 0 1em 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.listeOutils img {
  margin-right: 0.5rem;
  width: 4em;
  height: 4em;
}

.softSkills {
  text-align: left;
  padding: 1rem 2rem;
}

.softSkills h2 {
  text-align: center;
  color: #f5f5f5;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.skill-item {
  margin-bottom: 2.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-percentage {
  color: #888;
  font-size: 1rem;
  font-weight: 500;
}

.skill-bar {
  width: 100%;
  height: 12px;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-fill {
  height: 100%;
  width: 0; /* Commence à 0 */
  background: linear-gradient(90deg, #00d4ff, #0099ff);
  border-radius: 10px;
  transition: width 1.5s ease-out;
  position: relative;
}

/* Animation brillance */
.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s infinite;
}

.skill-description {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Variantes de couleurs */
.skill-item:nth-child(2) .skill-fill {
  background: linear-gradient(90deg, #8fc0ff, #b74cff);
}

.skill-item:nth-child(3) .skill-fill {
  background: linear-gradient(90deg, #8fc0ff, #b74cff);
}

.skill-item:nth-child(4) .skill-fill {
  background: linear-gradient(90deg, #8fc0ff, #b74cff);
}

.skill-item:nth-child(5) .skill-fill {
  background: linear-gradient(90deg, #8fc0ff, #b74cff);
}

.skill-item:nth-child(6) .skill-fill {
  background: linear-gradient(90deg, #8fc0ff, #b74cff);
}

.contact h1, .contact p {
  text-align: center;
  padding: 1rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#nom, #email, #message {
    margin-bottom: 1em;
}

#nom, #email, #message {
    margin-top: 0.4em;
}

.input-group input, .input-group textarea {
    padding: 10px 10px;
    border-radius: 5px;
    font-size: 1em;
    border: none;
    border: 1px solid #ffffff; 
    background: transparent;
    color: white;
    width: 100%;
    font-family: "Archivo", sans-serif !important;
}

.input-group label {
  margin-bottom: 0.5em;
  color: #f5f5f5;
  transition: 0.3s ease-out;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f5f5;
  -webkit-box-shadow: 0 0 0px 1000px #0d0d0d inset;
  font-family: "Archivo", sans-serif !important;
  transition: background-color 5000s ease-in-out 0s;
}

.input-group input:focus ~ label,
.input-group input.has-content ~ label,
.input-group textarea:focus ~ label,
.input-group textarea.has-content ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group input:-webkit-autofill ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  color: #ffffff;
}

.contactForm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn_envoi {
  padding: 0.8em;
  background-color: transparent;
  color: #f5f5f5;
  border: 1px solid #f5f5f5;
  border-radius: 5px;
  transition: all 0.6s ease-out;
  font-family: "Archivo", sans-serif !important;
}

.btn_envoi:active {
  background-color: #f5f5f5;
  color: rgba(3, 3, 194, 0.813);
  transition: all 0.2s ease-in;
}

footer, .mentions, .politique {
  text-align: left;
  padding: 1rem 2rem;
}

.mentionLink, .politiqueLink {
  font-size: 0.85rem;
  text-decoration: none;
  color: #f5f5f5;
}

#scrollTopBtn {
  scale: 0.7;
}

@keyframes jump {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-8px);
  }
}

/*GRAND MOBILE (481px et plus)*/

@media (min-width: 481px) {
  

}


/*MOBILE LANDSCAPE / PHABLET (576px et plus)*/

@media (min-width: 576px) {

.projetsContainer1 {
  grid-template-columns: repeat(2, 1fr);
}
  
}


/*TABLETTE PORTRAIT (768px et plus)*/

@media (min-width: 768px) {
  
.navigation {
  padding: 0.5em 1.5em 2em 1.5em;
}
  
/* Cacher le burger sur tablette+ */
.burger-menu {
  display: none;
}
  
/* Menu horizontal */
.nav-links {
  position: static;
  width: fit-content;
  display: flex;
  flex-direction: row;
  background: transparent;
}
  
.nav-links a {
  width: fit-content;
  font-size: 1rem;
  white-space: nowrap; 
}

.intro {
  flex-direction: row;
  gap: 2rem;
  text-align: left;
  padding: 0 4em 0 4em;
}

.introduction {
  font-size: 1.2em;
}

.presentation {
  margin-top: 4.5em;
  align-items: flex-start;
  font-size: 0.9em;
}

.softSkills {
  padding: 0 6em 0 6em;
}

#scrollTopBtn {
  scale: 0.8;
}

}


/*TABLETTE LANDSCAPE (992px et plus)*/

@media (min-width: 992px) {

.navigation {
  padding: 1rem 5rem 0 3rem;
  justify-content: space-between;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 8rem;
  gap: 3rem;
}

.introduction {
  font-size: 1.5rem;
}

.presentation {
  margin-top: 3.2em;
  gap: 1rem;
}

.realisationTitre {
  text-align: center;
}

.hardSkills {
  text-align: center;
}

.listeLangage {
  justify-content: center;
}

.listeOutils {
  justify-content: center;
}

.softSkills {
  text-align: center;
}

.skill-item {
  max-width: 40rem;
  margin: 0 auto 2.5rem auto;
}

.contact h1, .contact p {
  text-align: center;
}

.contact p {
  margin-bottom: 2rem;
}

.input-group {
  justify-self: center;
  width: 70%;
}

.contactForm .input-group{
  width: 50%;
}

}

/*DESKTOP (1024px et plus)*/

@media (min-width: 1024px) {
  
.nav-links a, .logo {
  font-size: 1.2rem;
}

.introduction {
  font-size: 1.8rem;
  padding-left: 2rem;
}

.presentation {
  font-size: 1rem;
  padding-right: 2rem;
  gap: 1rem;
}

.realisationTitre h1, .hardSkills h1, .softSkills h2, .contact h1 {
  font-size: 2.5rem;
}

.projets {
  padding: 1rem 2rem;
}

.projetsContainer1 {
  grid-template-columns: repeat(3, 1fr);
  padding: 0 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.listeLangage img {
  margin-right: 0.5rem;
  width: 6em;
  height: 6em;
}

.listeOutils img {
  margin-right: 0.5rem;
  width: 6em;
  height: 6em;
}

.contactForm .input-group{
  width: 50%;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#scrollTopBtn {
  scale: 0.8;
}

}


/*LARGE DESKTOP (1280px et plus)*/

@media (min-width: 1280px) {

.contactForm .input-group{
  width: 50%;
}

#scrollTopBtn {
  scale: 0.9;
}

}

/* EXTRA LARGE DESKTOP (1920px et plus)*/

@media (min-width: 1920px) {

.navigation {
  padding: 1.5rem 8rem 0 5rem;
}

.nav-links a, .logo {
  font-size: 1.8rem;
}

.intro {
  gap: 7em;
}

.introduction {
  font-size: 2.2rem;
  padding-left: 15rem;
}

.presentation {
  font-size: 1.4rem;
  padding-right: 15rem;
  gap: 2rem;
}

.realisationTitre h1, .hardSkills h1, .softSkills h2, .contact h1 {
  font-size: 3rem;
}

.projets {
  padding: 2rem 4rem;
}

.listeLangage img {
  margin-right: 1rem;
  width: 10em;
  height: 10em;
}

.listeOutils img {
  margin-right: 1rem;
  width: 10em;
  height: 10em;
}

.contactForm .input-group{
  width: 50%;
}

}