/* --- Progression (inchangé) --- */
.section-questionnaire-progress { padding-bottom: 0; }
.questionnaire-progress-wrapper {
    margin: 0 auto;
    max-width: 760px;
    position: relative;
}
.questionnaire-progress {
    height: 35px;
    width: 100%;
    position: relative;
    background: linear-gradient(to bottom, #d4d6d8 0%, #eef1f4 99%);
    border: 1px solid #BABBBC;
    border-radius: 26px;
}
.questionnaire-progress::-webkit-progress-bar {
    background: linear-gradient(to bottom, #d4d6d8 0%, #eef1f4 99%);
    border-radius: 26px;
}
.questionnaire-progress::-webkit-progress-value {
    background: #186db7;
    border-radius: 26px;
}
.questionnaire-progress::-moz-progress-bar {
    background: #186db7;
    background: linear-gradient(to bottom, #d4d6d8 0%, #eef1f4 99%);
}
.progres-valeur {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font: bold .75rem/.5 sans-serif;
}

/* --- Conteneurs et typographie --- */
.quiz > div { overflow: hidden; } /* nécessaire pour l'animation left */
.quiz .question,
.quiz .retroaction,
.quiz .retroactions {
    position: relative;   /* nécessaire pour jQuery .animate({left:...}) */
    padding: 1px;
    min-height: 350px;
}
.quiz h2 { font-size: 1.1rem; }
.quiz .question :first-child,
.quiz .retroaction :first-child,
.quiz .retroactions :first-child { margin-top: 0; }

/* --- Boutons de réponses (nouveau flux sans <ol>) --- */
.answer-btn.btn.btn-lien {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid #074b98;
    border-radius: 10px;
    background: #fff;
    color: #074b98;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s, box-shadow .2s;
}
.answer-btn.btn.btn-lien:hover {
    background: #f0f6ff;
    color: #053a75;
    border-color: #053a75;
}
.answer-btn.btn.btn-lien:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24,109,183,.25);
}

/* État “choix cliqué” (si jamais tu ajoutes une classe .is-selected côté JS) */
.answer-btn.is-selected {
    background: #e8f2ff;
    border-color: #186db7;
    color: #0a4f9e;
}

/* --- Bloc rétroactions par question --- */
.retroactions { 
    display: none;        /* contrôlé par le JS */
    margin-top: 16px;
}
.retroactions .retro {
    /* chaque rétro (valeur1..4) est un bloc riche */
    display: none;        /* on montre seulement la .retro-X choisie */
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    padding: 1rem 1rem 0;
    margin-bottom: 16px;
}
.retroactions .retro :first-child { margin-top: 0; }

/* --- Bouton “Question suivante” / “Voir le message final” --- */
.retroactions .next-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 16px;
    border: 1px solid #186db7;
    border-radius: 8px;
    background: #186db7;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s, border-color .25s, box-shadow .2s;
}
.retroactions .next-btn:hover {
    background: #145a97;
    border-color: #145a97;
}
.retroactions .next-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24,109,183,.3);
}

/* --- Styles hérités de l'ancien questionnaire (optionnel si plus d'<ol>) --- */
/* Si tu n’utilises plus la liste ordonnée pour les réponses, tu peux retirer ce bloc.
   Je le laisse au cas où d’autres gabarits le réutilisent. */
.quiz .reponse { box-shadow: none; padding: 0; }
.quiz ol { counter-reset: section; list-style: none; padding: 0; }
.quiz ol li { position: relative; margin-bottom: 0; width: fit-content; }
.quiz ol li::before {
    position: absolute;
    content: counter(section, lower-alpha) " ";
    counter-increment: section;
    color: #074b98;
    font-weight: 800;
    border: 1px solid #074b98;
    border-radius: 35px;
    width: 38px;
    line-height: 35px;
    text-align: center;
    top: 10px; left: 15px;
    pointer-events: none;
    transition: color .3s, background-color .3s;
}
.quiz .btn.btn-lien { /* garde la base commune si utilisée ailleurs */
    cursor: pointer;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    transition: background-color .3s, color .3s;
}

/* --- Variante image (conservée) --- */
.quiz-question-image ol {
    display: flex;
    flex-basis: 50%;
    flex-wrap: wrap;
}
.quiz-question-image ol li img {
    display: block;
    width: 250px;
    height: 250px;
    object-fit: cover;
}

/* --- Petits plus responsives --- */
@media (max-width: 768px) {
    .answer-btn.btn.btn-lien { padding: 12px 14px; }
    .retroactions .retro { padding: 14px; }
}
