/* ============================================================
   ACE MENTAL — Profil Psychologique
   Style global — charte graphique ACE MENTAL
   Navy: #0a2540 | Or: #fbbf24 | Gris clair: #f8fafc
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --navy:        #0a2540;
    --navy-mid:    #0e3460;
    --navy-light:  #1e4d8c;
    --gold:        #fbbf24;
    --gold-dark:   #d97706;
    --gray-bg:     #f8fafc;
    --gray-100:    #f1f5f9;
    --gray-200:    #e2e8f0;
    --gray-400:    #94a3b8;
    --gray-600:    #475569;
    --gray-800:    #1e293b;
    --white:       #ffffff;
    --success:     #10b981;
    --error:       #ef4444;

    --font:        'Segoe UI', Arial, system-ui, sans-serif;
    --radius:      14px;
    --radius-sm:   8px;
    --radius-lg:   20px;
    --shadow:      0 4px 24px rgba(10, 37, 64, 0.09);
    --shadow-lg:   0 8px 40px rgba(10, 37, 64, 0.14);
    --transition:  all 0.25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--gray-bg);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; }

ul { list-style: none; }

input, button { font-family: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Page system ───────────────────────────────────────────── */
.page {
    display: none;
    min-height: 100vh;
    padding: 32px 0 60px;
    animation: fadeIn 0.4s ease;
}

.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ──────────────────────────────────────────────────── */
.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-texts {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-ace {
    font-size: 26px;
    font-weight: 900;
    color: #0a2540;
    letter-spacing: 2px;
}

.logo-mental {
    font-size: 26px;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-small {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.logo-small .logo-ace {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: #0a2540;
}

.logo-small .logo-mental {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: #fbbf24;
}

.logo-small.centered { text-align: center; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.25);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-hero {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
    background: var(--navy);
}

.btn-primary.btn-hero:hover {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--navy);
    border-color: var(--gray-400);
}

/* ── Hidden utility ────────────────────────────────────────── */
.hidden { display: none !important; }

/* ================================================================
   PAGE 1 — ACCUEIL
   ================================================================ */
#page-accueil {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.accueil-bg-decoration {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.accueil-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero-title {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 18px;
    line-height: 1.15;
}

.hero-title em {
    font-style: normal;
    color: var(--gold-dark);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 36px;
    line-height: 1.7;
}

.desktop-br { display: none; }

@media (min-width: 600px) { .desktop-br { display: inline; } }

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 18px;
    flex: 1 1 150px;
}

.info-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.info-card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.info-card span {
    font-size: 12px;
    color: var(--gray-600);
}

.accueil-footer-note {
    margin-top: 24px;
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
}

/* ================================================================
   PAGE 2 — QUESTIONNAIRE
   ================================================================ */
#page-questionnaire {
    background: var(--gray-bg);
}

.q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.progress-block {
    flex: 1;
    min-width: 200px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 6px;
    font-weight: 500;
}

#progress-pct { font-weight: 700; color: var(--navy); }

.progress-track {
    height: 6px;
    background: var(--gray-200);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    border-radius: 100px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Question card */
.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    animation: fadeIn 0.3s ease;
}

.q-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.q-text {
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 32px;
    line-height: 1.45;
}

/* Scale */
.scale-container { margin-top: 8px; }

.scale-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.scale-item {
    cursor: pointer;
}

.scale-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.scale-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-bg);
    text-align: center;
    transition: var(--transition);
    user-select: none;
}

.scale-item:hover .scale-btn {
    border-color: var(--navy);
    background: rgba(10, 37, 64, 0.04);
}

.scale-item.selected .scale-btn,
.scale-item input:checked + .scale-btn {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.scale-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    transition: color 0.2s;
}

.scale-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.scale-item.selected .scale-num,
.scale-item.selected .scale-lbl {
    color: var(--white);
}

/* Error */
.q-error {
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: fadeIn 0.2s ease;
}

