body {
  margin: 0;
  font-family: 'Josafronde', sans-serif;
  color: white;
  height: 100vh;
  background: linear-gradient(120deg, #d6a4a4, #c0b6f2, #a1c4fd);
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
  overflow: scroll;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;

  background: linear-gradient(
    90deg,
    rgba(75, 46, 131, 0.25) 0%,
    rgba(75, 46, 131, 0.1) 50%,
    rgba(75, 46, 131, 0) 100%
  );

  pointer-events: none;
  z-index: 1;
}

/* Animation du fond dégradé */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1rem;
  z-index: 10;
}


.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 100vh;


  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 20;
  cursor: pointer;
}

.menu-bar span {
  transform: rotate(-90deg);
  color: white;
  letter-spacing: 2px;
  font-size: 0.9rem;
}



#menu-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px;
  height: 100vh;

  background: linear-gradient(
    90deg,
    rgba(75, 46, 131, 0.25) 0%,
    rgba(75, 46, 131, 0.15) 40%,
    rgba(75, 46, 131, 0.05) 70%,
    rgba(75, 46, 131, 0) 100%
  );

  pointer-events: none;
  z-index: 5;
}


#side-menu.open {
  transform: translateX(0);
}


#side-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#side-menu a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  margin: 0.8rem 0;
}

#side-menu a:hover {
  opacity: 0.6;
}


#side-menu {
  position: fixed;
  top: 0;
  left: 0;

  width: 50%;
  height: 100vh;

  background: linear-gradient(
    90deg,
    rgba(75, 46, 131, 0.95) 0%,
    rgba(75, 46, 131, 0.6) 60%,
    rgba(75, 46, 131, 0) 100%
  );

  transform: translateX(-100%);
  transition: transform 0.4s ease;

  z-index: 10;

  display: flex;
  align-items: center;
  padding-left: 100px;
}

#side-menu.open {
  transform: translateX(0);
}

#side-menu a {
  color: white;
  font-size: 1.5rem;
}

/* ===== FIX LAYOUT ===== *
/* éviter que le contenu passe sous la barre */
main {
  margin-left: 60px;
  margin-bottom: 5rem;
}

h1 {
  font-size: 1.3rem;
  font-weight: 300;
  padding-left: 1vw;
  padding-top: 1vh;
}

.container {
  display: flex;
  height: 90vh;
  width: 90vw;
}

/* TEXTE */
.text-section {
  width: 70%;
  padding: 10px;
  padding-top: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
  box-sizing: border-box;
}

.text-section p {
  max-width: 600px;
  line-height: 1.6;
  font-size: 18px;
}

/* CAROUSEL */
.carousel-section {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 15vw;
  padding-top: 10vh;
  box-sizing: border-box;
  gap: 15px;
}

.main-image {
  width: 30vw;
  height: 75vh;
  object-fit: cover;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.side-images {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.side-images img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  filter: blur(2px);
  opacity: 0.7;
  cursor: pointer;
  transition: 0.2s;
}

.side-images img:hover {
  opacity: 1;
  filter: blur(0);
}

.center-mini {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  filter: blur(1px);
  opacity: 0.9;
}

.controls {
  display: flex;
  gap: 10px;
}

button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
}

#burger {
  display: none;
}

@media (max-width: 768px) {

  html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
  }

  main {
    padding: 3rem 1rem 2rem 1rem;
    height: auto;
  }

  .container {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
  }

  .carousel-section img {
    width: 80vw;
    margin-right: 33vw;
  }

  .text-section {
    width: 100%;
    padding: 0;
    padding-top: 0rem;
    margin-right: 15vw;
    align-items: center;
    text-align: center;
  }

  .text-section p {
    max-width: 100%;
    font-size: 12px;
  }

  /* ---- TITLE SUR 2 LIGNES ---- */
  h1 {
    font-size: 1.1rem;
    line-height: 1.3;
    padding-left: 3rem;
    padding-right: 1rem;
    max-width: 90%;
    font-weight: 900;
  }

  /* FORCER 2 LIGNES */
  h1 br {
    display: block;
  }

  /* ---- BURGER ---- */
  #burger {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    z-index: 999;
  }

  #burger:hover {
    color: #944BBB;
    cursor: pointer;
  }

  .menu-bar {
    display: none;
  }
}