/* Body en flex column pour gérer menu bas */
body {
  margin: 0;
  background: #ececec;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement */
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: white;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.logo {
  height: 50px;
  width: auto;
}
img {
  max-width: 100%;
  width: 100%;
  display: block;
  box-sizing: border-box;
}
/* Wrapper prend tout l’espace dispo sauf le menu */
.carousel-wrapper {
  width: 600px;
  height: calc(100vh - 60px); /* 60px pour le menu */
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Carousel 3D */
.carousel {
  width: 600px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  cursor: grab;
}

/* Items centrés en absolu */
.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin: -150px -150px;
  border-radius: 0;
  overflow: visible; /* important pour voir l’ombre en dehors */
  box-shadow: none;
  transform-style: preserve-3d;
  z-index: 2;
}

.carousel-item::after {
  content: "";
  position: absolute;
  bottom: -100px; /* descendre sous l’image */
  left: 50%;
  transform: translateX(-50%) rotateX(90deg) translateZ(1px);
  width: 300px;
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  filter: blur(20px);
  border-radius: 50% / 100%;
  pointer-events: none;
  z-index: 1;
  transform-origin: center;
  transform-style: preserve-3d;
}



.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  border-radius: 0;

}


.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: skewX(-20deg);
  border-radius: 0; /* coins carrés sur le shine */
}

.carousel-item:hover::before {
  opacity: 1;
  animation: shine 2.5s linear infinite;
}

@keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}
.menu-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#burger {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000; /* Toujours au-dessus */
  background-color: rgba(0,0,0,0.7);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: white;
  padding: 8px 20px;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Transformation des traits en croix */
#burger.active .burger-traits span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: white;
}

#burger.active .burger-traits span:nth-child(2) {
  opacity: 0;
}

#burger.active .burger-traits span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: white;
}

.menu-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: white;
  user-select: none;
  cursor: pointer;
  margin-right: 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* 3 traits hamburger */
.burger-traits {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger-traits span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  border-radius: 1px;
}
/* Plein écran menu avec glassmorphism */
#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullscreen-menu.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

#fullscreen-menu .category {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  user-select: none;
  cursor: default;
  text-shadow:
    0 0 0 rgba(0, 0, 0, 0.8),
    0 0 0 rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

#fullscreen-menu .category:hover {
  color: #f3f3f3;
}

.category a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  padding: 4px 8px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.39);
  transition: color 0.3s ease;
}

.category a:hover,
.category a:focus {
  color: #ddd;
  outline: none;
}

a {
  text-decoration: none;
}
/* Scroll indicator (top) */
.scroll-indicator {
  position: fixed;
  top: 28px;
  left: 50%;
  right: auto;   
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 900;
  pointer-events: none;

  /* glass shadow */
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 28px rgba(255, 255, 255, 0.25);
}

.scroll-indicator::after {
  content: '';
  position: relative;
  width: 1px;
  height: 28px;
  background: rgba(0, 0, 0, 0.85);
  animation: scroll-line 1.6s ease-in-out infinite;
}

/* Halo glass derrière le trait */
.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(14px);
  border-radius: 999px;
  pointer-events: none;
}


/* Animation du trait */
@keyframes scroll-line {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
/* effet hover fluide */
.fluid-hover {
  position: absolute;
  pointer-events: none;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  backdrop-filter: blur(25px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.fluid-hover.active {
  opacity: 1;
}

/* Glassmorphism menu internal */
.glassmorphism-menu {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 60px;
  box-sizing: border-box;
  mask-image: none;
  -webkit-mask-image: none;
}

.glassmorphism-menu::before {
  content: '';
  position: absolute;
  top: var(--mask-y, 50%);
  left: var(--mask-x, 50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 90%);
  transform: translate(-50%, -50%);
  transition: background 0.2s ease;
  mix-blend-mode: screen;
  filter: blur(25px);
  z-index: 10;
}


/* Close menu button */
#close-menu {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 18px;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 12000;
  background: rgba(92, 92, 92, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: none;
}

#close-menu:hover,
#close-menu:focus {
  background: rgba(255, 255, 255, 0.8);
  color: rgb(0, 0, 0);
  outline: none;
}

/* Conteneur principal fullpage horizontal */
#fullpage-container {
  display: flex;
  flex-direction: row;
  width: calc(7 * 100vw); /* 7 pages */
  height: 100vh;
  overflow: hidden;
  transition: transform 0.6s ease;
  scroll-behavior: smooth;
  position: relative;
}