/* Empêche le débordement horizontal */
html,
body {
  overflow-x: hidden;
}
.logolink {
  text-align: center;
}
@font-face {
  font-family: 'Abril Fatface';
  src: url('media/AbrilFatface-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body.dark {
    background-color: #111;
    color: white;
    font-family: helvetica, sans-serif;
    margin: 0;
    padding: 0;
    /*overflow: hidden;  Ajouté */
  }
.container {
   
  display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    text-align: left;
   
  }

.logo-main {
    max-width: 350px;
  margin-bottom: 33px;
  margin-left: auto;
  margin-right: auto;
}

 

.question-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    max-width: 600px;
}

.question-form label {
  font-size: 15px;
  margin-bottom: 15px;
  display: flex;
    flex-direction: row;
    align-content: flex-start;
    align-items: flex-start;
    white-space: normal;
}

.question-form input[type="radio"] {
  margin-right: 10px;
}

.btn {
  align-self: center;
  margin-top: 30px;
  background-color: white;
  color: black;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #ddd;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    /* réduit au lieu de 50px */ }

.step {
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background-color: #444;
  transition: background-color 0.3s;
}

.step.active {
  background-color: white;
}
.question-title {
  font-family: 'Abril Fatface', serif;
  font-size: 2rem;
  /* Légèrement réduit */
  font-weight: bold;
  margin-bottom: 30px;
  white-space: break-spaces;
  /* Empêche le retour à la ligne */
  overflow: hidden;
  /* Masque le dépassement */
  text-overflow: ellipsis;
  /* Ajoute "..." si trop long */
}
.question-title-mobile{display: none;}



.question-form input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-radius: 50%;
    margin-right: 10px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    top: 1px;
}

.question-form input[type="radio"]:checked {
    background-color: white; }

.content-block {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
gap: 30px; /* Ajout pour mieux espacer les éléments */
}



.multi-progress-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.segment {
  flex: 1;
  max-width: 380px;
  height: 12px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
  background-color: transparent;
  padding: 2px;
  box-sizing: border-box;
}

.fill {
  background-color: white;
  height: 100%;
  border-radius: 20px;
  transition: width 0.3s ease-in-out;
}


.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  margin-right: 10px;
}

.btn-secondary:hover {
  background-color: white;
  color: black;
}




.responsive-break::before {
  content: "\A";
  /* saut de ligne */
  white-space: pre;
  /* permet de voir le \A */
  display: none;
}

 


/* Responsive */
@media (max-width: 600px) {

  .question-form label {
      font-size: 14px;
        white-space: normal;
  }
  .container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 90vh;
      padding: 40px 0px;
      width: 90%;
      max-width: 590px;
      margin: auto;
      text-align: left;
    }


  .question-title-mobile{
    display: flex;
    font-family: 'Abril Fatface', serif;
      font-size: 15px;
      /* Légèrement réduit */
      font-weight: bold;
      margin-bottom: 30px;
      white-space: break-spaces;
      /* Empêche le retour à la ligne */
      overflow: hidden;
      /* Masque le dépassement */
      text-overflow: ellipsis;
      /* Ajoute "..." si trop long */
  }
  .question-title{display: none;}

  .responsive-break::before {
      display: block;
    }
  .question-form {
    align-items: stretch;
  }

  .progress-bar {
    gap: 10px;
  }

  .step {
    width: 60px;
  }
  .question-list{
    font-size: 12px;
  }


    .logo-main {
      max-width: 80%;
      margin-bottom: 33px;
      margin-left: auto;
      margin-right: auto;
    }

.question-form label {
  font-size: 14px;
  display: flex;
  flex-direction: row;
  align-content: flex-start;
  align-items: flex-start;
    white-space: normal;
}


.blocressources { 
  max-width: 90%;
}

}