/* Navigation */
.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ================================================================
   PAGE 3 — EMAIL
   ================================================================ */
#page-email {
    background: var(--gray-bg);
}

.email-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 44px 40px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.check-circle {
    width: 72px;
    height: 72px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.25);
}

.email-card h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}

.email-sub {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 32px;
}

.email-form { text-align: left; }

.field-group {
    margin-bottom: 20px;
}

.field-group label:not(.checkbox-label) {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.field-group input[type="text"],
.field-group input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--gray-800);
    background: var(--gray-bg);
    transition: var(--transition);
    outline: none;
}

.field-group input:focus {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

.field-group input.input-error { border-color: var(--error); }

/* Checkbox RGPD */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: 5px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--white);
}

.checkbox-label input:checked + .custom-check {
    background: var(--navy);
    border-color: var(--navy);
}

.checkbox-label input:checked + .custom-check::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.check-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.form-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ================================================================
   PAGE 4 — RÉSULTATS
   ================================================================ */
#page-results {
    background: var(--gray-bg);
}

.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.results-header h1 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 8px;
}

.results-welcome {
    font-size: 16px;
    color: var(--gray-600);
}

.results-disclaimer {
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
    color: var(--gray-400);
    line-height: 1.6;
}

/* Profile summary bar */
.profile-summary-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.psb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.psb-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.psb-value {
    font-size: 22px;
    font-weight: 800;
    color: #fbbf24;
}

.psb-sep {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.psb-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    max-width: 160px;
}

/* Chart */
.chart-section {
    margin-bottom: 32px;
}

.chart-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-box canvas {
    max-width: 100%;
    height: 320px !important;
}

/* Type section */
.type-section {
    margin-bottom: 24px;
}

.type-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.type-card-header {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.type-card-header.base-header { background: var(--navy); }
.type-card-header.phase-header { background: #1e3a5f; }

.type-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.type-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.type-name-big {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
}

.type-score-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.type-description {
    padding: 22px 28px 10px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
    border-bottom: 1px solid var(--gray-100);
}

.type-grids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.type-col {
    padding: 20px 28px;
}

.type-col:first-child {
    border-right: 1px solid var(--gray-100);
}

.type-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.type-col.forces .type-col-title { color: var(--success); }
.type-col.defis .type-col-title { color: var(--error); }

.type-col ul { list-style: none; }

.type-col li {
    font-size: 13px;
    color: var(--gray-600);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.type-col.forces li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 11px;
    top: 5px;
}

.type-col.defis li::before {
    content: '△';
    position: absolute;
    left: 0;
    color: var(--error);
    font-size: 10px;
    top: 5px;
}

.type-extras {
    padding: 0 28px 24px;
    display: grid;
    gap: 16px;
}

.type-extra-block {
    background: var(--gray-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
}

.type-extra-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.type-extra-label .extra-icon { font-size: 14px; }

.type-extra-block .question-centrale {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-dark);
    font-style: italic;
}

.type-extra-block ul { list-style: none; }

.type-extra-block li {
    font-size: 13px;
    color: var(--gray-600);
    padding: 3px 0;
    padding-left: 14px;
    position: relative;
}

.type-extra-block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: 700;
}

/* Stress & Ressources */
.sr-section {
    margin-bottom: 24px;
}

.sr-section .section-h2 {
    margin-top: 24px;
}

.section-h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.sr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sr-col {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    border: 1px solid var(--gray-200);
}

.sr-col h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sr-stress h3 { color: #dc2626; }
.sr-ressource h3 { color: var(--success); }

.sr-stress h3 svg { color: #dc2626; }
.sr-ressource h3 svg { color: var(--success); }

.sr-col li {
    font-size: 13px;
    color: var(--gray-600);
    padding: 5px 0;
    border-bottom: 1px solid var(--gray-100);
    line-height: 1.5;
}

.sr-col li:last-child { border-bottom: none; }

/* Développement */
.dev-section {
    margin-bottom: 32px;
}

.dev-list {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.dev-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.55;
}

.dev-list li:last-child { border-bottom: none; }

.dev-list li::before {
    content: '→';
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Download CTA */
.dl-cta {
    text-align: center;
    padding-top: 8px;
}

.dl-hint {
    margin-top: 14px;
    font-size: 13px;
    color: var(--gray-400);
}

/* ================================================================
   LOADING OVERLAY
   ================================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.spin-ring {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-box p {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

/* ================================================================
   RESPONSIVE — Mobile first
   ================================================================ */
@media (max-width: 600px) {

    .page { padding: 20px 0 48px; }

    .question-card { padding: 24px 20px; }

    .scale-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }

    .scale-btn {
        padding: 10px 3px;
    }

    .scale-num { font-size: 16px; }
    .scale-lbl { font-size: 8px; }

    .email-card { padding: 28px 20px; }

    .type-grids {
        grid-template-columns: 1fr;
    }

    .type-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
    }

    .sr-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary-bar {
        gap: 12px;
        padding: 16px 20px;
    }

    .psb-value { font-size: 18px; }

    .q-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-block { width: 100%; }

    .info-cards { flex-direction: column; }

    .info-card { flex: 1 1 100%; }

    .logo-small { margin-bottom: 16px; }
}

@media (max-width: 400px) {
    .scale-grid { gap: 3px; }
    .scale-btn { padding: 8px 2px; }
    .scale-num { font-size: 14px; }
    .scale-lbl { display: none; }
}

/* ================================================================
   TYPE 2 — CHOIX FORCÉ A / B
   ================================================================ */
.answer-container { margin-top: 4px; }

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.choice-item { cursor: pointer; }

.choice-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-bg);
    transition: var(--transition);
    height: 100%;
    min-height: 100px;
}

