/*typo*/
.parkinsans-<uniquifier> {
  font-family: "Parkinsans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/*body and shits*/

body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: black; /*rgb(20, 24, 56),rgb(18 27 79), rgb(24, 30, 82)rgb(49, 39, 131);*/
    overflow-x: hidden;
  }

/*fonds de page indépendantes*/
  /*body.lick-page {
    min-height: 100vh; /* garantit que le body couvre au moins la hauteur de l'écran */
    /*background-color: #9bbdc3 /*#a2c3c1; /* ou n’importe quelle couleur douce, texturée, etc.
  }*/
  
  h1{
    font-family: "Parkinsans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 2em;
    color: #ffffff;
    text-align: center;
  }

  h2{
    font-family: "Parkinsans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 2em;
    color: white;
    text-align:center;
  }

  h3{
    font-family: "Parkinsans", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.3em;
    color: white;
    margin: 0%;
    /*transform: translate(0, 10%);*/
    text-align: left;
  }


  h4{
    font-family: "Parkinsans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.3em;
    color: white;
    /*padding-bottom: 10%;
    /*transform: translate(0, 10%);*/
    text-align: left;
  }

  p{
    font-family: "Parkinsans", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.2em;
    color:white;
    margin-bottom: 10%;
    text-align: left;
  }

  .texte-popup {
    text-align: center;
    font-family: "Parkinsans", sans-serif;
    font-weight: 200;
    font-style: bold;
    font-size: 1em;
    color: white;
    max-width: 150%;
  }

  .texte-cta {
    font-family: "Parkinsans", sans-serif;
    font-style: bold;
    font-size: 0.8em;
    color: white;
    transform: rotate(8deg);
  }

  main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  /*1 box par ligne
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 1rem;
    gap: 1rem;
  }*/

  .container {
    display: grid;
    contemplate-columns: 1fr; /* 1 colonne par défaut (sur ordi) */
    gap: 2%;
    padding: 2%;
    margin: auto;
  }
  .container2 {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne par défaut (sur ordi) */
    gap: 2%;
    padding: 2%;
    margin: auto;
  }
  
  /*box réglages*/

  .parametres {
    display: flex;
    justify-content: flex-end; /* pousse l'image à droite*/ 
    position: absolute;
    z-index: 3;
    background-color: aquamarine;
    text-align: right;
  }

  .son {
    max-width: 50%;
    padding:2%;
  }
  
  .pointinterrogation {
    max-width: 10%;
    padding:2%;
  }

  .son {
    max-width: 8%;
    padding:2%;
  }

.box_group1 {
  background-color: red;
  padding: 2%;
}

  .box {
    position: relative; /* AJOUT SUPER IMPORTANT */
    flex: 1 1 calc(33% - 2rem);
    min-width: 150px;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    /*overflow-x: hidden; /* évite que l'image dépasse */
  }

  .box-image1 {
    position: absolute;
    top: 50%;
    left: 50%;
    /*min-width: 100%;
    min-height: 100%;*/
    transform: translate(-45%, -50%) scale(0.25);
    object-fit: cover;
    z-index: 2;
    min-height: 90%;
}

.box-image2 {
  position: absolute;
  top: 50%;
  left: 50%;
  /*min-width: 100%;
  min-height: 100%;*/
  transform: translate(-50%, -50%) scale(0.3);
  object-fit: cover;
  z-index: 2;
  min-height: 90%;
}


.box-image3 {
  position: absolute;
  top: 50%;
  left: 50%;
  /*min-width: 100%;
  min-height: 100%;*/
  transform: translate(-50%, -50%) scale(0.35);
  object-fit: cover;
  z-index: 2;
  min-height: 95%;
}

.box-image4 {
  position: absolute;
  top: 50%;
  left: 50%;
  /*min-width: 100%;
  min-height: 100%;*/
  transform: translate(-50%, -52%) scale(0.3);
  object-fit: cover;
  z-index: 2;
  min-height: 90%;
}

.box-image5 {
  position: absolute;
  top: 50%;
  left: 50%;
  /*min-width: 100%;
  min-height: 100%;*/
  transform: translate(-50%, -50%) scale(0.32);
  object-fit:cover;
  z-index: 3;
  min-height: 80%;
  padding-top: 20%;
}

.box-image6 {
  position: absolute;
  top: 50%;
  left: 50%;
  /*min-width: 100%;
  min-height: 100%;*/
  transform: translate(-50%, -50%) scale(0.32);
  object-fit:cover;
  z-index: 3;
  min-height: 80%;
}

