:root{
  --couleur1: #DB3636;
  --couleur2: #6080D8;
  --couleur3: #47D933;
  --couleurtexte: #ffffff;
}
html {
    scroll-behavior: smooth;
    width:100%;
  }
  
  body {
    margin: 0;
    padding: 0;
    background-color: #000;
    background-size: cover;
    font-family:Arial, Helvetica, sans-serif ;
    width:100%;
    overflow-x: hidden;
  
  }
  
  #cursor {
    position: absolute;
    transform:translate(-50%,-50%);
    width: 7vh; 
    height: 7vh;
    border-radius:50%;
    border:20px solid rgb(0, 0, 0);
    pointer-events: none; /* Ensure it doesn't interfere with other interactions */
    background-color: rgb(0, 0, 0); /* Semi-transparent white */
    filter: invert(1); /* Desaturation and inversion */
    mix-blend-mode: difference;
    z-index: 1001; /* Bring it to the top */
  }

  /*Intro*/
  
  .intro1{
    display: flex;
    background-image: url('img/back1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgb(234, 248, 248);
  }
  
  h1 {
    font-family: "Antonio", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 10vh;
  }
  
.content p {
    font-family: "Antic", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3vh;
  }
  
  #headphones {
    margin-left:50%;
    margin-right:50%;
    font-size: 80px; /* Resize the icon */
    color: var(--couleurtexte); /* Ensure visibility */
    margin-top: 20px; /* Add space if needed */
  }
  
  .content{
    width:100%
  }
  .flecheContainer{
    width: 100%;
    height: 100px;
    text-align: center;
  }
  
  .fleche, .card, .badge{
    position:relative;
    animation: monter-descendre 2s infinite;
  }
 
  @keyframes monter-descendre {
    0% {
        top: 60%;

    }
    50% {
        top: 40%; 

    }
    100% {
        top: 60%;

    }
}
 .badge, .badge2, .badge3{
    position:absolute;
    animation: shake 2s infinite;
  }
  @keyframes shake {
    0% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

  /*Intro2*/
  
  .intro2{
      background-image: url('img/back2.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      width: 100%;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: var(--couleurtexte);
      position: relative;
  }



  /*Texte*/
  

  
  .introTitle{
    display: flex;
    align-items: flex-start;
  }
  
  .intro2 h1 {
    font-family: "Antonio", sans-serif;
    font-size: 5vw;
    margin-bottom: 20px;
  }
  
  /* Position the paragraphs */
  .introText {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    position: relative;
    font-family: "Antic", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3vh;
 
  }
#introText1,#introText2{
  flex: 1;

  line-height: 1.8;
}
  #introText1 {
    text-align: left;

  }
  
 #introText2 {
    text-align: right;

  }
  .discover-link{
    text-decoration: none;
  }
  .discoverButton {
    
    display: flex;
    width: 30vw;
    margin-top: 30px;
    padding: 10px 0px 10px 0px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.2s;
    height: 7.5vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  .discoverButton:hover {
    background-color: rgb(255, 255, 255);
    color:#000;
    border: 2px solid #000;
  }

  
  /* Ensure content is pushed slightly aside when the menu is open */
  body.menu-open {
  margin-left: 250px;
  transition: margin-left 0.3s;
  }
  
  
  /* Bottom menu */
  .bottom-menu {
    position: fixed;
    bottom: -100%; /* Hidden initially */
    left: 0;
    width: 100%;
    height: 30%;
    background-color: #6e6e6e;
    color: white;
    transition: bottom 0.3s;
    z-index: 999;
    display: flex;
    gap:10px;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .bottom-menu .content {
    font-size: 18px;
  }
  
  /* Bottom toggle button */
  .bottom-toggle {
    position: fixed;
    bottom: 1px;
    left: 90%; /* Center horizontally */
    transform: translateX(-50%);
    background-color: #111;
    color: white;
    border: none;
    border-radius: 50% 50% 0% 0%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    font-size: 20px;
    border-style: solid;
    border-width: 5px;
    border-color: azure;
    transition: bottom 0.3s; /* Smooth transition */
  }
  .bottom-toggle:hover {
    background-color: #575757;
  }
  

/* Pages -----------------------------------------------------------*/

.page{
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      width: 100vw;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      position: relative;
      color:var(--couleurtexte);
}
#sacem-div{
  background-image: url('img/back3.png');
}
#info-sacem{
  width:60%;
}
#vinni-div{
  background-image: url('img/back4.png');
}
#sacha-div{
  background-image: url('img/back5.png');
}

