* {
      box-sizing: border-box;
      scroll-behavior: smooth;
      margin: 0;
      padding: 0;
    }


   /*#loading-screen {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #121212;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
  font-family: 'Roboto', sans-serif;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  font-size: 1.5rem;
  display: flex;
  gap: 0.1rem;
}

.loader .dot {
  animation: blink 1.4s infinite;
}
.loader .dot:nth-child(2) { animation-delay: 0.2s; }
.loader .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}*/

.video-js {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}

    :root {
      --bg-color: #050505;
      --text-color: #ffffff;
      --header-bg: rgba(31, 31, 31, 0.6);
      --accent-color: #00bcd4;
      --active-link-color: #ff4081;
    }

      @font-face {
      font-family: 'AndersonGrotesk';
      src: url('fonts/AndersonGrotesk-Light.woff') format('woff');
      font-weight: normal;
      font-style: normal;
    }

    body {
      font-family: 'AndersonGrotesk';
      line-height: 1.6;
      background-color: var(--bg-color);
      color: var(--text-color);
      transition: background-color 0.3s, color 0.3s;
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: rgba(31, 31, 31, 0.6);
      z-index: 1000;
      padding: 0.5rem 1rem;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(10px);
    }


    header h1 {
      font-size: 1rem;
      margin-top: 0.2rem;
      margin-bottom: 0rem;
    }

    nav {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      z-index: 1100;
    }

    nav a {
      color: var(--text-color);
      text-decoration: none;
      margin: 0 1rem;
      font-weight: bold;
      transition: color 0.3s ease;
    }

    nav a:hover,
    nav a:focus,
    nav a:active,
    .mobile-nav a:hover,
    .mobile-nav a:focus,
    .mobile-nav a:active {
      color: var(--accent-color);
    }

    nav a.active,
    .mobile-nav a.active {
      color: var(--active-link-color);
    }

    nav a.pw,
    .mobile-nav a.pw {
      color: var(--active-link-color);
    }

    .menu-toggle {
      display: none;
      cursor: pointer;
      position: fixed;
      right: 20px;
      top: 9px;
      flex-direction: column;
      justify-content: space-between;
      height: 25px;
      z-index: 1101;
    }

    .menu-toggle div {
      background: var(--text-color);
      height: 3px;
      width: 25px;
      margin: 3px 0;
      transition: all 0.4s ease;
    }

    .menu-toggle.active div:nth-child(1) {
      transform: rotate(45deg) translate(2px, 10px);
      transform-origin: center;
    }
    .menu-toggle.active div:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.active div:nth-child(3) {
      transform: rotate(-45deg) translate(2px, -10px);
      transform-origin: center;
    }

    .mobile-nav {
      display: none;
      flex-direction: column;
      background-color: rgba(0, 0, 0, 0.9);
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      padding: 2rem 1rem;
      z-index: 1200;
      animation: slideDown 0.3s ease-out forwards;
    }

    .mobile-nav.show {
      display: flex;
    }

    
    .mobile-nav a {
      margin: 0.5rem 0;
      text-align: left;
      font-weight: bold;
      color: var(--text-color);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .mobile-nav a:hover {
      color: var(--accent-color);
    }

    .mobile-nav a.active {
      color: var(--active-link-color);
    }

    @keyframes slideDown {
      0% {
        opacity: 0;
        transform: translateY(-20px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

  .hero-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}


.hero-video .video-desktop {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}


.hero-video .video-mobile {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}


@media (max-width: 768px) {
  .hero-video .video-desktop {
    display: none !important;
  }

  .hero-video .video-mobile {
    display: block !important;
  }
}

.hero-video {
  width: 100%;
  overflow: hidden;
  position: relative;
}
    .section {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20px;
      min-height: 30vh;
      scroll-margin-top: 40px;
      opacity: 0;
      transform: translateY(50px);
      transition: all 0.8s ease-out;
      position: relative;
      text-align: center;
    }

    .sectione {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20px;
      min-height: 30vh;
      scroll-margin-top: 40px;
      transform: translateY(50px);
      transition: all 0.8s ease-out;
      position: relative;
      text-align: center;
    }

    .section-content {
      z-index: 1;
      max-width: 1200px;
      text-align: center;
      color: white;
      background: none; /* plus aucun fond */
    }

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

    .logo_titre {
      width: 50%;
    }

    .section img.bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      opacity: 0.6;
      /*mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);*/
    }

    .section-image {
      width: 70%;
      overflow-x: auto;
      white-space: nowrap;
      scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
      margin-top: -20px;
    }

    .section-image img {
      width: 100vw;
      height: auto;
      display: inline-block;
      object-fit: cover;
      scroll-snap-align: start;
      /*mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
          -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);*/
    }

    .carousel-container {
      position: relative;
      width: 100%;
      overflow: hidden;
      margin-top: 2rem;
    }

    .carousel-track {
  display: flex;
  gap: 10px;
  will-change: transform;
  transition: transform 0.5s ease;
  touch-action: pan-y; /* important pour Safari */
}

    .carousel-track img {
      width: 100%;
      max-width: 100%;
      flex-shrink: 0;
      object-fit: cover;
    }

    .carousel-track {
      
      cursor: grab;
    }

    .carousel-track.dragging {
      cursor: grabbing;
    }


    .section-separator {
      width: 90%;
      height: 1px;
      background-color: white;
      margin: 2rem auto 1rem auto; /* espace au-dessus et dessous */
      opacity: 0.3; /* un léger effet fondu */
    }

    .section.visible .section-separator {
      opacity: 1;
      transition: opacity 0.6s ease;
    }


    /*.carousel-button {
      font-size: 6rem;       
      font-weight: 2;      
      background: none;      
      color: white;
      border: none;
      cursor: pointer;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
    }

    .carousel-button.left {
      left: 10px;
    }

    .carousel-button.right {
      right: 10px;
    }

    .carousel-button svg {
      width: 64px;
      height: 64px;
      stroke: white;
      stroke-width: 0.5;
    }*/


    .carousel-indicators {
      position: absolute;
      bottom: 10px; /* ajuste la marge du bas selon ton design */
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      justify-content: center;
      gap: 10px;
      z-index: 5;
    }

    .carousel-indicators .dot {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.7); /* contour blanc semi-transparent */
  background-color: transparent; /* pas de remplissage */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel-indicators .dot.active {
  background-color: white; /* pastille remplie pour l'élément actif */
  border-color: white;
}


   .text-wrapper {
  overflow: hidden;
  text-align: left; /* Si besoin */
  max-width: 90%;
  margin: 0 auto;
  max-height: 3em;
  transition: max-height 0.5s ease;
  margin-bottom: 0;
}

.text-wrapper3 {
  text-align: left; /* Si besoin */
  max-width: 90%;
  margin: 0 auto;
  margin-bottom: 0;
}

.text-wrapper2 {
  overflow: hidden;
  text-align: center; /* Si besoin */
  max-width: 90%;
  margin: 0 auto;
  max-height: 3em;
  transition: max-height 0.5s ease;
  margin-bottom: 0;
}

.text-wrapper.expanded {
  -webkit-line-clamp: unset;
  /*max-height: 500x;*/
}

.section-content .text-wrapper.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
    
    .section h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .section p {
      margin-bottom: 1.5rem;
    }

    footer {
      text-align: center;
      padding: 2rem;
      font-size: 0.9rem;
      background-color: var(--header-bg);
      color: #ccc;
    }

    #topBtn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
      background-color: var(--accent-color); /* ou bleu */
      color: white;
      border: none;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 25px;
      cursor: pointer;
      z-index: 999;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    #topBtn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
  }


    .project-description {
      max-height: 3.6em; /* environ 2 lignes */
      overflow: hidden;
      transition: max-height 0.4s ease;
    }

    .title {
      font-size: 3rem;
      font : bold;
    }

    .project-description.expanded {
      /*max-height: 1000px; /* assez grand pour afficher tout le texte */
    }

    .read-more-btn {
      background: none;
      border: none;
      color: var(--accent-color);
      cursor: pointer;
      font-weight: bold;
      margin-top: -5rem;
    }

    @media (max-width: 768px) {
      nav {
        display: none;
      }
      .menu-toggle {
        display: flex;
      }
      .section-image {
        width: 100%;
      }

    }

    .mobile-video-overlay {
  display: none;
}

@media (max-width: 768px) {
  .mobile-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* même hauteur que ton header */
    background-color: white;
    z-index: 999; /* juste sous le header (qui est à 1000) */
    pointer-events: none; /* évite les problèmes de clics */
  }

  /*header {
    background-color: transparent !important; /* Supprime le fond du header sur mobile */
    /*backdrop-filter: none !important;         /* Évite l'effet de flou */
    /*box-shadow: none !important;              /* Supprime l'ombre si besoin */
  /*}*/
}


.cv_icon {
  height: 24px;
  width: auto;
  vertical-align: middle;
  
}

.click-to-zoom {
  cursor: zoom-in;
  transition: transform 0.3s ease, z-index 0s;
  max-width: 100%;
  height: auto;
  z-index: 1;
  position: relative;
}

.click-to-zoom.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  cursor: zoom-out;
  z-index: 9999;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

#image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999; /* le plus haut possible */
  cursor: zoom-out;
}

#image-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: transform 0.3s ease;
}



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

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.map{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: auto;
  max-width: 1000px;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.map-image img{
  width: 100vw;
      height: auto;
      display: inline-block;
      object-fit: cover;
}

.map-image{
  display: flex;
  display: inline-block;
  text-align: center;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

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

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-image,
.feature-text {
  flex: 1 1 45%;
}

.map .feature-text {
  flex: 2;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.feature-text {
  font-size: 2rem;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .map,
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
  }
  .map-image,
  .feature-image,
  .feature-text {
    flex: 1 1 100%;
  }
}