.box-image7 {
  position: absolute;
  top: 50%;
  left: 50%;
  /*min-width: 100%;
  min-height: 100%;*/
  transform: translate(-50%, -50%) scale(0.32);
  object-fit:cover;
  z-index: 3;
  min-height: 75%;
  padding-bottom: 20%;
}


/*changement de format}
@media (min-width: 750px) {
  .box-image1 {
    transform: translate(-35%, -50%) scale(0.4);
  }
  .box-image3 {
    transform: translate(-45%, -48%) scale(0.5);
  }
}

@media (min-width: 750px) {
  .box-image2 {
    transform: translate(-65%, -45%) scale(0.5);
  }
  .box-image4 {
    transform: translate(-65%, -50%) scale(0.4);
  }
  .box-image5 {
    transform: translate(-50%, -50%) scale(0.4);
  }
  .box-image6 {
    transform: translate(-50%, -50%) scale(0.4);
  }
  .box-image7 {
    transform: translate(-50%, -50%) scale(0.4);
  }

/*changement de format
@media (min-width: 620px) {
  .box-image1 {
    transform: translate(-10%, -50%) scale(0.9);
  }
  .box-image3 {
    transform: translate(-20%, -40%) scale(0.9);
  }
/*
@media (min-width: 620px) {
  .box-image2 {
    transform: translate(-110%, -50%) scale(0.9);
  }
  .box-image4 {
    transform: translate(-110%, -60%) scale(0.9);
  }
}*/

.box-image-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 2;
}

.box-scat-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  object-fit: cover;
  z-index: 2;
}

.box-lick-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)scale(1.8);
  object-fit: cover;
  z-index: 2;
}

.box-bebop-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-65%, -20%)scale(1.8);
  object-fit: cover;
  z-index: 2;
}

.box-tempo-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  object-fit: cover;
  z-index: 2;
}

.box-jam-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)scale(0.7);
  object-fit: cover;
  z-index: 7;
}

.box-allin-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)scale(0.8);
  object-fit: cover;
  z-index: 7;
}

.box-encore-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)scale(1);
  object-fit: cover;
  z-index: 7;
}

  .box-title {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4; /* Devant */
    text-align: center;
    color: #fff2d0;
  }

  .logocontainer {
    height: 100vh; /* C’est ça qui manque ! */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .logocontainer img {
    max-width: 50%;
    height: auto;
  }


/*homelogo*/

  /* box intéraction p5js*/
  .box-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 calc(33% - 2rem); 
    min-width:150px;
  }

  .box-link .box {
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .box-link .box:hover {
    transform: scale(1.03);
  }

  #p5-container {
    background-color: #000;
    position: relative;
  }

  a:link { 
    text-decoration: none; 
  } 
  a:visited { 
    text-decoration: none; 
  } 
  a:hover { 
    text-decoration: none; 
  } 
  a:active { 
    text-decoration: none; 
  }
  


  /*CES BOX RAAAAAAHLALALALALALA*/
  .box {
    position: absolute;
    left: 0;
    min-height: calc(100vh / 5);
    min-width: 20vw;
    transition: top 0.8s ease-in-out, left 0.8s ease-in-out, transform 0.8s ease-in-out;
    /*opacity: 1;*/
    width: 100%;

}

.box-1 {
    top: 0;
    width: 50vw;
    height:25%;
    max-width: 50%;
    z-index: 6;
}

.box-2 {
    top: 0;
    width: 50vw;
    left: 50vw;
    height:22%;
    transform: scale(0.95);
}

.box-3 {
    top: calc(1*(100vh / 5));
    width: 50vw;
    left: 5%;
    height:25%;
    transform: scale(85%) translate(-0%,-10%) rotate(10deg);
}

.box-4 {
    top: calc(1*(100vh / 5));
    width: 50vw;
    left: 50vw;
    height:25%;
}

.box-5 {
    top: calc(2*(100vh / 5));
    z-index:6;
}

.box-6 {
    top: calc(3*(100vh / 5));
    z-index:5;
}

.box-7 {
    top: calc(4*(100vh / 5));
}

.box-title-scat{
  position: absolute;
    z-index: 2;
    text-align: center;
    max-width: 100%;
}

.box.initial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*opacity: 1;
    min-width: auto;
    width: 0;*/
}

