@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #1e1e1e;
}

.text-accueil {
  color: #ffffff; 
  position: relative;
}

html {
  scroll-padding-top: 80px; 
}

.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.profile-img {
  width: 50px;  
  height: 50px;  
  border-radius: 100%;  
  object-fit: cover;  
  margin-right: 15px;  
}

.landing-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: transparent;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  line-height: 1.4;
  background: transparent;
}

.cta-button {
  background-color: #ffffff;
  color: #000000;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #a4a4a4;
  transform: scale(1.05);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  background-color: #000000;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header.shadow {
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2); /* lueur blanche */
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Roboto', sans-serif;
  display: inline-block; 
  background: transparent;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px; /* ajoute un peu d'air des deux côtés */
  background: transparent;
}

/* Style de base pour les liens */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.nav-links li {
  list-style: none;
  background: none; /* enlève fond sur les <li> */
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  background: none; /* enlève fond sur les <a> aussi */
  padding: 5px 10px; /* un petit padding propre */
  border-radius: 8px; /* optionnel : rend plus doux */
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.733); /* petit effet au hover */
  color: #000000; /* couleur au hover */
}

/* --- STYLE DU BURGER --- */
.burger {
  display: none; /* Cacher par défaut */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1101; /* Passe au-dessus du menu */
  background: transparent;
}

.burger span {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* --- MENU NAVIGATION --- */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute; /* plus logique ici pour éviter les bugs */
    top: 80px; /* aligné sous le header */
    right: 20px; /* petit espace au bord */
    width: 250px; /* pas full width */
    border-radius: 12px; /* coin arrondi = + doux */
    padding: 20px;
    display: none; /* caché par défaut */
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1100; /* sous le burger mais au-dessus du reste */
    animation: fadeSlide 0.3s ease forwards;
  }

  .nav-links.open {
    display: flex; /* passe en flex quand open */
  }

  .burger {
    display: flex;
  }

  /* Petite animation d'entrée */
  @keyframes fadeSlide {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

main {
  padding: 20px;
  margin-top: 80px; 
}

.section {
  padding: 80px 20px;
  color: rgb(251, 251, 251);
  overflow-x: hidden;
  margin: 0 auto; /* Centrer horizontalement si nécessaire */
  text-align: center;
  justify-content: center;
  align-items: center;
}
.section h2 {
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  position: relative;
  background-color: transparent;
}

.section p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
  justify-content: center;
  margin: 0 auto; 
}
.card h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  position: relative;
  background-color: transparent;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  justify-content: center;

}


.card:nth-child(3) {
  order: 3; 
}


/* Galerie de projets */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0; /* plus de marge sur les côtés */
}

.project-item {
  background-color: #000000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
}

.project-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* ou contain selon ton rendu */
  border-radius: 0; /* optionnel si tu veux un look plein écran */
}

.short-description {
  font-family: 'Lora', serif;
  font-size: 0.9em;
  color: #ffffff;
  margin-top: 10px;
  background: transparent;
}

