.arrière {
  margin-top: -60px;
  height: 100%;
  position: absolute;
}

/* body {
  cursor: url('../../asset/normal-cursor.cur'), auto;
}
a, button, div, iframe, textarea, input {
  cursor: url('../../asset/normal-cursor.cur'), pointer !important;
} */
 
#MenuDée {
  position: absolute;
  z-index: 40px;
  width: 230px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-end;
  left: 59%;
  top: 7%;
}

#stop-sounds-btn {
    position: sticky !important;
}


.bookmark {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 146px;
  height: 81px;
  margin-left: -20px;
  background: url('../../asset/bookmark.webp') no-repeat center;
  background-size: cover;
  border: none;
  cursor: pointer;
  z-index: 1000;
  animation: slideBookmark 3s infinite ease-in-out;
  transition: width 0.3s, margin-left 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark span {
  color: #f5f5dc;
  font-size: 16px;
  text-align: center;
  text-shadow: 1px 1px 2px #000;
  font-family: 'MedievalSharp', cursive;
  position: absolute;
  width: 100px;
  right: 28px;
  bottom: 26px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: url('../../asset/seal.webp') no-repeat center;
  background-size: cover;
  border: none;
  cursor: pointer;
  color: transparent; /* Cache le texte "X" */
}

.bookmark.pulled {
  width: 135px;
  height: 74.89px;
  margin-left: -20px;
  animation: none;
}
  
.bookmark.pulled span {
  font-size: 15px;
}

@keyframes slideBookmark {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

.book {
  position: fixed;
  top: 10%;
  left: -100%;
  width: 468px;
  max-width: 600px;
  height: 600px;
  background: url('../../asset/book.webp') no-repeat center;
  background-size: cover;
  border: none;
  z-index: 10999;
  overflow: hidden;
  display: none; /* Ajouté pour s'assurer que le livre est caché au départ */
}

.book-content {
  padding: 40px 60px;
  height: 459px;
  margin-top: 29px;
  overflow-y: auto;
  background: transparent;
  color: #2c1e1e;
  font-family: 'MedievalSharp', cursive;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.book-content::-webkit-scrollbar {
  display: none;
}

.book-content h2 {
  text-align: center;
  font-size: 2em;
  color: #3c2f2f;
  text-shadow: 1px 1px 2px #d4a017;
  margin-bottom: 20px;
}

#favorites-filter {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #2c1e1e;
  background: rgba(245, 245, 220, 0.9);
  cursor: pointer;
  margin-right: 8px;
}

#favorites-filter:checked {
  background: rgba(245, 245, 220, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232c1e1e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

#search-term {
  width: 93%;
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #3c2f2f;
  border-radius: 5px;
  background: rgba(245, 245, 220, 0.9); /* Parchemin clair */
  font-family: 'MedievalSharp', cursive;
  font-size: 1em;
}

.reset-btn {
  padding: 10px 15px;
  background: #3c2f2f;
  color: #f5f5dc;
  border: none;
  border-radius: 5px;
  font-family: 'MedievalSharp', cursive;
  font-size: 1em;
  cursor: pointer;
}

.reset-btn:hover {
  background: #d4a017;
  color: #2c1e1e;
}

@media (max-width: 600px) {
  .reset-btn {
      width: 100%;
      padding: 8px;
      font-size: 0.9em;
  }
}

.entry {
  margin-bottom: 20px;
  padding: 10px;
  border-bottom: 1px solid #d4a017;
}

.entry h3 {
  margin: 0;
  font-size: 1.4em;
  color: #3c2f2f;
}

.entry p {
  margin: 5px 0 0;
  font-size: 1em;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .book {
      top: 40%;
      height: 383px;
      width: 300px;
  }
  .book-content {
      padding: 20px 30px;
      height: 307px;
      margin-top: 14px;
  }
  #search-term {
      width: 215px;
  }

  .close-btn {
      width: 30px;
      height: 30px;
      top: 15px;
      right: 15px;
  }

  .book-content h2 {
    font-size: 14px;
  }

  #MenuDée {
    left: 21%;
    top: 5%;
  }
}


