body {
    background-color: #121212;
    height: 100vh;  
    margin: 0px;
    overflow: hidden;
  }

  .navbar{
    z-index: 0 !important;
  }
  
  
  #gallery {
    margin-top: 80px;
    height: 80vmax;
    width: 120vmax;  
    position: absolute;
    z-index: 1;
  }
  
  .card:nth-child(1) {
    left: 5%;
    top: -5%;
  }
  
  .card:nth-child(2) {
    left: 35%;
    top: 3%;
  }

  .card:nth-child(2) .cardImg{
    background: url('../images/projet.jpg');
    background-position: center;
    background-size: cover;
  }
  
    .card:nth-child(3) .cardImg{
    background: url('../images/HELYTVOD.png');
    background-position: center;
    background-size: cover;
  }
  
  .card:nth-child(3) {
    left: 12%;
    top: 34%;
  }
  
  .card:nth-child(4) {
    left: 43%;
    top: 40%;
  }
  
  .card:nth-child(4) .cardImg{
    background: url('../images/eureka.jpg');
    background-position: center;
    background-size: cover;
  }
  
  .card:nth-child(5) {
    left: 8%;
    top: 70%;
  }
  
  .card:nth-child(6) {
    left: 68%;
    top: 8%;
  }
  
      .card:nth-child(6) .cardImg{
    background: url('../images/euro.jpg');
    background-position: center;
    background-size: cover;
}
  
  .card:nth-child(7) {
    left: 50%;
    top: 74%;
  }
  
  .card:nth-child(8) {
    left: 72%;
    top: 42%;
  }
  
  .card:nth-child(8) .cardImg{
        background: url('../images/ines.png');
        background-position: center;
        background-size: cover;
    }
  
  .card:nth-child(9) {
    left: 84%;
    top: 84%;
  }
  

.card{
    position: absolute;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.8s ease;
}

.card::before{
    content: '';
    position: absolute;
    top: 0px;
    width: 350px;
    height: 175px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1;
   
    transition: all 0.8s ease 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    box-sizing: border-box;
}

.card::after{
    content: '';
    position: absolute;
    bottom: 0px;
    width: 350px;
    height: 175px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 1;
    box-shadow: 0px 10px 50px rgba(0,0,0,0.2);
    transition: all 0.8s ease 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: none;
    box-sizing: border-box;
}


.bubble{
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    pointer-events: none;
}

.card .bubble:nth-child(1){
    background-color: cadetblue;
    top: -200px;
}

.card .bubble:nth-child(2){
    background-color: rgb(167, 46, 218);
    left: -200px;
}

.card .bubble:nth-child(3){
    background-color: rgb(214, 132, 18);
    bottom: -200px;
}

.card .bubble:nth-child(4){
    background-color: rgb(219, 11, 11);
    right: -200px;
}

.cardText{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    height: 33%;
    z-index: 2;
    pointer-events: none;
}

.cardTextContainer{
    width: 100%;
    height: max-content;
    overflow: hidden;
}

.cardText h1{
    font-size: 38px;
    font-weight: 100;
    color: rgba(255,255,255,0.4);
    transition: all 0.5s ease 1.2s;
    letter-spacing: 5px;
}

.cardTextContainer:nth-child(2) h1{
    transition: all 0.5s ease 1.1s;
}

.cardImg{
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 0%;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.mouse{
    position: absolute;
    width: 35px;
    height: auto;
    bottom: 15%;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    filter: invert(0.8) ;
    transition: all 0.5s ease;
}

.mouse:hover{
    filter: invert(0.9) drop-shadow(0px 0px 10px rgba(0,0,0,0.9));
    width: 38px;
    cursor: pointer;
    transition: width 0.5s ease;
}


.card button span img{
    width: 17px;
    height: 17px;
    margin-left: 10px;
}


.actif:hover .cardImg{
    cursor: pointer;
    opacity: 0.9;
    height: 100%;
    box-shadow: 0px 0px 40px rgba(0,0,0,0.5);
    transition: all 1s ease 0.45s;
}

.actif:hover:before{
    height: 0;
    border: none;
    transition: all 0.8s ease 0.5s;
}
.actif:hover:after{
    height: 0;
    border: none;
    transition: all 0.8s ease 0.5s;
}


.actif:hover .cardTextContainer:nth-child(1) h1{
    transform: translateY(40px);
    transition: all 0.5s ease;
}
.actif:hover .cardTextContainer:nth-child(2) h1{
    transform: translateY(-40px);
    transition: all 0.5s ease 0.1s;  
}

.actif:hover .mouse{
    opacity: 1;
    pointer-events: visible;
    transition: opacity 1.2s ease 1.2s, width 0.3s ease;  
}

@media (max-width: 1200px) {

    .navbar{
      z-index: 1 !important;
    }

    body{
        height: unset;
        overflow-x: hidden;
        overflow-y: visible;
    }
    .card{
        position: relative;
    }

    #gallery{
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        justify-content: center;
        height: unset;
        width: 100vw;
    }
    
  .card:nth-child(1) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(2) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(3) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(4) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(5) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(6) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(7) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(8) {
    left: unset;
    top: unset;
  }
  
  .card:nth-child(9) {
    left: unset;
    top: unset;
  }

  .actif:hover .cardImg{
    opacity: 1;
    height: 100%;
    box-shadow: 0px 0px 40px rgba(0,0,0,0.5);
    transition: all 1s ease 0.45s;
  }

  .card:nth-child(3){
      display: none;
  }
}

@media (max-width: 900px) {

  .card{
    display: none;
  }

  .card.actif{
    display: flex;
  }

  .bubble{
    width: 20px;
    height: 0px;
    filter: blur(70px);
  }

  .card .bubble:nth-child(1){
    top: -10vw;
  }
  .card .bubble:nth-child(2){
    left: -10vw;
  }
  .card .bubble:nth-child(3){
    bottom: -10vw;
  }
  .card .bubble:nth-child(4){
    right: -10vw;
  }
  .card::before, .card::after{
    background-color: rgba(227, 151, 0, 0.736);
  }
  .card::after{
    opacity: 0.3;
    background-color: rgba(255,255,255,0.05);
  }

  #gallery{
    z-index: 0;
  }
}

@media (max-width: 450px) {

    #gallery{
      margin: 0;
      padding: 80px 0;
    }

    .card{
      display: none;
    }

    .card.actif{
      display: flex;
    }

    .card::after, .card::before{
      box-shadow: none;
    }

    .card{
      height: 70vw;
      width: 70vw;
    }

    .card::before, .card::after{
      width: 70vw;
      height: 35vw;
      background-color: rgba(227, 151, 0, 0.736);
    }
    .card::after{
      background-color: rgba(255,255,255,0.05);
    }

    .bubble{
      width: 50vw;
      height: 50vw;
      filter: blur(0);
      display: none;
    }

    .cardText h1{
      font-size: 7vw;
    }

}