/*REGULAR*/
@font-face {
  font-family: 'interstate';
  src: url('/www/capeb/content/master/font/Interstate/new/Interstate-Regular.woff') format('woff'),
      url('/www/capeb/content/master/font/Interstate/new/Interstate-Regular.woff2') format('woff2'),
      url('/www/capeb/content/master/font/Interstate/new/Interstate-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

#quizTitle {
  font-size: 2em;
  color: #2c3e50;
  text-align: center;
  margin: 180px 0 6%;
  font-weight: bold;
  font-family: "interstate", sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#quizTitle2 {
  max-width: 400px;
  margin: 10px 0 20px 0;
  text-align: left;
  padding: 0 2rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 200;
  font-family: "interstate", sans-serif;
  color: #2c3e50;
}

#Intro {
  max-width: 600px;
  margin: 10px auto;
  padding: 0 2rem;
  font-family: "interstate", sans-serif;
  color: #2c3e50;
  font-weight: 200;
}

#Time {
  max-width: 800px;
  font-family: "interstate", sans-serif;
  color: #8b8d8e;
  font-weight: 500;
  font-size: 1rem;
}


body {
  font-family: "interstate", sans-serif;
  background-image: url('Background1.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
  padding-top: 30px; /* ✅ espace haut défini ici */
  margin: 0;
  transition: background-position 0.3s ease;
  }
  
#mainContainer {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

#quiz {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  }

#quizContainer {
  text-align: left;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  min-height: auto; 
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ✅ répartit question / feedback / boutons */
  overflow: hidden; /* ✅ évite les débordements */
  display: none; /* ⛔️ caché au début */
  }

  
  .hidden {
    display: none;
  }
  
  button {
    background-color: #d71920;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    margin: 1rem 0.5rem 0.5rem 0.5rem;
    cursor: pointer;
    justify-content: center;
  }
  
  button:hover {
    background-color: #a51419;
  }
  
  .question {
    min-height: auto; /* ou garde 150px si tu veux une hauteur fixe */
    margin-bottom: 0.5rem;
  }
  
  #feedback {
    margin-top: 1rem;
    font-style: italic;
    text-align : justify;
    min-height: 10px;
    transition: all 0.3s ease;
  }
  
  #resultat {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
  }
  
  .answers {
    margin-top: 0.5rem; /* Réduit l’espace entre la question et les réponses */
  }
  
  .answers label {
    display: block;
    margin-bottom: 0.3rem; /* réduit l’espace entre les options */
    line-height: 1.4;
  }

  .btn-container {
    display: flex;
    justify-content: center;  /* ✅ centre les boutons horizontalement */
    gap: 1rem;                /* ✅ espace entre les boutons */
    margin-top: 1.5rem;
  }

  .result-page {
    display: flex;
    flex-direction: column;
    justify-content: center;    /* centre verticalement */
    align-items: center;        /* centre horizontalement */
    flex-grow: 1;
    height: 100%;               /* prend toute la hauteur du conteneur */
    text-align: center;
    gap: 1rem;
  }

  @media screen and (max-width: 768px) {
    body {
      background-attachment: scroll; /* ✅ Fix pour mobiles */
      background-size: cover;        /* Ou `contain` si tu veux tout afficher */
      background-position: top center; /* Centré depuis le haut */
      background-size: contain
    }
  
    #mainContainer {
      padding: 1rem; /* Réduit les marges pour petits écrans */
    }
    #quizContainer {
      width: 100%;
      max-width: 95%;
      padding: 1rem;
      margin: 1rem 0;
      min-height: auto; /* ❌ évite une hauteur fixe en mobile */
      box-sizing: border-box;
    }
  
    .btn-container {
      flex-direction: column; /* ✅ boutons en colonne si manque de place */
      align-items: center;
    }
  
    button {
      width: 100%; /* ✅ pour qu’ils prennent toute la largeur */
      max-width: 300px;
    }
  
    #resultat {
      text-align: center;
    }
    
    #feedback {
      text-align: justify;
    }
  }

  