.titre-lick-papier {
  transform: scale(0.8);
  margin-top:5%;
  margin-bottom: 10%;
}

.titre-scat-papier {
  transform: scale(0.8);
  margin-top:5%;
  margin-bottom: 10%;
}


.titre-encore-papier{
    transform: translate(0%, 40%) scale(0.8);
    margin-top: 5%;
    margin-bottom : 30%;
  }

.page-intro {
  padding-left: 5%;
  padding-right: 5%;
  color:white;
}

.page-scat-content {
  background-image: 
    url("images/SCAT_texture.png");
    
  background-size: 
    90% auto; /* grande forme de fond */
  
  background-position: 
    center 0%; /* image 1 */
   
  background-repeat: no-repeat, no-repeat;
  padding: 5vw 5vw;
  color: white;
  position: relative;
  z-index: 1;
}

.page-lick-content {
  background-image: 
    url("images/LICK_texture.png");
    
  background-size: 
    80% auto; /* grande forme de fond */
  
  background-position: 
    center 5%; /* image 1 */
   
  background-repeat: no-repeat, no-repeat;
  padding: 5vw 5vw;
  color: white;
  position: relative;
  z-index: 1;
}


.page-bebop-content {
  background-image: 
    url("images/BEBOP_texture.png");
    
  background-size: 
    80% auto; /* grande forme de fond */
  
  background-position: 
    center 10%; /* image 1 */
   
  background-repeat: no-repeat, no-repeat;
  padding: 5vw 5vw;
  color: white;
  position: relative;
  z-index: 1;
}

.page-tempo-content {
  background-image: 
    url("images/TEMPO_texture.png");
    
  background-size: 
    80% auto; /* grande forme de fond */
  
  background-position: 
    center 5%; /* image 1 */
   
  background-repeat: no-repeat, no-repeat;
  padding: 5vw 5vw;
  color: white;
  position: relative;
  z-index: 1;
}

.page-jam-content {
  background-image: 
    url("images/JAAM_textue.png");
    
  background-size: 
    80% auto; /* grande forme de fond */
  
  background-position: 
    center 5%; /* image 1 */
   
  background-repeat: no-repeat, no-repeat;
  padding: 5vw 5vw;
  color: white;
  position: relative;
  z-index: 1;
}

.page-allin-content {
  background-image: 
    url("images/allinn_texture.png");
    
  background-size: 
    80% auto; /* grande forme de fond */
  
  background-position: 
    center 5%; /* image 1 */
   
  background-repeat: no-repeat, no-repeat;
  padding: 5vw 5vw;
  color: white;
  position: relative;
  z-index: 1;
}

.page-encore-content {
  background-image: 
    url("images/encoree_texture.png");
    
  background-size: 
    80% auto; /* grande forme de fond */
  
  background-position: 
    center 4%; /* image 1 */
   
  background-repeat: no-repeat, no-repeat;
  padding: 5vw 5vw;
  color: white;
  position: relative;
  z-index: 1;
}

.page-intro::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(0, 0, 0, 0.3); /* Un léger voile si tu veux améliorer la lisibilité du texte */
  z-index: 0;
}

.introduction-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.retour{
  width: 10%;
  position: absolute;
  z-index: 999;
}

/*loading page and all*/
#loader {
  position: fixed;
  z-index: 9999;
  background: #000;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
}

.loader-content img {
  width: 120px;
  margin-bottom: 1rem;
}

.loader-content .slogan {
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.5s;
}

.loader-content{
transform:scale(200%)
}

body.loading {
  overflow-x: hidden;
  position: fixed;
  width: 100%;
}

body.loading,
body.popup-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