.choice-letter {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.choice-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.55;
    transition: color 0.2s;
}

.choice-item:hover .choice-btn {
    border-color: var(--navy);
    background: rgba(10, 37, 64, 0.04);
}

.choice-item.selected .choice-btn {
    border-color: var(--navy);
    background: var(--navy);
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.22);
}

.choice-item.selected .choice-letter {
    background: var(--gold);
    color: var(--navy);
}

.choice-item.selected .choice-text { color: var(--white); }

/* ================================================================
   TYPE 3 — MISE EN SITUATION (options A à F)
   ================================================================ */
.scenario-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
}

.scenario-item { cursor: pointer; }

.scenario-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.scenario-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-bg);
    transition: var(--transition);
}

.scenario-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--navy);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.scenario-text {
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.5;
    transition: color 0.2s;
}

.scenario-item:hover .scenario-btn {
    border-color: var(--navy);
    background: rgba(10, 37, 64, 0.04);
}

.scenario-item.selected .scenario-btn {
    border-color: var(--navy);
    background: var(--navy);
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.22);
}

.scenario-item.selected .scenario-letter {
    background: var(--gold);
    color: var(--navy);
}

.scenario-item.selected .scenario-text { color: var(--white); }

/* Badge type de question */
.q-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.q-type-badge.badge-scale    { background: rgba(10,37,64,0.08);    color: var(--navy); }
.q-type-badge.badge-choice   { background: rgba(251,191,36,0.18);  color: var(--gold-dark); }
.q-type-badge.badge-scenario { background: rgba(16,185,129,0.12);  color: #047857; }

/* Responsive ajouts */
@media (max-width: 520px) {
    .choice-grid { grid-template-columns: 1fr; }
    .choice-btn { min-height: auto; }
}

/* ================================================================
   SCORES COLOR ACCENTS (used by JS)
   ================================================================ */
.score-bar-fill-analyseur  { background: #0a2540; }
.score-bar-fill-perseverant { background: #1e40af; }
.score-bar-fill-empathique { background: #be185d; }
.score-bar-fill-rebelle    { background: #7c3aed; }
.score-bar-fill-promoteur  { background: #059669; }
.score-bar-fill-reveur     { background: #0284c7; }