h2{
  font-family: "Antonio", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 5vh;
}
.page .definition{
  font-style:italic;
  font-size: 2.5vh;
}
.page p{
  font-family: "Antic", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3vh;
    width:70%;
    text-align:justify;
}

.page .id-card{
  border-radius: 10%;
}

#sacem-div .id-card{
  background-color: var(--couleur1);
}
#vinni-div .id-card{
  background-color: var(--couleur2);
}
#sacha-div .id-card{
  background-color: var(--couleur3);
}
.titre-section, .sous-section{
  width:100%;
  display:flex;
  align-items: center;
  
}
.titre-section{
  gap:2%;
  margin-right: 10%;
  justify-content: flex-end;
}
#section1{
  margin-left:5%;
}
#section2{
  margin-right: 5%;
  justify-content: flex-end;
}
#arrow1{
  transform:rotate(45deg);
  margin-bottom:2%;
  margin-right:-3%;
}
#arrow2{
  transform:rotate(-135deg);
  margin-top:2%;
  margin-left:-3%;
}
.introTitle{
  width:100%;
}
.introText{
  width:100%;
}
.introText p{
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding:2%;
  border-radius:20%;
}
.introText #section1{
  margin-left:20%;
}
.introText #section2{
  margin-left:40%;
}
.introTitle #arrow1{
  margin-top:-20%;
}
.introTitle #arrow2{
  margin-bottom:-20%;
}
/*animation étoile-----------------------------------------------*/

.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 0;

}

.star {
    position: absolute;
    background-color: #FFF;
    border-radius: 50%;
}

/*Scroll Bar-------------------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

/* Style de la piste de la barre de défilement */
::-webkit-scrollbar-track {
  background-color: #333; /* Fond noir */
}

/* Style de la poignée de la barre de défilement */
::-webkit-scrollbar-thumb {
  background-color: #000; /* Poignée noire */
  border-radius: 5px; /* Arrondir les bords de la poignée */
}

/* Style de la poignée de la barre de défilement lors du survol */
::-webkit-scrollbar-thumb:hover {
  background-color: #444; /* Poignée plus claire lors du survol */
}


/*Animation texte-----------------------------------------------*/

.son{
  
  position:relative;
}


#controls {
  position: fixed;
  bottom: 20px;
  left: 10px;
  background-color: #ffffff; /* Fond blanc */
  color: #000; /* Texte noir */
  padding: 20px;
  border-radius: 10px; /* Bords arrondis */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre douce */
  text-align: center;
  z-index: 1000;
}

/* Titre de la section */
#controls h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Bouton mute */
#mute-toggle {
  background-color: #3b3b3b; /* Rouge vif */
  color: #fff; /* Texte blanc */
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
}

#mute-toggle:hover {
  background-color: #000000; 
}
#son{
    position: fixed;
            bottom: 20px;
            right: 35px;
}
#volumeControl {
    position: fixed;
    bottom: 50px;
    right: 40px;
    /* Orientation verticale */
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 5px; /* Largeur de la piste */
    height: 100px; /* Hauteur de la piste */
    background: #fff; /* Couleur blanche de la piste */
    border-radius: 5px; /* Coins arrondis */
    outline: none; /* Retire le contour bleu par défaut */
    border: none;
}

/* Apparence de la piste pour Webkit (Chrome, Safari) */
#volumeControl::-webkit-slider-runnable-track {
    background: #fff; /* Couleur blanche de la piste */
    border-radius: 5px;
}

