/* ==========================================
   SECTION FORMULAIRE QUIZ
========================================== */
.section_formulaire_quiz {
    padding: 80px 0;
    background: var(--white);
}

.section_formulaire_quiz__form {
    max-width: 880px;
    margin: 0 auto;
}

/* Honeypot */
.section_formulaire_quiz__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Slides ---- */
.fq-slide {
    display: flex;
    gap: 40px;
    align-items: center;
}
.fq-slide[hidden] { display: none; }
.fq-slide--img-droite { flex-direction: row-reverse; }

.fq-slide__media { flex: 1 1 45%; }
.fq-slide__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.fq-slide__body { flex: 1 1 55%; }
.fq-slide:not(.fq-slide--has-image) .fq-slide__body { flex: 1 1 100%; }

.fq-slide__kicker {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.fq-slide__titre { margin: 0 0 24px; }
.fq-required { color: var(--primary); }

/* ---- Radios / cases (style repris du formulaire de contact) ---- */
.fq-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fq-radio,
.fq-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}
.fq-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--black);
    border-radius: 50%;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}
.fq-radio input[type="radio"]:hover { transform: scale(1.15); }
.fq-radio input[type="radio"]:checked { border: 4px solid var(--primary); }

.fq-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--black);
    border-radius: 3px;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}
.fq-check input[type="checkbox"]:checked {
    border-color: var(--primary);
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}
.fq-radio input:focus-visible,
.fq-check input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- Champs texte / date / "Autre" ---- */
.fq-input,
.fq-autre-text {
    width: 100%;
    max-width: 360px;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}
.fq-autre-text {
    margin: 8px 0 0 30px;
}
.fq-autre-text[hidden] { display: none; }

/* ---- Échelle ---- */
.fq-echelle {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.fq-echelle__label {
    font-size: 0.85rem;
    font-weight: 600;
}
.fq-echelle__steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fq-echelle__step { cursor: pointer; }
.fq-echelle__step input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fq-echelle__step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--black);
    border-radius: 50%;
    transition: all 0.15s ease;
}
.fq-echelle__step input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.fq-echelle__step input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- RGPD ---- */
.fq-rgpd {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}
.fq-rgpd input {
    margin-top: 4px;
    flex-shrink: 0;
}
.fq-form-msg {
    margin: 12px 0 0;
    font-size: 0.9rem;
}
.fq-form-msg.is-error { color: #c0392b; }

/* ---- Pied : progression + navigation ---- */
.fq-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fq-progress__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    font-weight: 700;
}
.fq-progress__bar {
    margin-top: 6px;
    height: 6px;
    background: var(--cream, #f1e9da);
    border-radius: 3px;
    overflow: hidden;
}
.fq-progress__fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}
.fq-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.fq-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fq-btn--next,
.fq-btn--submit {
    background: var(--black);
    color: var(--white);
    margin-left: auto;
}
.fq-btn--next:hover,
.fq-btn--submit:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.fq-btn[hidden] { display: none; }
.fq-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Résultats ---- */
.fq-results[hidden] { display: none; }
.fq-results__titre {
    text-align: center;
    margin: 0 0 8px;
}
.fq-results__score {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 40px;
}
.fq-results__corrections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto 48px;
}
.fq-correction {
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
    background: var(--cream, #f9f3ea);
}
.fq-correction--ok { border-left-color: #2a7a2a; }
.fq-correction--ko { border-left-color: #c0392b; }
.fq-correction__titre { margin: 0 0 8px; font-weight: 700; }
.fq-correction__line { margin: 4px 0; font-size: 0.9rem; }
.fq-correction__expli { margin: 12px 0 0; font-size: 0.9rem; }

.fq-results__connecte {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.fq-results__reseaux {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.fq-results__reseau {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: opacity 0.2s ease;
}
.fq-results__reseau:hover {
    opacity: 0.6;
    color: var(--primary);
}

/* ---- RGPD wrapper (injecté dans la dernière slide) ---- */
.fq-rgpd-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ---- Résultats : liste des choix ---- */
.fq-correction__choices {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fq-correction__choice {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    background: var(--grey-light, #f7f7f7);
}
.fq-correction__choice--correct {
    background: rgba(42, 122, 42, 0.1);
    color: #2a7a2a;
    font-weight: 600;
}
.fq-correction__choice--correct::before {
    content: '✓ ';
}
.fq-correction__choice--wrong {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
    font-weight: 600;
}
.fq-correction__choice--wrong::before {
    content: '✗ ';
}
.fq-correction__choice--selected.fq-correction__choice--correct::before {
    content: '✓ ';
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .fq-slide,
    .fq-slide--img-droite { flex-direction: column; }
    .fq-slide__media,
    .fq-slide__body { flex: 1 1 100%; }
}