.blason {
  position: absolute;
  transform: scale(0.5);
  margin-left: -185px;
  margin-top: -420px;
  z-index: 1;
 }

 .blasonst {
  position: absolute;
    transform: scale(0.3);
    margin-left: -273px;
    margin-top: -406px;
    z-index: 1;
 }

 .titrest {
  position: absolute;
    margin-left: -417px;
    margin-top: -79px;
    z-index: 2;
    transform: scale(0.3);
}

.titre {
  position: absolute;
  margin-left: -360px;
  margin-top: 0;
  z-index: 2;
  transform: scale(0.40);
}
 
.rempli {
  position: fixed;
  background-position: center;
  top: -10px;
  left: -10px;
  height: 105%; 
  filter: blur(2px); 
}

.remplistarwars {
  position: fixed;
  top: -10px;
  left: -10px;
  width: 105%;
  height: 105%;
  object-fit: cover;       
  object-position: center; 
  filter: blur(2px);
}

.z-10000{
  z-index: 100;
}

.disparut {
  transition: opacity 0.5s ease-in-out, display 0s 0.5s;
  opacity: 0;
  display: none;
}

.monBouton {
  position: absolute;
  z-index: 2000;
  top: 43.5%;
  left: 44.3%;
  height: 200px;
  width: 200px;
  border: 2px solid rgb(82, 62, 35);
  cursor: pointer;
  color: rgb(0, 0, 0);
  font-weight: 600;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out, display 0s 0.5s;
 
}

.sound-button {
  position: relative; /* Nécessaire pour que le .fav-btn soit positionné par rapport à ce bouton */
}

.fav-btn {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #3c2f2f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f5f5dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15 8 21 9 16 14 17 20 12 17 7 20 8 14 3 9 9 8'/%3E%3C/svg%3E") no-repeat center;
  background-size: 14px;
  border-radius: 0 0 20% 20%;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
  z-index: 100;
  top: 12px;
  left: 16px;
}

.fav-btn.favorited {
  background: #d4a017 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23d4a017' stroke='%232c1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15 8 21 9 16 14 17 20 12 17 7 20 8 14 3 9 9 8'/%3E%3C/svg%3E") no-repeat center;
  background-size: 14px;
}

.fav-marker {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23d4a017' stroke='%232c1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15 8 21 9 16 14 17 20 12 17 7 20 8 14 3 9 9 8'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  display: none;
}

.fav-marker.active {
  display: block;
}

@media (max-width: 600px) {
  .fav-btn {
      width: 18px;
      height: 18px;
      background-size: 12px;
  }
  .fav-marker {
      width: 15px;
      height: 15px;
  }
}

.boutonnave {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
}

.nav-btn {
  z-index: 1;
  width: 90px; 
  height: 40px;
  border: 2px solid rgb(82, 62, 35);
  cursor: pointer;
  color: rgb(0, 0, 0);
  font-weight: 600;
  font-size: 20px;
  font-family: "UnifrakturCook";
  text-shadow: 
  -1px -1px 0 rgba(255, 255, 255),
  1px -1px 0 rgba(255, 255, 255),
  -1px 1px 0 rgba(255, 255, 255),
  1px 1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255);
}

.blink {
  z-index: 1;
  width: fit-content;
  width: 75px; 
  height: 50px;
  border-radius: 4px;
  border: 2px solid rgb(82, 62, 35);
  cursor: pointer;
  color: rgb(0, 0, 0);
  font-weight: 600;
  background-size: cover;
  background-repeat: no-repeat;
}

.align-top {
  font-size: 20px;
    font-family: "UnifrakturCook";
    text-shadow: 
    -1px -1px 0 rgba(255, 255, 255),
    1px -1px 0 rgba(255, 255, 255),
    -1px 1px 0 rgba(255, 255, 255),
    1px 1px 0 rgba(255, 255, 255),
    0 -1px 0 rgba(255, 255, 255),
    0 -1px 0 rgba(255, 255, 255),
    0 1px 0 rgba(255, 255, 255),
    0 1px 0 rgba(255, 255, 255),
    -1px 0 0 rgba(255, 255, 255),
    1px 0 0 rgba(255, 255, 255),
    -1px 0 0 rgba(255, 255, 255),
    1px 0 0 rgba(255, 255, 255);
}

