h3 {
  font-size: 16px;
  color: #da812f;
}

#questionnaire {
  font-family: Poppins, sans-serif;
  max-width: 900px;
  margin: auto;
  padding: 50px;
  text-align: center;
  background-color: #100903;
  color: #ddd;
}
#question {
  font-size: 20px;
  margin-bottom: 15px;
}
#reponses button:not(.btn-validate) {
  position: relative;
  overflow: hidden; /* pour contenir le halo */
  background: transparent;
  border: 1px solid #e6b980;
  border-radius: 8px;
  padding: 10px 15px;
  color: #ddd;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
  z-index: 0;
  margin: 5px;
}

#reponses button:not(.btn-validate)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(218, 129, 47, 0.25),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

#reponses button:not(.btn-validate):hover {
  border-color: #da812f;
  color: #fff;
  background: transparent; /* laisser voir le halo */
}

#reponses button:not(.btn-validate):hover::before {
  opacity: 1;
}

#startBtn {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid #e6b980;
  border-radius: 8px;
  padding: 10px 20px;
  color: #ddd;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
  z-index: 0;
}

#startBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(218, 129, 47, 0.25),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

#startBtn:hover {
  border-color: #da812f;
  color: #fff;
  background: transparent;
}

#startBtn:hover::before {
  opacity: 1;
}
#resultats {
  margin-top: 20px;
  text-align: center;
}
#recap-gpt {
  color: #ddd;
  background: #100903;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 16px;
  text-align: left;
}
.resultats-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.result-card {
  background: rgba(16, 9, 3, 0.4); /* fond sombre translucide */
  border: 2px solid rgba(255, 255, 255, 0.1); /* bordure subtile et translucide */
  border-radius: 12px;
  padding: 15px;
  box-sizing: border-box;
  text-align: left;
  color: #ddd;
  backdrop-filter: blur(10px); /* flou derrière la carte */
  -webkit-backdrop-filter: blur(10px); /* compatibilité Safari */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* ombre douce */
  position: relative;
  overflow: hidden;
}

/* Tablet & mobile: 1 carte par ligne */
@media (max-width: 1024px) {
  .resultats-container {
    flex-direction: column;
  }
  .result-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Desktop: 3 cartes côte à côte */
@media (min-width: 1025px) {
  .result-card {
    flex: 1 1 calc(33.333% - 20px);
  }
}

.result-card strong {
  font-size: 18px;
  color: #da812f;
}
button {
  color: #ddd;
  border-color: #da812f;
}
button:hover {
  background-color: #da812f;
  color: #100903;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(218, 129, 47, 0.15),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.result-card:hover::before {
  opacity: 1;
}

.result-card:hover {
  border-color: rgba(218, 129, 47, 0.6); /* bordure dorée plus visible */
  box-shadow: 0 6px 25px rgba(218, 129, 47, 0.3); /* halo extérieur plus marqué */
}

button.btn-validate {
  display: block;
  margin: 30px auto 0 auto; /* centré et espacé au-dessus */
  padding: 12px 25px;
  background-color: rgba(218, 129, 47, 0.8); /* orange pâle avec transparence */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* compatibilité Safari */
  color: #100903; /* texte noir */
  border: 1px solid #da812f;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

button.btn-validate:hover {
  background-color: rgb(218, 129, 47); /* fond noir au hover */
  color: #100903; /* texte blanc au hover */
}

/* Mobile: rendre les boutons fluides */
@media (max-width: 480px) {
  #reponses button:not(.btn-validate),
  #startBtn {
    font-size: 14px;
    padding: 10px;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
  }
}
