/* Quiz Interactif b523b40f - Styles Structural & Flexbox */
.quiz-container-b523b40f {
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.5;
    
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

body.admin-bar .quiz-container-b523b40f {
    max-height: calc(100vh - 40px - var(--wp-admin--admin-bar--height, 32px));
}

.quiz-container-b523b40f * {
    box-sizing: border-box;
}

.quiz-play-screen-b523b40f {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* NOUVEAUX STYLES : BARRE DE PROGRESSION */
.quiz-progress-track-b523b40f {
    width: 100%;
    background-color: #eef2f5;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.quiz-progress-fill-b523b40f {
    height: 100%;
    background-color: #2dcc70;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease-out;
}

/* Middle scrollable content area */
.quiz-scroll-content-b523b40f {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 15px;
}

.quiz-scroll-content-b523b40f::-webkit-scrollbar {
    width: 6px;
}
.quiz-scroll-content-b523b40f::-webkit-scrollbar-track {
    background: transparent;
}
.quiz-scroll-content-b523b40f::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}

/* Question wrapper */
.quiz-question-wrapper-b523b40f {
    margin-bottom: 20px;
}

.quiz-intro-b523b40f {
    font-size: 0.85em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

.quiz-question-b523b40f {
    margin: 0;
    font-weight: 700;
    font-size: 1.25em;
    line-height: 1.35;
}

/* Options */
.quiz-options-list-b523b40f {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.quiz-option-b523b40f {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 1px solid #ccc;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    line-height: 1.4;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    height: auto !important;
    min-height: min-content;
}

.quiz-option-b523b40f:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

.quiz-option-b523b40f[disabled] {
    cursor: default;
}

/* Feedback box */
.quiz-feedback-box-b523b40f {
    margin-bottom: 15px;
    border-left: 4px solid #ccc;
}

.quiz-feedback-status-b523b40f {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.quiz-feedback-explanation-b523b40f {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.quiz-feedback-link-b523b40f {
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.9em;
}

/* Actions footer */
.quiz-actions-b523b40f {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.quiz-action-btn-b523b40f {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    font-size: 1em;
}

.quiz-action-btn-b523b40f:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

/* Écran final / Résultats */
.quiz-result-screen-b523b40f {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    overflow-y: auto;
    max-height: 100%;
}

.quiz-score-circle-b523b40f {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f1f3f5;
    margin-bottom: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-final-score-b523b40f {
    font-size: 2em;
}

.quiz-score-slash-b523b40f {
    font-size: 1.3em;
    margin: 0 2px;
    opacity: 0.5;
}

.quiz-score-total-b523b40f {
    font-size: 1.3em;
    opacity: 0.8;
}

.quiz-result-title-b523b40f {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.quiz-result-text-b523b40f {
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 500px;
}

/* Media Queries */
@media screen and (max-height: 600px) {
    .quiz-container-b523b40f {
        max-height: calc(100vh - 15px);
    }
    .quiz-question-b523b40f {
        font-size: 1.1em;
    }
    .quiz-option-b523b40f {
        font-size: 0.85em;
    }
    .quiz-score-circle-b523b40f {
        width: 70px;
        height: 70px;
    }
    .quiz-final-score-b523b40f {
        font-size: 1.6em;
    }
}