/*pop up*/
/* Style général du fond de popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* fond sombre semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
/*
@media (min-width: 750px) {
  .popup-content {
      background-image: url(images/popupformetexture.png);
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      transform: scale(0.8);
  }

/* Style du petit cadre central */
.popup-content {
  background-image: url(images/popupformetexture.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.textpopup {
  font-family: "Parkinsans", sans-serif;
  font-size: 1.2em;
  text-align: center;
  color:white;
  transform: translate(20%,85%) rotate(350deg) scale(1);
  max-width: 75%;
}

/*
@media (min-width: 750px) {
  @media (min-width: 750px) {
      .textpopup {
          font-family: "Parkinsans", sans-serif;
          font-size: 2.2em;
          text-align: center;
          color: white;
          max-width: 75%;
      }
  }
}*/

.textpopup1 {
  font-family: "Parkinsans", sans-serif;
  font-size: 1.2em;
  text-align: center;
  color:white;
  transform: translate(20%,70%) rotate(350deg) scale(1);
  max-width: 75%;
}

/* Bouton OK (let's jam) */
#popup-close {
  margin-top: 18em;
  padding: 1em;
  background-image: url(images/popup_ok_texture.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform:scale(2) translate(60%, -95%);
}

/*
@media (min-width: 750px) {
    @media (min-width: 750px) {
        #popup-close {
            margin-top: 18em;
            padding: 1em;
            background-image: url(images/popup_ok_texture.png);
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            transform: scale(3.2) translate(80%, -40%);
        }
    }
}*/

button{
  background: none;
  border:none;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* fond semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

video::-webkit-media-controls {
  display: none !important;
}

video {
  object-fit: cover;
  width: 100%;
  max-height: 60vh;
  display: block;
  background: none;
}

.video-band {
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: visible; /* IMPORTANT si elle disparaît */
  gap:0;
}

.video-wrapper {
  margin-bottom: 20%;/* Style individuel des vidéos */
}

.video-wrapper2 {
  margin-bottom: 10%;/* Style individuel des vidéos */
}

.video-band video {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  pointer-events: none; /* Empêche clics sur la vidéo */
  mix-blend-mode: screen;
}

.video-btn {
  /*margin-top: 1rem;
  padding: 0.7rem 1.5rem;*/
  font-size: 1rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.video-btn:hover {
  background-color: #333;
}

.control-btn {
  background: none;
  align-items: center;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  height: 2.5%;
  z-index: 5;
  transform: translate(-50%,0%);
}

.control-btn img {
  width: 100%;
  height: 100%;
}

.control-btn2 img {
  width: 70px;
  height: 70px;
}

/*boutons*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4 boutons par ligne */
  gap: 3%; /* Espace entre les boutons */
  max-width: 800px;
  margin-top: 25%;
  margin-bottom: 50%;
  padding: 5em;
  transform: scale(1.8);
}
/*
@media (min-width: 750px) {
  @media (min-width: 750px) {
      .grid-container {
          display: grid
;
          grid-template-columns: repeat(2, 1fr);
          gap: 3%;
          max-width: 800px;
          /* margin-top: 25%; */
          margin-bottom: 10%;
          margin-left:10%;
          margin-right:10%;
          padding: 5em;
          /*transform: scale(1.5);
          background:powderblue;
      }
  }
}*/

.grid-container2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4 boutons par ligne */
  gap: 3%; /* Espace entre les boutons */
  max-width: 800px;
  margin-top: 15%;
  margin-bottom:30%;
  padding-left: 5em;
  padding-right: 5em;
  transform: scale(1.8);
}

.grid-container3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4 boutons par ligne */
  gap: 3%; /* Espace entre les boutons */
  max-width: 800px;
  margin-top: 25%;
  margin-bottom:30%;
  padding-left: 5em;
  padding-right: 5em;
  transform: scale(1.8);
}

.sound-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sound-btn:hover {
  transform: scale(0.8);
}

.sound-btn img {
  width: 100%;
  max-width: 100px;
  height: auto;
}


.phonetique-lettre{
  font-family: "Parkinsans", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1em;
    color: white;
    margin: 10%;
    text-align: center;
}
}


#sketch-holder {
  position: absolute;
  width: 100vw !important;
  height: 100vh !important;
  top: 0;
  left: 0;
  z-index: 0;
}


.audio-section {
  margin: 40px auto;
  padding: 20px;
  max-width: 600px;
  color: white;
  font-family: "Parkinsans", sans-serif;
}

.audio-player {
  margin-bottom: 24px;
}

.audio-player p {
  margin-bottom: 8px;
  font-weight: 600;
}

audio {
  width: 100%;
  max-width: 100%;
  outline: none;
  height: 36px;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

  
  /* Mobile friendly
  @media (max-width: 600px) {
    .box {
      flex: 1 1 100%;
      font-size: 1.5rem;
      height: 120px;
    }
  }*/

  /* 🌟 Responsive : sur écrans plus petits, passer à 2 colonnes */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
  }
}

/* Option : encore plus petit écran → revenir à 1 colonne */
@media (max-width: 350px) {
  .container {
    grid-template-columns: 1fr;
  }
}
  

