.result-title{
    margin:0 0 18px;
    text-align:center;
    font-size:34px;
    color:#172033;
}

.result-user{
    display:flex;
    justify-content:center;
    margin-bottom:18px;
}

.result-user-link{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:10px 16px;
    border-radius:999px;
    background:#eef3ff;
    border:1px solid #d7e2ff;
    color:#3e59c7;
    text-decoration:none;
    font-weight:bold;
    transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.result-user-link:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(62,89,199,0.16);
    background:#e6edff;
}

.result-user-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #5865F2;
    background:#ffffff;
}

.result-user-name{
    font-size:17px;
    word-break:break-word;
}

.result-score{
    text-align:center;
    font-size:62px;
    font-weight:800;
    color:#2ecc71;
    margin-bottom:18px;
    line-height:1;
}

.result-meta{
    text-align:center;
    margin-bottom:14px;
    color:#5f6b85;
    font-size:15px;
}

.result-date{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    background:#ffffff;
    border:1px solid #d9dfeb;
}

.result-verified{
    text-align:center;
    padding:14px 18px;
    border-radius:14px;
    font-weight:bold;
    margin-bottom:22px;
    background:#eef8f2;
    border:1px solid #cfead9;
    color:#2e8b57;
}

/* =========================
   PARTAGE
========================= */

.result-share-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:24px;
}

.result-share-btn{
    min-width:220px;
    border:none;
    border-radius:14px;
    padding:14px 18px;
    font-weight:800;
    font-size:15px;
    cursor:pointer;
    color:#ffffff;
    transition:transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.result-share-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.03);
}

.result-share-btn-discord{
    background:linear-gradient(90deg,#5865F2,#6b75f5);
    box-shadow:0 10px 20px rgba(88,101,242,0.22);
}

.result-share-btn-twitter{
    background:linear-gradient(90deg,#1d9bf0,#3aa9f5);
    box-shadow:0 10px 20px rgba(29,155,240,0.22);
}

/* =========================
   NAVIGATION QUESTIONS
========================= */

.question-nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin-bottom:24px;
}

.qbox{
    width:44px;
    height:44px;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    color:#ffffff;
    cursor:pointer;
    font-weight:bold;
    font-size:15px;
    transition:transform 0.18s ease, box-shadow 0.18s ease, outline 0.18s ease;
}

.qbox:hover{
    transform:translateY(-2px);
}

.qbox.correct{
    background:#35b26f;
}

.qbox.incorrect{
    background:#e74c3c;
}

.qbox.active{
    outline:3px solid rgba(76,110,245,0.24);
    box-shadow:0 0 0 4px rgba(76,110,245,0.1);
}

/* =========================
   DETAIL QUESTION
========================= */

.question-detail{
    min-height:220px;
}

.result-error-box{
    background:#ffffff;
    border:1px solid #f1c5c0;
    color:#b03a2e;
    border-radius:16px;
    padding:22px;
    text-align:center;
    box-shadow:0 10px 20px rgba(0,0,0,0.04);
}

.result-question-card{
    background:#ffffff;
    border:1px solid #d9dfeb;
    border-radius:18px;
    padding:24px;
    box-shadow:0 12px 24px rgba(0,0,0,0.05);
}

.result-question-card.question-ok{
    border-color:#cdebd8;
    box-shadow:0 12px 24px rgba(46,204,113,0.08);
}

.result-question-card.question-ko{
    border-color:#f1c9c4;
    box-shadow:0 12px 24px rgba(231,76,60,0.08);
}

.result-question-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:18px;
}

.result-question-category{
    display:inline-block;
    font-size:12px;
    font-weight:bold;
    letter-spacing:0.5px;
    text-transform:uppercase;
    color:#5f6b85;
    margin-bottom:8px;
}

.result-question-title{
    margin:0;
    font-size:24px;
    line-height:1.4;
    color:#172033;
}

.result-question-badge{
    flex-shrink:0;
    padding:10px 14px;
    border-radius:999px;
    font-weight:bold;
    font-size:14px;
    white-space:nowrap;
    background:#eef2ff;
    color:#3e59c7;
}

.question-ok .result-question-badge{
    background:#e7f6ed;
    color:#2e8b57;
}

.question-ko .result-question-badge{
    background:#fdeaea;
    color:#e74c3c;
}

.result-question-media{
    margin-bottom:22px;
}

.result-question-image{
    width:100%;
    max-height:420px;
    object-fit:cover;
    border-radius:14px;
    border:1px solid #d9dfeb;
    background:#e9eef7;
    margin-bottom:14px;
}

.result-question-audio{
    width:100%;
}

.result-question-answers,
.result-question-explanation{
    background:#f8faff;
    border:1px solid #e1e8f5;
    border-radius:14px;
    padding:18px;
}

.result-question-answers{
    margin-bottom:16px;
}

.result-question-answers h4,
.result-question-explanation h4{
    margin:0 0 12px;
    font-size:18px;
    color:#172033;
}

.result-answer-list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.result-answer-item{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    padding:14px 16px;
    border-radius:12px;
    background:#ffffff;
    border:1px solid #dfe5f0;
}

.result-answer-item.correct-answer{
    background:#edf9f1;
    border-color:#bfe5cb;
}

.result-answer-item.wrong-answer{
    background:#fff1f0;
    border-color:#efc3be;
}

.result-answer-text{
    color:#172033;
    font-weight:600;
    line-height:1.5;
}

.result-answer-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-end;
}

.answer-tag{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
    white-space:nowrap;
}

.selected-tag{
    background:#eef3ff;
    color:#3552b6;
}

.correct-tag{
    background:#e7f6ed;
    color:#2e8b57;
}

.result-question-explanation p{
    margin:0;
    color:#38445c;
    line-height:1.7;
}

/* =========================
   COMPATIBILITÉ ANCIENS BLOCS
========================= */

.question-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.question-number{
    font-weight:bold;
    font-size:18px;
}

.answer-status{
    padding:6px 12px;
    border-radius:8px;
    font-weight:600;
    font-size:14px;
}

.answer-status.correct{
    background:#e7f6ed;
    border:1px solid #35b26f;
    color:#2e8b57;
}

.answer-status.incorrect{
    background:#fdeaea;
    border:1px solid #e74c3c;
    color:#e74c3c;
}

.answer{
    background:#ffffff;
    padding:12px 16px;
    border-radius:10px;
    margin-bottom:12px;
    border:1px solid #e0e0e0;
    font-weight:500;
    color:#222222;
}

.answer.correct{
    background:#e7f6ed;
    border:1px solid #35b26f;
}

.answer.wrong{
    background:#fdeaea;
    border:1px solid #e74c3c;
}

.explanation{
    background:#fff8d9;
    border:1px solid #f2c94c;
    padding:15px;
    border-radius:10px;
    margin-top:15px;
    font-weight:500;
}

.explanation strong{
    display:block;
    margin-bottom:6px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:820px){
    .result-title{
        font-size:28px;
    }

    .result-score{
        font-size:50px;
    }

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

    .result-question-badge{
        white-space:normal;
    }

    .result-answer-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .result-answer-tags{
        justify-content:flex-start;
    }

    .result-share-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .result-share-btn{
        width:100%;
        min-width:0;
    }
}

@media (max-width:640px){
    .result-score{
        font-size:42px;
    }

    .result-user-link{
        width:100%;
        justify-content:center;
        border-radius:16px;
        text-align:center;
    }

    .result-question-card{
        padding:18px;
    }

    .result-question-title{
        font-size:20px;
    }

    .qbox{
        width:40px;
        height:40px;
        border-radius:10px;
    }
}