.titre3 {
  line-height: 45px; 
  text-align: center;
  margin: auto;
  color: black;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  font-family: "UnifrakturCook";
  text-shadow: 
  -1px -1px 0 rgba(255, 255, 255),
  1px -1px 0 rgba(255, 255, 255),
  -1px 1px 0 rgba(255, 255, 255),
  1px 1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255);
}

h1 {
  z-index: 1000;
  font-size: 40px;
  font-family: "UnifrakturCook";
  text-shadow: 
  -1px -1px 0 rgba(255, 255, 255),
  1px -1px 0 rgba(255, 255, 255),
  -1px 1px 0 rgba(255, 255, 255),
  1px 1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255);
}

.titre2 {
  position: fixed;
  font-size: 50px;
  text-align: center, top;
  font-family: "UnifrakturCook";
  text-shadow: 
  -1px -1px 0 rgba(255, 255, 255),
  1px -1px 0 rgba(255, 255, 255),
  -1px 1px 0 rgba(255, 255, 255),
  1px 1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255);
  margin-top: 0; 
  top: 20px; 
} 



.agrandi {
  opacity: 1;
  transition: opacity 0.5s ease-in-out, width 0.5s ease-in-out, height 0.5s ease-in-out;
}

.bloc-central{
  position: absolute;
  top: 0;
  width: calc(100vw - 700px); 
  left: 340px; 
  right: 340px; 
  display: flex;
  flex-direction: column;
}

.header-central-bloc {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  position: sticky;
    top: 0;
    z-index: 100000;
}

.bargauche {
  width: 350px;
  height: 100vh;
  top: 0; 
  left: 0;  
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.logo {
  display: flex;
  flex-direction: row;
}


.bardroite {
  z-index: 100;
  width: 350px;
  height: 100%;
  position: fixed; 
  top: 0; 
  right: 0;  
  background-color: rgba(0, 0, 0, 0.493);
  border: 2px solid rgb(82, 62, 35);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.bardroite.closed {
  transform: translateX(100%);
}
#btn-ambiance{
  width: 150px; 
  height: 35px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
  
  font-size: 20px;
  font-family: "UnifrakturCook";
  text-shadow: 
  -1px -1px 0 rgba(255, 255, 255),
  1px -1px 0 rgba(255, 255, 255),
  -1px 1px 0 rgba(255, 255, 255),
  1px 1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255);
}

.scrollable-section {
  display: flex;
  flex-direction: column;
  max-height: 70%;
  overflow-y: auto;
  padding-right: 5px;
}


.scrollable-section::-webkit-scrollbar {
  width: 8px; /* Largeur de la scrollbar */
}

.scrollable-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1); /* Fond de la piste */
  border-radius: 10px;
}

.scrollable-section::-webkit-scrollbar-thumb {
  background: #d4a017; /* Couleur de la poignée */
  border-radius: 10px;
}

.scrollable-section::-webkit-scrollbar-thumb:hover {
  background: #d4a017; /* Couleur au survol */
}




.scrollabel-section::-webkit-scrollbar {
  width: 8px; /* Largeur de la scrollbar */
}

.scrollabel-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1); /* Fond de la piste */
  border-radius: 10px;
}

.scrollabel-section::-webkit-scrollbar-thumb {
  background: #d4a017; /* Couleur de la poignée */
  border-radius: 10px;
}

.scrollabel-section::-webkit-scrollbar-thumb:hover {
  background: #d4a017; /* Couleur au survol */
}





.lecteurvideo {
  width: 275px;
  height: 50px;
  z-index: 1;
  position: relative;
  border: 2px solid rgb(82, 62, 35);
  border-radius: 30px;
  transition: opacity 0.5s ease-in-out, width 0.5s ease-in-out, height 0.5s ease-in-out;
}


.typo20px {
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
  font-family: "UnifrakturCook";
  text-shadow: 
  -1px -1px 0 rgba(255, 255, 255),
  1px -1px 0 rgba(255, 255, 255),
  -1px 1px 0 rgba(255, 255, 255),
  1px 1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 -1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  0 1px 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255),
  -1px 0 0 rgba(255, 255, 255),
  1px 0 0 rgba(255, 255, 255);
}

