:root {
    --title-color: #525960;
}

/* ==========================================================================
   Base Styles (Body)
   ========================================================================== */

body {
    overflow-y: auto;
    transition: overflow 0.5s ease;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
    padding: 2rem 1.2rem;
    position: relative;
}

.section__title {
    font-size: 2.50vh;
    color: var(--title-color);
    margin: 0 1rem 0.5rem 1rem;
    font-weight: 600;
    padding: 2rem 1.2rem 10px 2rem;
}

#home {
    margin-top: 2%;
    position: fixed;
    width: 100%;
    height: 50vh;
    transition: height 0.5s ease;
}

#suggestions {
    background: #fefefe;
    border-radius: 35px 35px 0 0;
    height: 100vh;
    top: 50vh;
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: initial;
    
}

/* ==========================================================================
   Home Content Styles
   ========================================================================== */

   .home__content {
    width: 95%;
    height: 100%;
    background: aliceblue;
    margin: auto;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    flex-direction: column;
}

.home_texts {
    width: 100%;
    height: 70%;
    margin: auto;
    padding: 0 3vh;
    border-radius: 30px;
    position: relative;
    display: grid;
    align-items: center;
    align-content: space-evenly;
    transition: opacity 0.5s ease;
    opacity: 1;
    font-size: 1.71vh;
}

.home_texts.hidden {
    opacity: 0;
}

.show {
    opacity: 1 !important;
    transition: height 0.5s ease;
}

@media screen and (min-width: 768px) {
    .home_texts {
        padding: 0 13%;
    }
    #home {
      margin-top: 8.5vh !important;
    }
    #suggestions {
      top: 58vh !important;
  }

}

/* ==========================================================================
   Circle Styles (Boules)
   ========================================================================== */

.circle {
    position: absolute;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background-color: #2f2f2f;
    opacity: 0.3;
}

.circle1 { background-color: #298bcc; z-index: 1; }
.circle2 { background-color: #298bcc; z-index: 2; }
.circle3 { background-color: #298bcc; z-index: 3; }

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(6vh);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ==========================================================================
   Button and Link Styles
   ========================================================================== */

button.startQuizz {
    background: #525960;
    width: fit-content;
    padding: 1.2vh 2.2vh;
    border: none;
    border-radius: 15px;
    color: #fafffe;
    font-size: 1rem;
    font-weight: 550;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.startQuizz:active {
    transform: scale(0.95); /* Effet d'enfoncement */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Réduction de l'ombre */
  }


/* ==========================================================================
   Heading Styles
   ========================================================================== */

h3.intro {
    font-weight: 300;
}

h2.intro {
    font-weight: 500;
}

/* ==========================================================================
   Quizz Started Styles
   ========================================================================== */

.quizz-started #suggestions {
    opacity: 0;
    transform: translateY(-20px);
    display: none;
}

.quizz-started #favoris {
    opacity: 0;
    transform: translateY(-20px);
    display: none;
}

.quoteIcon {
  top: 4%;
  position: absolute;
  right: 4vh;
  opacity: 0;
  font-size: 2.4rem;
  transition: opacity 0.5s ease;
}

.quizz-started #home {
    height: 83%;
}

.quizz-started body {
    overflow-y: hidden;
}

#question-container {
    width: 100%;
    height: 100%;
    padding: 0 3.2vh;
    border-radius: 6px;
    opacity: 0;
    display: none;
    transition: height 0.5s ease;
    z-index: 999;
    align-content: center;
}
.question {
    margin-bottom: 20px;
    display: grid;
    height: 100%;
    align-items: center;
    align-content: center;
    gap: 10vh;
}
.question-title {
    position: relative;
    font-size: 2.50vh;
    margin-bottom: 10px;
    width: fit-content;
    font-weight: 500;
    margin: auto;
}

.question-counter {
    display: block;
    position: absolute;
    bottom: 2.9%;
    left: 46.5%;
}

