@font-face {
    font-family: "artdeco";
    src: url(5-font/Monoton-Regular.ttf);
}



.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 80%;
  padding: 16px;
  margin: 0 auto;
  flex-wrap: wrap;
  font-family: "helvetica", sans-serif;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "helvetica", sans-serif;
}

.header-left h1 {
  margin: 0;
  font-size: 28px;
  white-space: nowrap;
  font-family: "helvetica", sans-serif;
}

@media (min-width: 700px) {
  .header-left h1 { font-size: 40px; }
}

.header-center {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  transition: color 0.3s;
  padding: 10px 18px;
  border-radius: 20px;
}

.nav-links a:not(.contact-btn):hover {
  color: #666666;
  background-color: #f0f0f0;
}

.contact-btn {

  cursor: pointer;
  background-color: rgb(144, 31, 93);
  color: white !important;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

.contact-btn:hover {
  background-color: rgba(144, 31, 93, 0.635);
  color: white;
}

.contact-btn {
  position: relative;
}

.contenu {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #000000;
    justify-content: center;
    font-family: "arial", sans-serif;
}

.contenu h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: "arial", sans-serif;
}

/* About / profile styling (no frame) */
.about {
  padding: 0;
  margin-bottom: 12px;
}
.about h1, .about h2 {
  margin: 0 0 10px 0;
}
.about p {
  text-align: justify;
  margin: 0 0 10px 0;
  color: #222222;
}
.about .skills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.skill-badge {
  background: #f3f5fb;
  color: #1f2a63;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Project button styled like skill badge */
.project-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d0d0d0;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 15px;
  width: fit-content;
}

.project-button:hover {
  background: #b8b8b8;
  color: white;
}

.project-button img {
  width: 16px;
  height: 16px;
}
.avatar {
  width: 85px;         
  height: 85px;         
  border-radius: 50%;    
  object-fit: cover; 
  zoom: 1;    
  transition: transform 0.5s;
}
.avatar:hover {
  transform: scale(1.05);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gallery img {
  width: auto;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.5s;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Hidden state management for progressive galleries */
.hidden { display: none; }

/* Button styling to reveal all photos across projects */
.see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: #d0d0d0;
  color: #111;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.see-all:hover { background: #b8b8b8; }
a {
    text-decoration: none;
}
a:visited {
    color: rgb(27, 27, 61);
}


.main-photo-container {
  display: flex;
  background-color: #f4f4f4;
  border-radius: 16px;
  overflow: hidden;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
  flex-direction: column; /* mobile-first */
}

.main-photo-container > div:first-child {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.main-photo-container h1 {
  margin: 0 20px 0 0;
  font-size: 2em;
  line-height: 1.3;
}

.main-photo-container p {
  margin: 15px 20px 0 0;
  text-align: justify;
  font-size: 1em;
}

.main-photo {
  width: 100%;
  height: auto;
  min-height: 240px;
  object-fit: cover;
  border-radius: 0;
}

/* Reversed layout: photo left, text right */
.main-photo-container-reversed {
  display: flex;
  flex-direction: column; /* mobile-first */
}

.main-photo-container-reversed > div:first-child {
  padding: 20px;
}

.main-photo-container-reversed h1 {
  margin: 0 0 0 20px;
}

.main-photo-container-reversed p {
  margin: 15px 0 0 20px;
}

/* Remove scale on hover; use gradient shadow on the wrapper */
.main-photo-container:hover {
  transform: scale(1.02);
}



.lightbox {
  display: none;           /* cachée par défaut */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;

}

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

.lightbox .nav span {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

/* =========================
   CAROUSEL
========================= */

.carousel {
  max-width: 1100px;
  margin: 100px auto;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

/* Slide */

.carousel-slide {
  flex: 0 0 33.3333%;
  display: flex;
  justify-content: center;
  transition: transform 0.4s ease;
}

.carousel-slide img {
  width: 80%;
  height: auto;       /* laisser la hauteur s'adapter */
  max-height: 420px;  /* limite si besoin */
  object-fit: contain; /* ne coupe jamais l'image */
  transition: transform 0.4s ease;
}

/* Image centrale plus grande */
.carousel-slide.active img {
  transform: scale(1.3); /* légèrement plus grande sans couper */
}


/* Hover bubble */

.carousel-slide {
  position: relative;
}

.carousel-slide .hover-bubble {
  position: absolute;
  bottom: 30px;
  background: rgba(225, 225, 225, 0.543);
  backdrop-filter: blur(6px);
  color: rgb(0, 0, 0);
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
}

.carousel-slide:hover .hover-bubble {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation buttons */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: black;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #333;
}

.carousel-btn.prev {
  left: -60px;
}

.carousel-btn.next {
  right: -60px;
}

/* Dots */

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbb;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots button.active {
  background: black;
  transform: scale(1.4);
}

/* Mobile */

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%;
  }

  .carousel-slide img {
    width: 90%;
    height: 320px;
  }

  .carousel-btn {
    display: none;
  }
}



@media (min-width: 900px) {
  .header { padding: 20px; }
  .header-left h1 { font-size: 40px; }
  .main-photo-container { flex-direction: row; }
  .main-photo { width: 40%; }
  .main-photo-container > div:first-child { padding: 20px; }
  .main-photo-container-reversed { flex-direction: row-reverse; }
  .main-photo-container-reversed > div:first-child { padding: 20px; }
  .carousel-slide {
    flex: 0 0 calc((100% - 16px) / 3);
    height: 320px;
  }
}

/* On s'assure que le site n'a pas de marges bizarres */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif; /* Très Apple */
}

/* La zone de scroll : plus 'height' est grand, plus le scroll est long */
.scroll-section {
  position: relative;
  height: 120vh; /* 4 fois la hauteur de l'écran */
  background-color: #ffffff;
}

/* Le container qui reste fixe */
.sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh; /* Prend tout l'écran */
  overflow: hidden;
}

/* On force Spline à remplir tout le container */
spline-viewer {
  width: 100% !important;
  height: 100% !important;
}

.content {
  position: relative;
  z-index: 2; /* Pour passer devant le tabouret */
  pointer-events: none; /* TRÈS IMPORTANT : permet de continuer à scroller même si la souris est sur le texte */
}

.step {
  height: 100vh; /* Chaque bloc de texte prend toute la hauteur de l'écran */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centre le texte verticalement */
  align-items: center; /* Centre le texte horizontalement */
  text-align: center;
  padding: 0 10%;
}

.step h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1d1d1f; /* Le noir Apple */
}

.step p {
  font-size: 1.5rem;
  color: #86868b; /* Le gris secondaire Apple */
}
