* {
  margin: 0;
  padding: 0; 
  /* background-color: #0F2E35; */
  color: #F5F0A1; 
  text-decoration: none;
} 

html {
  scroll-behavior: smooth;
}

body {
  /* background-color: #0F2E35; */
  z-index: 0;
  font-family: geist_light;
  position: relative;
}

main {
    /* background: linear-gradient(to bottom, #0F2E35, #1B0C3B,#0F2E35); */
    background-color: #1B0C3B;
}

/* font */
@font-face {
  font-family: geist_light; /* en fait c'est regular pas light */
  src: url("fonts/geist/Geist-Regular.woff2");  
  font-display: swap;
} 
@font-face {
  font-family: geist_bold;
  src: url("fonts/geist/Geist-Bold.woff2");  
  font-display: swap;
} 
@font-face {
  font-family: askey;
  src: url("fonts/AskeyBlur-Regular.otf");
  font-display: swap;
}


div.boite {
  width: 100%;
}
.boite {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* width: auto; */
}

/* img {
  width: 30%;
  border-radius: 30px;
  padding: 20px;
} */

header {
  margin: 0;
  /* background-color: #0F2E35; */
  background: linear-gradient(to bottom, #0F2E35, #1B0C3B);
  color: #F5F0A1;
  font-family: geist_light;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* position: relative; */
  }

.bloc {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  padding: 30px 60px;
}
  
/* Partie gauche : bloc collé en haut à gauche */
.left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prenom {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

h1 a{
  font-family: askey;
  font-size: 7rem;
  margin: 0;
  line-height: 1;
}

.nom {
  font-size: 1rem;
  margin-top: 0.3rem;
  align-self: flex-end;
  z-index: 1;
}
  
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding-top: 20%;
}

/* .logo img { */
/* supprimé : logo_header */ 
/* } */

/* Partie droite : menu vertical centré */
.right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 1;
  /* padding-top : 35%; */
  /* padding-top : 500px; */
}

.right nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  height: 100%;
}

.right a {
  font-family: geist_bold;
  font-size: 2rem;
  text-decoration: none;
  text-align: right;
  display: inline-block; /* nécessaire pour appliquer transform */
  transition: transform 0.3s ease, color 0.3s ease;
}
.right a:hover {
  transform: translateX(-8px); /* ou Y pour un effet vertical */
  color: #884CA5;
}

.right a:active {
  transform: translateX(-8px); /* garde la position */
  color: #115B90;
}

/* PARALXE FLOWER */

.parallax-background {
  background-image: url("img/divers/flower.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

/* ABOUT ME */

#portrait {
  width: 300px;
  height: 483px;
  border-radius: 20px;
  object-fit: cover;
  padding: 0;
} 

h2#about {
  padding-top: 50px;
}

#about-section {
  padding: 80px 60px;
}

#about-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 80px;
}

#about-content #portrait {
  max-width: 300px;
  width: 100%;
  /* border-radius: 30px; */
  object-fit: cover;
}

#about-text {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: geist_bold;
}

#about-text p {
  padding-bottom: 1rem;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 10px #F5F0A1;
  }
}

.behance {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding-top: 2rem;
  font-weight: bold;
  animation: glow 3s ease-in-out infinite;
}

/* CONTENU */
a {
  position: relative;
  color: #F5F0A1;
  text-decoration: none;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  background-color: #884CA5; /* ligne violette */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

a:hover {
  color: #884CA5;
}

.behance:hover::after { /*la ligne */
  transform: scaleX(1);
}

a:active {
  color: #115B90; 
}

h2 {
  font-family: geist_bold;
  font-size: 3rem;
  padding: 80px 0 40px 40px;
  position: relative;
  letter-spacing: 2px;
  color: #F5F0A1;
}

/* ---- CAROUSSEL ---- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 30px 0 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* border-radius: 20px; c'est ça qui marchait avant i think */
}

.carousel-images {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%; 
}

.carousel-images img {
  width: 600px;
  height: 400px;
    /* max-width: 600px; */
  object-fit: contain;
  flex-shrink: 0;
  margin: auto;
  display: block;
  padding: 0;
  /* border-radius: 30px; */
  overflow: hidden;
}