.open-modal {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.open-modal:hover {
  background-color: #161616;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  height: auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  overflow: auto;
}
.modal-content {
  display: flex; /* Utiliser flexbox pour aligner les éléments */
  gap: 20px; /* Espace entre l'image et la description */
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  text-align: left; /* Alignement du texte à gauche */
  position: relative;
}

.modal-img {
  width: 50%; /* L'image occupe 50% de la largeur */
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.full-description {
  width: 50%; /* La description occupe 50% de la largeur */
  font-size: 1.1em;
  color: #ffffff;
  text-align: justify; /* Justifie le texte pour un rendu propre */
  line-height: 1.6;
  display: flex;
  align-items: center; /* Centre verticalement le texte */
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2em;
  color: #ffffff;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff0000;
}

/* Affichage du modal */
.modal.show {
  display: flex;
}
.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Assurer que le fond sombre recouvre toute la fenêtre */
.modal:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}
/* Media query pour les petits écrans */
@media (max-width: 700px) {
  .modal-content {
    flex-direction: column; /* Passe en colonne sur petits écrans */
    gap: 10px; /* Réduit l'espace entre les éléments */
  }

  .modal-img {
    width: 100%; /* L'image occupe toute la largeur */
    max-height: 300px; /* Limite la hauteur de l'image */
  }

  .full-description {
    width: 100%; /* La description occupe toute la largeur */
    font-size: 1em; /* Réduit légèrement la taille du texte */
  }
}

@media (max-width: 700px) {
  .project-item {
    padding: 0; /* pour enlever l'espace autour de l'image */
  }
}
.timeline {
  position: relative;
  width: 660px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 1em 0;
  list-style-type: none;
  color: #000000;
}

.timeline:before {
  position: absolute;
  left: 50%;
  top: 0;
  content: ' ';
  display: block;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: rgb(110, 110, 110);
  z-index: 5;
}

.timeline li {
  padding: 1em 0;
}

.timeline li:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.direction-l {
  position: relative;
  width: 300px;
  float: left;
  text-align: right;
}

.direction-r {
  position: relative;
  width: 45%; /* Ajuste la largeur pour qu'elle soit proportionnelle */
  float: right;
  text-align: left;
}

.flag-wrapper {
  position: relative;
  display: inline-block;
  
  text-align: center;
}

.flag {
  position: relative;
  display: inline;
  background: rgb(248,248,248);
  padding: 6px 10px;
  border-radius: 5px;
  
  font-weight: 600;
  text-align: left;
}

.direction-l .flag:before,
.direction-r .flag:before {
  position: absolute;
  top: 50%;
  right: -40px;
  content: ' ';
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -10px;
  background: #000000;
  border-radius: 10px;
  border: 4px solid #ffffff;
  z-index: 10;
}

.direction-r .flag:before {
  left: -45px;
}

.direction-l .flag:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-left-color: rgb(248,248,248);
  border-width: 8px;
  pointer-events: none;
}

.direction-r .flag:after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-right-color: rgb(248,248,248);
  border-width: 8px;
  pointer-events: none;
}

.time-wrapper {
  display: inline;
  
  line-height: 1em;
  font-size: 0.66666em;
  color: rgb(0, 0, 0);
  vertical-align: middle;
}

.direction-l .time-wrapper {
  float: left;
}

.direction-r .time-wrapper {
  float: right;
}

.time {
  display: inline-block;
  padding: 4px 6px;
  background: rgb(248,248,248);
}

.desc {
  margin: 1em 0.75em 0 0;
  
  font-size: 0.77777em;
  font-style: italic;
  line-height: 1.5em;
}

.direction-r .desc {
  margin: 1em 0 0 0.75em;
}

@media screen and (max-width: 660px) {

.timeline {
     width: 100%;
    padding: 4em 0 1em 0;
}

.timeline li {
    padding: 2em 0;
}

.direction-l,
.direction-r {
    float: none;
    width: 100%;

    text-align: center;
}

.flag-wrapper {
    text-align: center;
}

.flag {
    background: rgb(255,255,255);
    z-index: 15;
}

.direction-l .flag:before,
.direction-r .flag:before {
  position: absolute;
  top: -30px;
    left: 50%;
    content: ' ';
    display: block;
    width: 12px;
    height: 12px;
    margin-left: -9px;
    background: #fff;
    border-radius: 10px;
    border: 4px solid #000000;
    z-index: 10;
}

.direction-l .flag:after,
.direction-r .flag:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    height: 0;
    width: 0;
    margin-left: -8px;
    border: solid transparent;
    border-bottom-color: rgb(255,255,255);
    border-width: 8px;
    pointer-events: none;
}

.time-wrapper {
    display: block;
    position: relative;
    margin: 4px 0 0 0;
    z-index: 14;
}

.direction-l .time-wrapper {
    float: none;
}

.direction-r .time-wrapper {
    float: none;
}

.desc {
    position: relative;
    margin: 1em 0 0 0;
    padding: 1em;
    background: rgb(245,245,245);
    -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
    -moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
    box-shadow: 0 0 1px rgba(0,0,0,0.20);
    
  z-index: 15;
}

.direction-l .desc,
.direction-r .desc {
    position: relative;
    margin: 1em 1em 0 1em;
    padding: 1em;

  z-index: 15;
}

}

@media screen and (min-width: 400px) and (max-width: 660px) {
  .direction-l .desc,
  .direction-r .desc {
      margin: 1em 4em 0 4em;
  }
}

/* Formulaire */
.form-container {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 40px auto;
  transition: box-shadow 0.3s ease-in-out;
  color: #ffffff;
}

.form-container:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.form-container h2 {
  text-align: center;
  width: 100%;
  color: #ffffff;
}