.animbutton {
z-index: 2;
position: relative;
margin: 10px;
overflow: hidden;
cursor: pointer;
width: 100px;
height: 100px;
color: rgb(5, 19, 31);
background: linear-gradient(to right, #ce1a1a7c 0%, #ce1a1a7c 50%, #ffffff00 50%, #ffffff00 100%);
background-size: 220% 100%;
background-position: right bottom;
border: 2px solid rgb(82, 62, 35); 
display: flex;
align-items: flex-end;
justify-content: center;
padding: 5px;
}

.buttoncontainer.clicked {
animation: clickAnimation 0.5s;
}
.animbutton.clicked {
  animation: clickAnimationB 0.5s;
}

@keyframes clickAnimationB {
0% {
  background-position: right bottom;
}
100% {
  background-position: left bottom;
}
}

@keyframes clickAnimation {
0% {
  transform: scale(1);
}
10% {
  transform: scale(1.1);
}
100% {
  transform: scale(1);
}
}

.bloc-central.expanded {
  right: 0 !important;
  width: calc(100vw - 360px) !important;
  transition: all 0.3s ease-in-out; 
}

.fav-btn:active {
  transform: scale(0.9);
  transition: transform 0.1s ease;
}


.buttoncontainer {  
  flex-wrap: wrap;
  position: relative;
  display: flex;
  cursor: pointer;
  background: linear-gradient(to right, #ce1a1a7c 0%, #ce1a1a7c 50%, #ffffff00 50%, #ffffff00 100%);
  background-size: 220% 100%;
  background-position: right bottom;
  cursor: pointer;
}

.imagebutton {
  position: absolute;
  z-index: 1;
  margin: 10px;
  cursor: pointer;
  object-fit: cover; 
  width: 100px;
  height: 100px;
}

#blocsound {
  margin-bottom: 200px;
  padding: 0px 10px;
  z-index: 10;
  flex-wrap: wrap;
  position: relative;
  display: flex;
  justify-content: center;
}

#LancerDeDée {
  background-color: rgb(190, 108, 0);
  border: 1px solid rgba(65, 42, 0, 0.664);
  border-radius: 5px;
  z-index: 20;
  position: relative;
  padding: 10px;
  width: 200px;
  display: none;
}

#LancerDéeBoutton {
    margin-top: 8px;
}

#Nbdée, #TypeDeDée{
    align-items: center;
    display: flex;
}

#MoinsDeDée, #PlusDeDée, #Typechoisie {
    margin: 0 5px 0 5px;
}



#openmenuD {
  width: 100px;
  height: 50px;
  z-index: 12;
  width: fit-content;
}

#blocnote {
position: absolute;
top: 60%;
left: 2.5%;
width: 300px;
height: 300px;
}

.audessumonpote {
  position: absolute;
  top: 0; 
  right: 0; 
  z-index: 222; 
  cursor: pointer;
}

.textarea {
width: calc(100%);
padding: 8px;
box-sizing: border-box;
width: 315px;
max-width: 315px;
min-width: 315px;
height: 200px;
position: absolute;
display: none;
}
.textarea.choisie {
display: block;
}

.butbloc {
width: 10%;
height: 20px;
padding: 0;
margin-right: 5px;
filter: brightness(50%);
transition: filter 0.5s ease;
}
.butbloc.choisi {
filter: brightness(100%);
}

#listdebloc {
width: 100%;
display: flex;  
}

#bloc-note-btn {
  display: none;
  z-index: 10001;
}

/* MEDIAQUERIE */
@media (max-width: 1199px) {

  #bloc-note-btn {
    position: relative; 
    display: inline;
    z-index: 10001;
  }
  .titre, .blason ,.titrest, .blasonst {
    display: none;
  }
  .boutonnave{
    display: block;
  }
  #blocnote {
    display: none;
  }

  .lecteurvideo {
    height: 250px;
  }

  .bloc-central {
    margin-top: 25px;
    position: absolute;
    top: 0;
    width: calc(100vw - 340px); 
    left: 0px; 
    right: 340px; 
    display: flex;
    flex-direction: column;
  }

  .bloc-central.expanded {
    right: 0 !important;
    width: calc(100vw - 0px) !important;
    transition: all 0.3s ease-in-out; 
  }
  
}