@charset "UTF-8";

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

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}


body {
  background-color: white;
  overflow-x: hidden;
  font-family: 'Times New Roman', Times, serif;
  color: black;
  cursor:crosshair;
}
.body::-webkit-scrollbar::-webkit-scrollbar {
  display: none;
}



.header {
  height: 60px;
  width: 100vw;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  z-index: 1200;
}

.bio {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  background-color: rgba(255, 255, 255, 0);
  color: black;
  height: 1.4rem;
  font-size: 1rem;
  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 3px;
  transition: all ease-in-out 0.2s;
}

.number .track-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

h1 {
  font-style: italic;
  background-color: black;
  color: white;
  display: flex;
  height: 1.4rem;

  font-size: 1rem;
  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 5px;
  margin-left:2vh;
}


.bio-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 33.33vw;
  height: 100vh;
  background-color: rgb(255, 255, 255);
  border-right: solid 1px black;
  z-index: 1000;
  transform: translateX(-100%);  /* ← caché à gauche par défaut */
  transition: transform 0.6s ease-in-out;
  overflow-y: auto;        /* ← scroll interne */
  padding: 0rem 2rem 2rem;
}

.bio-panel.open {
  transform: translateX(0); 
}

.scroll-container,
.header {
  transition: transform 0.6s ease-in-out;
}

body.bio-open .scroll-container,
body.bio-open .header {
  transform: translateX(33.33vw);
}

.bio-close {

  display:flex;
  justify-content: flex-end;
  margin-left: auto;

  position: sticky;
  top: 0;

  font-size: 1rem;

  cursor: pointer;
  background: white;

  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 3px;

}

.bio-close:hover {
  background-color: black;
  color: white;

  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 3px;}

.bio-title{
  position:sticky;
  align-content: center;
  height: 100px;

  top:0;
  left:0;
  padding-top: 10px;
  padding-bottom: 60px;

  background-color: white;

  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
}

h2 {
  display:flex;
  width: fit-content;

  font-size: 1rem;

  background-color:black;
  color: white;

  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 3px;
}

.bio-content p {
  font-size: 1rem;
  text-align: justify;
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* masque la scrollbar */
.bio-panel::-webkit-scrollbar {
  display: none;
}

.bio:hover{
  background-color: black;
  color:white;
  height: 1.4rem;

  font-size: 1rem;
  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 3px;

  transition: all ease-in-out 0.2s;
}

.info{ 

  margin-right: 2vw;

  display: flex;
  justify-content: flex-end;

  background-color: rgba(255, 255, 255, 0);
  color:black;
  height: 1.4rem;

  font-size: 1rem;
  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 3px;

  text-decoration: none;
}

.info:hover{
  background-color: black;
  color:white;
  height: 1.4rem;

  font-size: 1rem;

  transition: all ease-in-out 0.2s;
}

.scroll-container {
  width: 100vw;
  scroll-snap-type: y proximity;

}

.sect_partition {
  scroll-snap-align: center; 
  width: 100vw;
  height: 100vh;
  position: relative;
}

.number {
  position: sticky;
  left: 2vw;
  width: 96vw;
  height: 1.4rem;

  font-size: 1rem;

  padding-bottom: 3px;
  padding-top: 2px;
  padding-left: 3px;
  padding-right: 3px;

  z-index: 10;

  background-color: rgba(255, 255, 255, 0);   /* ← fond par défaut */
  color:black;
  display: flex;
  flex-direction: row;
  justify-content: space-between;  /* ← réparti sur la largeur */
  align-items: center;

  transition: all ease-in-out 0.2s;
}

.number.active {
  background-color: black;
  color: white;

}

.number.active:hover{
  background-color: white ;
  color:black ;
}

.n1 { top: 96vh; }
.n2 { top: 96vh; }
.n3 { top: 96vh; }


.partition {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

iframe {
  height: 100vh;
  width: 100vw;
  border: none;
}

.nav-panel {
  position: fixed;
  left: 2vw;
  bottom: calc(4vh - 1.4rem);  /* ← aligné avec le .number sticky */
  width: 96vw;
  z-index: 1100;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-panel.open {
  display: flex;
}

.nav-item {
  width: 100%;
  height: 1.4rem;
  font-size: 1rem;
  padding: 2px 3px 3px;
  background-color: black;   /* ← toujours en style actif */
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all ease-in-out 0.2s;
}

.nav-item span:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item:hover {
  background-color: white;
  color: black;
}

.pagination {
  position: fixed;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid black;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-dot.active {
  background: black;
}

@media (max-width: 768px) {

  /* Bio panel full screen sur mobile */
  .bio-panel {
    width: 100vw;
  }

  body.bio-open .scroll-container,
  body.bio-open .header {
    transform: translateX(100vw);
  }

  /* Header — empêche le chevauchement des 3 éléments */
  .header {
    justify-content: space-between;
    padding: 0 2vw;
  }

  .bio {
    position: relative;
    left: auto;
    transform: none;
  }

  /* Nav panel full largeur */
  .nav-panel {
    left: 0;
    width: 100vw;
    padding: 0 2vw;
  }
}