label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
  color: #ffffff;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  font-size: 16px;
  background-color: #2c2c2c;
  color: #ffffff;
  transition: border 0.3s ease-in-out;
}

input:focus,
textarea:focus {
  border-color: #bbbbbb;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

button {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #242424;
}

@media screen and (max-width: 768px) {
  .burger {
      display: flex;
  }
  .nav-links {
      flex-direction: column;
      position: fixed;
      top: 60px;
      right: 0;
      background-color: #333;
      width: 100%;
      height: calc(100vh - 60px);
      transform: translateX(100%);
      align-items: center;
      padding-top: 20px;
  }

  .nav-links.open {
      transform: translateX(0);
  }

  .nav-links li {
      margin: 10px 0;
  }
  .section {
      grid-template-columns: 1fr;
  }
}

.julialagache {
  margin: 0;
  padding-top: 3vh;
  line-height: 1.2;
  font-family: "Poppins", sans-serif; 
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  background: linear-gradient(90deg, #000000, #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 300% 100%;
  animation: gradient-shift 6s ease-in-out infinite;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

@keyframes gradient-shift {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.animated-text-container {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in 1.5s ease-out forwards;
}

@keyframes fade-in {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.scroll-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

.large-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  z-index: -1; 
}

#large-header {
  background-size: cover;
  background-position: center center;
}

.main-title {
  position: absolute;
  margin: 0;
  padding: 0;
  color: #f9f1e9;
  text-align: center;
  top: 50%;
  left: 50%;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
}

.animated-gallery {
  padding: 2rem 1rem;
  background: none;
}

.animated-gallery h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.gallery-track {
  column-count: 4; /* Nombre de colonnes (tu peux adapter à 2 ou 3 en responsive) */
  column-gap: 0px; /* Espace entre les colonnes */
}

.gallery-track img {
  width: 100%;
  margin-bottom: 0px;
  display: block;
  break-inside: avoid; /* évite que les images se cassent en deux */
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-track img:hover {
  transform: scale(1.02);
}


/* Responsive */
@media screen and (max-width: 1200px) {
  .gallery-track {
    column-count: 3;
  }
}

@media screen and (max-width: 768px) {
  .gallery-track {
    column-count: 2;
  }
}

@media screen and (max-width: 480px) {
  .gallery-track {
    column-count: 2; /* ✅ On garde 2 colonnes même sur les petits écrans */
  }
}


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

.lightbox-controls {
  width: 100%;
  display: flex;
  justify-content: space-between; /* un bouton à gauche, l'autre à droite */
  align-items: center;
  margin-top: 20px;
  padding: 0 30px; /* petit espace intérieur */
}

.lightbox-controls button {
  background-color: #000000;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s ease;
  color: #fff; /* pour être sûr que l'icône/flèche est bien blanche */
}

.lightbox-controls button:hover {
  background-color: #333333; /* effet hover un peu plus clair */
}


/* === STYLE COMPÉTENCES === */

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

.flex h2 {
  width: 180px; /* Largeur fixe pour aligner toutes les barres */
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  color: #ffffff;
}

.flex h3 {
  width: 50px; /* Largeur fixe pour les pourcentages */
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffc2c2;
}

.bar {
  flex: 1;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inside1, .inside2, .inside3, .inside4, .inside5, .inside6, .inside7 {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(to right, #ff6a00, #ee0979);
  width: 0%; /* Commence à 0% */
  transition: width 1s ease-in-out; /* Transition fluide */
}

.visible .inside1 {
  width: 40%;
}

.visible .inside2 {
  width: 45%;
}

.visible .inside3 {
  width: 25%;
}

.visible .inside4 {
  width: 85%;
}

.visible .inside5 {
  width: 45%;
}

.visible .inside6 {
  width: 45%;
}

.visible .inside7 {
  width: 25%;
}

.inside1,
.inside2,
.inside3,
.inside4,
.inside5,
.inside6,
.inside7  {
  animation: fillBar 1.5s ease-out forwards;
}

@media (max-width: 768px) {
  .skillbar {
      font-size: 12px;
  }

  .skillbar::before {
      padding: 5px 0 5px 8px;
  }
}

.landing-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.4); /* Pour lisibilité */
}
.gallery {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery img {
  width: 10%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #fff;
  transition: all ease-out 0.5s;
  cursor: pointer;
  overflow: hidden;
}

.gallery img:hover {
  width: 50%;
}
