@font-face {
  font-family: 'Picolo';
  src: url('public/fonts/Picolo\ Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: 'Picolo', sans-serif;
  background: #111;
  color: white;
}

/* Prevent selection of images and videos */
img, video {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

img::selection, video::selection {
  background: transparent;
}

/* Loading screen */
/* #loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#loading-screen.loaded {
  opacity: 0;
  pointer-events: none;
} */

/* Intro section */
.Info-Layer {
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

h2 {
  position: absolute;
  top: 20px;
  z-index: 10;
  font-size: 2vh;
  color: rgb(0, 0, 0);
  /* font-family: Arial, Helvetica, sans-serif; */
  font-weight: lighter;
  pointer-events: auto;
  cursor: pointer;
}
h3 {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 10;
  font-size: 2vh;
  color: rgb(0, 0, 0);
  /* font-family: Arial, Helvetica, sans-serif; */
  font-weight: lighter;
}
h4 {
  position: absolute;
  right: 20px;
  z-index: 10;
  font-size: 2vh;
  color: rgb(0, 0, 0);
  /* font-family: Arial, Helvetica, sans-serif; */
  font-weight: lighter;
}
h5 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 10;
  font-size: 2vh;
  color: rgb(0, 0, 0);
  /* font-family: Arial, Helvetica, sans-serif; */
  font-weight: lighter;
}
h6 {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  font-size: 2vh;
  color: rgb(0, 0, 0);
  /* font-family: Arial, Helvetica, sans-serif; */
  font-weight: lighter;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

h6:hover {
  opacity: 0.6;
}

/* Info Panel */
.info-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  z-index: 9998;
  display: none;
  justify-content: left;


  pointer-events: none;
}

.info-panel.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.panel-content {
  color: #000;
  padding: 20px;
  max-width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 0px;
  position: relative;
  /* font-family: Arial, Helvetica, sans-serif; */
}

.panel-title {
  font-size: 2vh;
  margin-bottom: 10px;
  font-weight: lighter;
  color: #000;
  position: static;
  text-align: left;
}

.panel-section {
  margin-bottom: 14px;
  text-align: left;
}

.section-heading {
  font-size: 2vh;
  font-weight: lighter;
  color: #000000;
  margin-bottom: 10px;
  margin-top: 50px;
  text-transform: uppercase;
  position: static;
}

.panel-description {
  font-size: 3vh;
  line-height: 1.1;
  font-weight: lighter;
  text-align: left;
  /* column-count: 2;
  column-gap: 18px; */
  text-align: left;
  text-justify: inter-word;
  hyphens: auto;
  
  

}

.panel-technical,
.panel-link {
  font-size: 3vh;
  line-height: 1.1;
  font-weight: lighter;
  text-align: left;
}

.panel-technical {
  margin-bottom: 10px;
}

.panel-section:has(.panel-link) {
  position: fixed;
  bottom: 20px;
  left: 20px;
  margin-bottom: 0;
}

.panel-section:has(.panel-link) .section-heading {
  margin-bottom: 5px;
}

/* .panel-description p {
  padding-bottom: 0.15em; /* Compense l'espace des descendantes */
  /* margin-bottom: calc(20px - 0.15em); /* Ajuste le margin pour partir de la baseline */
/* } */

.panel-link a {
  color: #000;
  text-decoration: underline;
}

.close-panel {
  position: absolute;
  top: 20px;
  right: 20px;

  background: none;
  border: none;
  font-size: 2vh;
  line-height: 0.8;
  padding: 0;
  cursor: pointer;
  color: #000000;
  z-index: 1;

}

.close-panel:hover {
  opacity: 0.6;
}


.Hi {
  height: 100vh;
  padding: 40px;

  display: flex;
  background: #ffefd2; 
  justify-content: center;
  scroll-snap-align: start;
}

/* Vertical sections */
.project {
  height: 100vh;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  scroll-snap-align: start;
}



/* Horizontal slider */
.slider {
  display: flex;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 92%;
}

.slide {

  height: 100%;
  background: #ffffff;

  flex-shrink: 0;
}

.slide img, .slide video {
  z-index: 2;
  height: 100%;
}

/* Video performance optimizations */
.slide video {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Colors per project */
.project { background: #ffffff; }


/* Hide scrollbar (optional) */
.slider::-webkit-scrollbar {
  display: none;
}


video[aria-label="Melting Pot 7"], video[aria-label="Melting Pot 9"]{
  padding: 80px;
}

video[aria-label="Melting Pot 5"]{
  padding: 80px;
  padding-left: 0px;
}

iframe[aria-label="Melting Pot YT"]{
  position: relative;
  top: 50%;
  left: 0%;
  transform: translate(0%, -50%);
  height: calc(100vh - 280px);
  width: calc(70vw - 320px);
  margin-right: 0px;
  margin-left: 80px;
  border: 5px solid red;
}

video[aria-label="Melting Pot 2"]{
  padding-top: 160px;
  padding-bottom: 160px;
  padding-left: 80px;
  padding-right: 80px;
} 

img[alt="Melting Pot 4"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 80px;
  padding-right: 80px;
}

video[aria-label="Melting Pot 10"] {
  padding-top: 160px;
  padding-bottom: 160px;
  padding-left: 0px;
  padding-right: 80px;
} 

video[aria-label="Melting Pot 11"] {
  padding-top: 160px;
  padding-bottom: 160px;
  padding-left: 0px;
  padding-right: 80px;
} 

img[alt="Les Chemins Perdus 1"],[alt="Les Chemins Perdus 2"],[alt="Les Chemins Perdus 3"],[alt="Les Chemins Perdus 4"],
  [alt="Les Chemins Perdus 5"],[alt="Les Chemins Perdus 6"],[alt="Les Chemins Perdus 7"],[alt="Les Chemins Perdus 8"],
  [alt="Les Chemins Perdus 9"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 00px;
  padding-right: 80px;
}

img[alt="Les Chemins Perdus 10"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 00px;
  padding-right: 0px;
}

img[alt="RK 01"]{
  padding-top: 300px;
  padding-bottom: 300px;
  padding-left: 00px;
  padding-right: 80px;
}
img[alt="RK 02"],img[alt="RK 11"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 00px;
  padding-right: 80px;
}
video[aria-label="RK 03"],video[aria-label="RK 05"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 00px;
  padding-right: 80px;
}
video[aria-label="RK 04"]{
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 80px;
}
img[alt="RK 07"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 75px;
  padding-right: 80px;
}
video[aria-label="RK 09"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 80px;
  padding-right: 80px;
}
video[aria-label="RK 12"]{
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
}
img[alt="RK 10"]{
  padding-top: 160px;
  padding-bottom: 160px;
  padding-left: 0px;
  padding-right: 80px;
}
video[aria-label="RK 13"]{
  padding-top: 160px;
  padding-bottom: 160px;
  padding-left: 80px;
  padding-right: 80px;
}


img[alt="Folklore Fusion 5"], img[alt="Folklore Fusion 6"], img[alt="Folklore Fusion 11"],
  img[alt="Folklore Fusion 12"], img[alt="Folklore Fusion 13"],
  img[alt="Folklore Fusion 14"], img[alt="Folklore Fusion 15"],
  img[alt="Folklore Fusion 16"]{
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 80px;
  padding-right: 80px;
}

img[alt="Folklore Fusion 2"], img[alt="Folklore Fusion 1"]{
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 80px;
}