.answers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vh;
}
  .answers button {
    display: block;
    margin: 5px 0;
    background: #525960;
    width: fit-content;
    padding: 1.2vh 2.2vh;
    border: none;
    border-radius: 15px;
    color: #fafffe;
    font-size: 1rem;
    font-weight: 550;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .answer-btn:active {
    transform: scale(0.95); /* Effet d'enfoncement */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Réduction de l'ombre */
  }
  
 .enfonce {
    transform: scale(0.95) !important; /* Applique l'enfoncement */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .finished {
    text-align: center;
    font-size: 18px;
    color: #333;
  }


#end-animation {
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
    margin: -13vh auto;
    width: 33vh;
}
  
@keyframes bounce {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.animation-text {
    font-size: 2.40vh;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.bounce {
  animation: bounce 0.6s ease;
}

  
.progress-bar-container {
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    position: relative;
  }
  
  .progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 10px;
    background-color: #a2c1da;
    transition: width 0.5s cubic-bezier(0.4, 0, 1, 1);
  }
  


/* ==========================================================================
   Carrousel 
   ========================================================================== */

.card {
    width: 300px;
    min-width: 300px;
    height: auto;
    background: #e7f3fd;
    border-radius: 30px;
    position: relative;
    z-index: 10;
    margin: 20px 0px 20px 30px;
    min-height: fit-content;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0px 0px 0px 0px rgba(0,0,0, .08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform:translate(0, -10px);
  box-shadow: 0px 17px 35px 0px rgba(0,0,0,.07);
}

.card h4 {
  position:absolute;
  left: 0;
  top: 0;
  padding: 15px;
}

.card .ii {
  position:absolute;
  right: 0;
  top: 0;
  padding: 15px;
  font-size:1.4rem;
  line-height:3.2rem;
}

.card .card-text {
  padding: 20px;
}

p {
  font-size: .8rem;
  opacity: .6;
  margin-top: 10px;
}

.card .card-img {
    margin: auto;
    display: flex;
    align-items: center;
    transition: all .35s ease-out;
    justify-content: center;
    width: 90%;
    margin-top: 8%;
    position: relative;
}   

.card-logo {
  position: absolute;
  top: -1px;
  right: 3%;
  background: #e7f3fd;
  border-radius: 0 0 0 15px;
  padding: 6px 10px;
  font-size: 1.1rem;
}

.card img {
    height: 135px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    width: 94%;
    object-fit: cover;
}


.card-text h2 {
  font-size: 1.75vh !important;
}

.card:hover .card-img {
  transform:translate(7px,-3px);
}


.card-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow: auto;
    scroll-behavior: smooth;
    margin-top: -1vh;
}

.card-content::-webkit-scrollbar {
   height:0px;
}

.card-content:after {
  content:'';
  display:block;
  min-width:20px;
  height:100px;
  position:relative;
}

@media screen and (min-width: 768px) {
    .btn {
        min-width: 60px;
        margin: auto 30px;
        height: 60px;
        border-radius: 20px;
        background: #e7f3fd;
        border: 0px;
        outline: none;
        cursor: pointer;
        z-index: 9999;
        box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .08);
        transition: all .25s ease;
    }
}

@media screen and (max-width: 767px) {

    .btn {
        display: none;
    }
}


.btn:hover{
  box-shadow: 0px 17px 35px 0px rgba(0,0,0,.07);
}

.btn i {
  font-size:1.2rem;
}

.slider {
  display:flex;
  justify-content:center;
  width:100%;
  height:fit-content;
  overflow:hidden;
}


/* ==========================================================================
   Listes
   ========================================================================== */

   section#listes {
    background: #fff;
    border-radius: 35px;
    height: 2vh;
    padding: initial;
    z-index: 0;
    position: absolute;
    top: 100vh;
    right: 2.5%;
    width: 95%;
    margin: auto;
    opacity: 0;
    transition: top 1s ease, opacity 1s ease;
    justify-content: center;
    padding-top: 3%;
    display: none;
}