/* -----claude pour la video------ */
.carousel-images img,
.carousel-images video {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* gap: 30px; */
  padding-bottom: 30px;
  flex-wrap: wrap; /* Pour responsive */
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4); /* Fond noir semi-transparent */
  backdrop-filter: blur(4px); /* Flou doux pour lisibilité */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Liseré discret */
  color: #F5F0A1; /* Couleur de texte lisible */
  cursor: pointer;
  z-index: 2;
  padding: 5px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.carousel button:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel button:active {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

.carousel-text {
  max-width: 600px;
  /* text-align: center; */
  font-size: 1.1rem;
  line-height: 1.4;
}
.carousel-text p {
  background-color: rgba(136, 76, 165, 0.2); 
  /* border: 1px solid #884CA5;  */
  border-radius: 15px;
  padding: 15px;
}

/* cleopatre PDF SIZE */
.cleopatre .carousel-images img {
  width: 100%;
  height: 400px;
  object-fit: contain; /* ou cover si tu veux remplir entièrement */
  flex-shrink: 0;
  border-radius: 20px;
  /* background-color: #0F2E35; */
}

.teknika .carousel-images img {
  width: 100%;
  height: 400px;
  object-fit: contain; /* ou cover si tu veux remplir entièrement */
  flex-shrink: 0;
  border-radius: 20px;
  /* background-color: #0F2E35; */
}

/* ---footer--- */
.piedpage {
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  align-items: center;
  /* height: 50px; */
  font-size: 1.2rem;
  /* margin-top: auto;  Permet de pousser le footer en bas de la page */
  padding: 0 60px;
  /* background-color: #0F2E35; */
  background: linear-gradient(to bottom, #1B0C3B,#0F2E35);
}

footer {
  position: relative; /* nécessaire pour positionner le ::before */
}


#logo_footer {
  width: 80px;
  height:80px;
  padding:0;
  cursor: pointer;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  animation: zoomIn 0.3s ease;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* RESPONSIVE */
@media screen and (max-width: 768px) {
.carousel-images img {
    width: 100%;
    max-width: 400px; /* Réduit pour mobile */
    height: auto;
  }

.carousel-container {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .carousel {
    max-width: 400px;
    padding: 0 0 10px 0;
  }

  .carousel-text {
    max-width: 100%;
    font-size: 1rem;
    padding: 0 0 50px 0;

  }

  .carousel-container {
    flex-direction: column;
    padding: 20px 20px; /* réduit l'espacement */
    gap: 10px; /* réduit l'espace entre texte et image */
  }

  .carousel-text {
    max-width: 100%;
    font-size: 1rem;
    margin-top: -10px; /* rapproche du carrousel */
  }

  /* cleopatre */
  .cleopatre .carousel-images img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    flex-shrink: 0;
    /* border-radius: 20px; */
    /* background-color: #0F2E35s; */
  }

  header {
    height: auto;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
  }

  .bloc {
    padding: 0;
    flex-direction: column;
    align-items: center;
  }

  .left {
    align-items: center;
    text-align: center;
  }

  .prenom, .nom {
    font-size: 0.9rem;
  }

  h1 a {
    font-size: 3rem;
  }

  .bottom {
    flex-direction: column;
    padding-top: 20px;
    gap: 20px;
  }

  .right nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

  .right a {
    font-size: 1rem;
    align-items: center;
  }

  .right {
  display: flex;
  align-items: center; /* ajoute ça pour bien centrer horizontalement */
  justify-content: center;
  flex-direction: column;
  width: 100%; /* prend toute la largeur dispo */
}

  #about-content {
    flex-direction: column;
    padding: 0 20px;
    align-items: center;
    gap: 20px;
  }

  #about-text {
    font-size: 0.9rem;
    max-width: 100%;
  }

  h2 {
    font-size: 2rem;
    padding: 40px 20px 20px;
  }

  .piedpage {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 20px;
  }

  #logo_footer {
    width: 60px;
    height: 60px;
  }

  .parallax-background {
    display: none; /* désactive l’arrière-plan sur mobile */
  }

  #portrait {
    width: 250px;
    height: 403px; 
  }

}

@media screen and (max-width: 360px) {
    .piedpage p {
      font-size: 0.8rem;
      /* word-break: break-word; */
    }
  }