/* Apparence du curseur (Chrome, Safari) */
#volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none; /* Nécessaire pour personnalisation */
    appearance: none;
    width: 15px; /* Taille du curseur */
    height: 15px;
    background: #000; /* Couleur noire du curseur */
    border-radius: 50%; /* Forme circulaire */
    cursor: pointer; /* Curseur interactif */
    border: none; /* Pas de contour */
}

/* Apparence de la piste pour Firefox */
#volumeControl::-moz-range-track {
    background: #fff; /* Couleur blanche de la piste */
    border-radius: 5px;
}

/* Apparence du curseur (Firefox) */
#volumeControl::-moz-range-thumb {
    width: 15px; /* Taille du curseur */
    height: 15px;
    background: #000; /* Couleur noire du curseur */
    border-radius: 50%; /* Forme circulaire */
    cursor: pointer;
    border: none; /* Pas de contour */
}

/* MENU */
.side-menu {
  font-size:5vh;
  font-family:"Antic", "sans-serif";
  position: fixed;
  top: 0;
  left: -250px; /* Caché en dehors de l'écran */
  width: 250px;
  height: 100%;
  background: #333;
  color: #fff;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  transition: left 0.3s ease; /* Animation d'ouverture/fermeture */
  z-index: 1000;
}

.side-menu ul {
  list-style: none;
  padding: 20px;
}

.side-menu ul li {
  margin: 20px 0;
  font-size:2vh;
  width:100%;
  
}
.side-menu ul li :hover{
  margin: 20px 0;
  font-weight: bold;
  
}

.side-menu ul li a {
  text-decoration: none;
  color: #fff;
 
}




/* Bouton de fermeture */
#close-menu {
  background: #333;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 50%;
}

/* Bouton d'ouverture */
.open-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #333;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 1100;
}

/* Animation d'ouverture */
.side-menu.open {
  left: 0; /* Le menu devient visible */
}


/*POP UP*/ 
.image-container {
  margin-top:5%;
  display: inline-block;
}

/* Image par défaut */
.popup-image {
  width: 200px; /* Taille normale */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.popup-image:hover {
  transform: scale(1.2); /* Légère mise en avant au survol */
}


/* Modale (popup) */
.popup-overlay {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Fond noir semi-transparent */
  z-index: 1000; /* Superposé à tout */
  justify-content: center;
  align-items: center;
}

/* Image agrandie */
.popup-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Ombre pour un effet pop-up */
  border-radius: 10px;
}
/*----------------------------------------------------*/
.popup-image2 {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.popup-image2:hover {
  transform: scale(3.5); /* Légère mise en avant au survol */
}

/* Modale (popup) */
.popup-overlay2 {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Fond noir semi-transparent */
  z-index: 1000; /* Superposé à tout */
  justify-content: center;
  align-items: center;
}

/* Image agrandie */
.popup-overlay2 img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Ombre pour un effet pop-up */
  border-radius: 10px;
}

iframe{
  margin-bottom:10%;
}

.highlight, .definition {
  transition: background-color 0.3s, color 0.3s;
}

.highlight.hovered, .definition.hovered {
  background-color: #DB3636;
  color: white;
}


/*BADGE------------------------*/
.badge, .badge2, .badge3 {
  cursor: pointer;
  transition: transform 0.5s ease, top 0.5s ease, opacity 0.5s ease;
  top: calc(100% - 150px);
  margin-bottom:5%;
}
#text-badge, #text-badge2, #text-badge3{
  font-style: italic;
  animation: none;
  text-align:center;
  margin-top:5%;
}
.collected, .collected2, .collected3 {
  left:2%;
  position:fixed;
  transform: scale(0.7); /* Réduction de taille */
  opacity: 0.7;
  z-index: 1000;
  animation: none;
}
.collected{
  top: calc(100% - 100px); /* Position en bas */
}
.collected2{
  top: calc(100% - 150px); /* Position en bas */
}
.collected3{
  top: calc(100% - 200px); /* Position en bas */
}
.bottom-area {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 60px;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 16px;
}


/*.blop {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.blop2 {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}*/

.visible {
  opacity: 1;
}