/*     @formatter:off
   =============================================================================
   QUIZYPEDIA — Feuille de style principale
   =============================================================================
   Sections :
   1.  VARIABLES & RESET
   2.  TYPOGRAPHIE & POLICES
   3.  LAYOUT DE BASE
   4.  HEADER & NAVIGATION
   5.  FOOTER
   6.  RESPONSIVE (breakpoints globaux)
   7.  COMPOSANTS — Thèmes & Catégories
   8.  COMPOSANTS — Quiz & Questions
   9.  COMPOSANTS — Résultats & Scores
   10. COMPOSANTS — Duel
   11. COMPOSANTS — Classements (Rankings)
   12. COMPOSANTS — Cartes & Boutons (qp-card / qp-btn)
   13. COMPOSANTS — Panneaux, Popups, Formulaires
   14. COULEURS, BACKGROUNDS & UTILITAIRES
   ============================================================================= */

/* =============================================================================
   1. VARIABLES & RESET
   ============================================================================= */

:root {
    --question_background: #737373;
    --title-font: 'Montserrat', sans-serif;
    --text-font: 'Open sans', sans-serif;

    --quizy_gradient_3: linear-gradient(45deg, #ead14b, #d9a11c);
    --quizy_gradient2: linear-gradient(45deg, #4983b7, #243bb3);
    --quizy_gradient_ok_previous: linear-gradient(45deg, #4194df, #0621ac);

    --quizy_gradient: linear-gradient(45deg, #1d8dd7, #04156a);
    --quizy_gradient_bottom: linear-gradient(135deg, #1d8dd7, #04156a);
    --quizy-intermediate-blue: #1152a1;
    --quizy-dark-blue: #04156a;
    --color-right: #65CE3F;
    --color-wrong: #EA7C68;
    --color-other-responses: #ddd;
    --response-border-width: 5px;
    --search-field-color: #555;

    --header-padding-x: 20px;
    --header-padding-y: 10px;
    --header-gap: 20px;
    --contents-max-width: 1200px;
}

* {
    -webkit-tap-highlight-color: transparent;
}

button {
    user-select: none;
    -webkit-user-select: none;
}

/* =============================================================================
   2. TYPOGRAPHIE & POLICES
   ============================================================================= */

html, body, button, input, select, textarea, .myFont, .myFont2, .ui-btn {
    font-family: 'Open Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .myFontBold, .myFont2Bold {
    font-family: 'Montserrat', sans-serif !important;
}

/* =============================================================================
   3. LAYOUT DE BASE
   ============================================================================= */

.questionTopDiv { padding: 5px 0; }

#mainDiv {
    background: #fff;
}

#footerID {
    background: #fff;
}

#quiz_best_result .small_cup {
    padding: 4px !important;
}

body {
    padding: 0 !important;
    margin: 0 !important;
}

.desktopTopMargin { margin: 5px; }

/* =============================================================================
   7. COMPOSANTS — Thèmes & Catégories
   ============================================================================= */

/* Common Theme & Button Styles */
.themeRow {
    width: 100%;
    color: #ffffff;
}

.themeRow2 {
    width: 100%;
    margin-bottom: 2px;
    height: 100px;
    box-shadow: 5px 5px 5px #ddd;
    color: #ffffff;
    background: #fff;
}

.theme_tile {
    text-align: left;
    min-height: 60px;
}

.theme_text {
    display: inline-block;
    vertical-align: middle;
    padding-left: 15px;
}

.infoDiv {
    width: fit-content;
    max-width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

#mainContent {
    float: left;
    width: 100%;
    margin-bottom: 20px;
}


#quiz_bottom {
    margin-top: 5px;
}

.questionDiv {
   font-size: 19px;
}

/* =============================================================================
   6. RESPONSIVE — Breakpoints principaux
   ============================================================================= */

@media (max-width: 480px) {

    .qp-content {
        padding: 0 !important;
    }

    [id$="_toggleCategoriesBtn"], .toggleCategoriesTD {
        display: none !important;
    }

    #headerID {
        width: 100%;
    }

    .resultContainer {
        width: 100% !important;
    }

    .ulTop { margin: 5px 0 10px 0 !important; }

    h2 {
        font-size: 1.2em;
    }

    #mainDiv {
        min-width: 320px;
        width: 100%;
        padding: 0 0 15px 0;
        margin: auto;
        box-sizing: border-box;
    }

    #mainLeft {
        float: left;
        width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    #leftContent {
        float: left;
        width: 0;
        display: none;
    }

    #sideContent {
        float: right;
        width: 0;
    }

    .popupCards {
        width: 100%;
    }

    .infoDivContainer {
        padding: 25px 20px !important;
    }

    .titleTD {
        display: inline;
    }

    .searchTD {
        display: none;
    }

    #userBtn2 {
        display: none;
    }

    .notMobile {
        display: none !important;
    }

    .mobileAndTabletDisplay {
        display: block !important;
    }

    .themeTitle {
        font-size: 18px;
    }

    .onlyLargeDesktopTD {
        display: none;
    }

    .responseLeftTD {

        height: 50px !important;
    }

    .question_check { width: 40px; height: 40px; line-height: 40px; }

    .questionTable { border-spacing: 0; }

    .questionDiv {
        font-size: 18px;
        padding: 2px 5px;
    }

    .questionTopDiv {
        padding: 3px;
    }

    .quizDiv {
        margin-bottom: 5px;
    }

    .dcQuestionSize {
        font-size: 16px;
    }

    .tab_container {
        margin: 5px auto;
    }

    .theme_tile {
        margin: 2px 0;
    }

    .themeRow { height: 90px; }

    .large_button {
        margin-bottom: 4px;
    }

}

@media (min-width: 480px) and (max-width: 768px) {

    .ulTop {
        margin: 10px 0 !important;
    }

    #mainDiv {
        width: 100%;
        margin: auto;
        padding: 0 2px 15px 2px;
        box-sizing: border-box;
    }

    #mainLeft {
        float: left;
        width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    #leftContent {
        float: left;
        width: 0;
        display: none;
    }

    #sideContent {
        float: right;
        width: 330px;
    }

    .popupCards {
        width: 480px;
    }

    .titleTD {
        display: inline;
    }

    .searchTD {
        display: none;
    }

    #userBtn {
        display: none;
    }

    #userBtn2 {
        display: inline-block;
    }

    .notMobile {
        display: none !important;
    }

    .mobileAndTabletDisplay {
        display: block !important;
    }

    .themeTitle {
        font-size: 22px;
    }

    .onlyLargeDesktopTD {
        display: none;
    }

    .mobileBlock, .responseBlock {
        height: 100%;
    }

    .responseLeftTD {

        height: 60px !important;
    }

    .question_check { width: 50px; height: 50px; line-height: 50px; }

    .questionTable { border-spacing: 7px 0; }

    .questionDiv {
        font-size: 18px;
        padding: 5px 15px;
    }

    .questionTopDiv {
        padding: 5px;
    }

    .quizDiv {
        margin-bottom: 15px;
    }

    .dcQuestionSize {
        font-size: 18px;
    }

    .tab_container {
        margin: 10px auto;
    }

    .theme_tile {
        margin: 5px 0;
    }

    .themeRow { height: 100px; }

}

@media (max-width: 768px) {
    .myImg { height: 150px; }
    #searchBtn { display: inline-block; }
    .footerLink { display: block; }
    .longQuestion { display: none !important; }
    .onlyMobileDisplay { display: block !important; }
    .dcTitle { font-size: 22px; }
    .desktop { display: none !important; }
    .desktopPaddingRight { padding-right: 0; }
    .themeBlock { display: block; width: 100%; }
    .l1topLeftBlock { display: block; width: 100%; }
    .l1topRightBlock { display: block; }
    .mobileBlock, .responseBlock { display: block; width: 100%; }
    .themeRow { margin-bottom: 0; border-radius: 0; }
    #sideContent { margin-left: 10px; background: #eeeeee; display: none; }
}

@media (min-width: 768px) and (max-width: 1135px) {

    .ulTop {
        margin: 10px 0 !important;
    }

    #mainDiv {
        width: 100%;
        margin: auto;
        padding: 0 0 15px 0;
    }

    #mainLeft {
        float: left;
        width: 100%;
    }

    #leftContent {
        float: left;
        width: 0;
        display: none;
    }

    #sideContent {
        float: right;
        width: 277px;
        margin-left: 3px;
    }

    .popupCards {
        width: 480px;
    }

    #userBtn {
        display: none;
    }

    #userBtn2 {
        display: inline-block;
    }

    .myImg { height: 200px; }

    .titleTD {
        display: inline;
    }

    .searchTD {
        display: none;
    }

    .notMobile {
        display: none !important;
    }

    .mobileAndTabletDisplay {
        display: block !important;
    }

    .themeTitle {
        font-size: 26px;
    }

    .dcTitle {
        font-size: 26px;
    }

    .onlyLargeDesktopTD {
        display: none;
    }

    .responseLeftTD {

        height: 60px !important;
    }

    .question_check { width: 50px; height: 50px; line-height: 50px; }

    .questionTable { border-spacing: 7px 0; }

    .questionDiv {
        padding: 5px 15px;
    }

    .questionTopDiv {
        padding: 5px;
    }

    .dcQuestionSize {
        font-size: 18px;
    }

    .l1topLeftBlock { width: 375px; }

    .themeRow { margin-bottom: 1px; height: 100px; }

}

@media (min-width: 1135px) {

    .ulTop {
        margin: 10px 0 20px 0 !important;
    }

    .topComponent {
        width: 1135px !important;

        position: relative !important;
        margin: 0 auto !important;
    }

    #mainDiv {
        width: 1135px;
        padding: 0 0 15px 0;
    }

    .popupCards {
        width: 480px;
    }

    #userBtn {
        display: none;
    }

    #userBtn2 {
        display: inline-block;
    }

    .myImg { height: 250px; }

    .titleTD {
        width: 200px;
        text-align: center;
    }

    .searchTD {
        width: 420px;
    }

    .notMobile {
        display: block;
    }

    .mobileAndTabletDisplay {
        display: none !important;
    }

    .onlyLargeDesktopTD {
        display: table-cell;
    }

    .themeTitle {
        font-size: 30px;
    }

    .dcTitle {
        font-size: 30px;
    }

    .responseLeftTD {

        height: 60px !important;
    }

    .question_check { width: 50px; height: 50px; line-height: 50px; }

    .questionTable { border-spacing: 7px 0; }

    .questionDiv {
        padding: 5px 15px;
    }

    .questionTopDiv {
        padding: 5px;
    }

    .questionBorder {
        border: 1px solid #f0f0f0;
    }

    .dcQuestionSize {
        font-size: 18px;
    }

    .l1topLeftBlock { width: 400px; }

    .themeRow { height: 125px; margin: 2px 2px 1px 2px; }

}

.ui-panel-inner {
    padding: 0 !important
}

@media (min-width: 768px) {
    #headerBtns { display: block; }
    #topRowBtns { display: none; }
    #searchBtn { display: none; }
    .footerLink { display: inline; }
    .longQuestion { display: block !important; }
    .onlyMobileDisplay { display: none !important; }
    .desktop { visibility: visible !important; }
    .mobileBlock { display: table-cell; width: 50%; height: 100%; }
    .responseBlock { display: block; width: 100%; height: 100%; }
    .quizDiv { margin-bottom: 25px; }
    .desktopPaddingRight { padding-right: 5px; }
    .themeBlock { display: inline-block; width: 350px; vertical-align: middle; }
    #suggestedThemes .centerContent { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    #suggestedThemes .themeBlock { display: block; width: 100%; }
    .tab_container { margin: 15px auto; }
    .theme_tile { margin: 10px 0; }
    .theme_text { max-width: 230px; }
    .l1topRightBlock { display: table-cell; }
    .l1topLeftBlock { display: table-cell; padding-right: 10px; }
    .themeRow { border-radius: 5px; }
}

/* --- Règles communes à tous les breakpoints (extraites des blocs responsives) --- */
.questionTable { margin: 4px auto; width: 100%; }
.game-in-progress { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dcQuestionTitleSize { font-size: 16px; }
.dcQuestionHintSize { font-size: 17px; opacity: 0.95; display: inline-block; padding-bottom: 3px }
.topContainer { margin: 0; }
#rankingBtn { display: inline-block; }
.notifMainDiv { display: block; }
.myImg { background: #ffffff; }
.question_check {
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    display: inline-block;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

/* =============================================================================
   4. HEADER & NAVIGATION
   ============================================================================= */

#titreQuizypedia {
    line-height: 1;
    display: inline-block;
    font-weight: 600;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: none;
    margin: 0;
}

#headerID {
    background: var(--quizy_gradient);
    border: 0 !important;
    min-height: 56px;
    position: relative;
    z-index: 1000;
}

a.noDecoration {
    text-decoration: none;
}

.ranking_link {
    text-decoration: underline dashed;
    color: #555 !important;
    font-weight: normal !important;
}

.footerLink {
    text-decoration: none;
    color: #1d8dd7 !important;
    font-size: 14px;
    padding: 5px 10px;
}

.topRightButtons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.largeBtn {
    padding: 4px !important;
    margin-top: 3px !important;
    margin-right: 3px !important;
    border: 0 solid !important;
}

.themeNavBtn {
    padding: 4px 20px 5px 20px !important;
    margin: 0 !important;
    border: 0 !important;
}

.searchPanelBtn { padding: 5px 10px 6px; }

.topLeft {
    position: absolute;
    left: 0;
    background: transparent !important;
}

.topRight {
    position: absolute;
    right: 0;
    background: transparent !important;
}

li.contentLi {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

li.titleLi {
    font-weight: bold;
    text-align: center !important;
}

p.liContent {
    font-size: 1em !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

p.liContentBold {
    font-size: 1em !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-weight: bold !important;
}

.liPadding {
    border-radius: 0 !important;
    padding: 0.5em;
}

/* =============================================================================
   8. COMPOSANTS — Quiz & Questions
   ============================================================================= */

p.chronoP {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.countdown-number {
    font-size: 90px !important;
    font-weight: 900 !important;
    color: var(--quizy-intermediate-blue);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: countdownJump 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    line-height: 1;
}

.countdown-message {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #333;
    margin-top: 10px;
    animation: fadeInSlideUp 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    font-family: 'Quicksand', sans-serif;
}

@keyframes countdownJump {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    15% {
        transform: scale(1.1);
        opacity: 1;
    }
    30% {
        transform: scale(1);
        opacity: 1;
    }
    85% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes fadeInSlideUp {
    0% {
        transform: translateY(15px);
        opacity: 0;
    }
    15% {
        transform: translateY(0);
        opacity: 1;
    }
    85% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-5px);
        opacity: 0;
    }
}

p.failedChrono {
    height: 250px;
    text-align: center;
    font-weight: bold !important;
    padding-top: 120px;
}

td.nameTd {
    padding: 10px 5px 10px 0;
    text-align: right;
    color: #0662a8;
    font-style: italic;
}

td.valueTd {
    padding: 10px 0 10px 20px;
    text-align: left;
}

span.name {
    font-style: italic;
    padding: 2px 0 3px 0;
}

span.value {
    padding: 2px 0 3px 0;
    font-weight: 700;
}

.point {
    background: #dee2f0;
    width: 33px;
    height: 33px;
    padding: 0;
    margin: 3px 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    transition: background 0.35s ease;
    line-height: 1;
}

.noHorizontalBorder {
    border-bottom: 0;
    border-top: 0 !important;
}

#topRowBtns {
    background: #1d8dd7 !important;
    border-top: 1px solid #bbbbbb;
}

a.topRowBtn {
    padding: 5px 0 !important;
    width: 24%;
    margin: 0 0 0 -4px !important;
    border: 0 solid !important;
}

a.topRowBtnFirst {
    padding: 5px 0 !important;
    width: 24%;
    margin: 0 !important;
    border: 0 solid !important;
}

a.liItem {
    padding-left: 8px !important;
}

.myFont {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300 !important;
}

.myFontTitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400 !important;
}

.myFontTitleBold {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700 !important;
}

.myFont2 {

    font-family: var(--text-font), sans-serif;
    font-weight: 400 !important;
}

.myFont2Light {
    font-family: var(--text-font), sans-serif;
    font-weight: 200 !important;
}

.myFont2Bold {

    font-family: var(--title-font), sans-serif;
    font-weight: 700;
}

.myFontMild {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400 !important;
}

.myFontBold {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700 !important;
}

.pageTitle {
    font-style: italic;
    font-size: 20px;
    padding: 10px 0;
    background: #eeeeee;
}

.myColor { color: #389ae5 !important; }

.noVerticalPadding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.noHorizontalPadding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.noVerticalMargin {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.noHorizontalMargin {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.centerContent { text-align: center !important; }

.ddj-actions-spacing {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ddj-actions-spacing > a {
    display: inline-block;
    flex: 0 0 350px;
}

.qp-card .themeBlock {
    display: block;
    width: 100%;
}

.fullWidth { width: 100%; }

.noWrap { white-space: normal !important; }

.onlyBottomBorder {
    border-width: 0 0 1px 0 !important;
    border-style: solid !important;
    border-color: #22396F !important;
}

.reducedHorizontalPadding {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.noLeftPadding { padding-left: 0; }

.menuImg {
    padding-left: 2px;
    padding-right: 5px;
    vertical-align: middle;
}

p.panelText {
    text-align: justify;
    padding: 5px;
    margin: 0;
}

.size32 { font-size: 32px !important; }

.size28 { font-size: 28px !important; }

.size24 { font-size: 24px !important; }

.size20 { font-size: 20px !important; }

.size18 { font-size: 18px !important; }

.size16 { font-size: 16px !important; }

.size14 { font-size: 14px !important; }

.size12 { font-size: 12px !important; }

.searchButton {
    margin: 0;
    padding: 7px 11px;
    border-radius: 5px;
    border: none;
    font-weight: 700;
}

.btnTD {
    padding-top: 0;
    padding-bottom: 0;
}

.responseRightTD {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.bgQuestion { background: #f9f9f9; }

.bgResponse_off { background: #efefef; }

.color_response_off { color: #666666; }

.color, .color0, .colorv3 { color: #444444 !important; }
.colorGrey { color: #555555 !important; }
.colorQPBlue { color: #2B4D87 !important; }
.colorQPBlue2 { color: #22396F !important; }
.colorOption, .colorOption2 { color: #222222 !important; }

.colorWhite { color: #ffffff !important; }

.colorBlack { color: #000000 !important; }

.colorUserRanking { color: #17B8C5; }

.color1 { color: #3c5cc9 !important; }
.color2 { color: #FF7F00 !important; }
.color3 { color: #58AA58 !important; }
.color4 { color: #389AE5 !important; }
.color5 { color: #A0522D !important; }
.color6 { color: #029D74 !important; }
.color7 { color: #03B4C8 !important; }
.color8 { color: #FD6535 !important; }

/* =============================================================================
   14. COULEURS, BACKGROUNDS & UTILITAIRES
   ============================================================================= */

.bgcolor, .bgcolor0, .bgcolorv3, .bgcolor0v3 { background: #444444 !important; }
.bgcolorOption, .bgcolorRankingDefault { background: #e9e9e9 !important; }
.bgcolorOptionWhite { background: #ffffff !important; }
.bgcolorRanking1 { background: #f7ee00 !important; }
.bgcolorRanking2 { background: #c5bdb6 !important; }
.bgcolorRanking3 { background: #d38644 !important; }
.bgcolorQPBlue { background: #2B4D87 !important; }
.bgcolorQPBlue2 { background: #22396F !important; }
.bgcolorRight { background: var(--color-right) !important; }
.bgcolorWrong { background: var(--color-wrong) !important; }

.bgcolor1v3 { background: #115293 !important; }
.bgcolor2v3 { background: #ff9000 !important; }
.bgcolor3v3 { background: #4abd39 !important; }
.bgcolor4v3 { background: #12b4ea !important; }
.bgcolor5v3 { background: #963f05 !important; }
.bgcolor6v3 { background: #029D74 !important; }
.bgcolor7v3 { background: #f1c40f !important; }
.bgcolor8v3 { background: #e94826 !important; }

.color1v3 { color: #115293 !important; }
.color2v3 { color: #ff9000 !important; }
.color3v3 { color: #4abd39 !important; }
.color4v3 { color: #12b4ea !important; }
.color5v3 { color: #963f05 !important; }
.color6v3 { color: #029D74 !important; }
.color7v3 { color: #f1c40f !important; }
.color8v3 { color: #e94826 !important; }

.bordercolor1v3 { border-left: 10px solid #115293 !important; }

.theme_tile_1:hover, .theme_tile_2:hover, .theme_tile_3:hover, .theme_tile_4:hover,
.theme_tile_5:hover, .theme_tile_6:hover, .theme_tile_7:hover, .theme_tile_8:hover {
    color: #fff !important;
}

.theme_tile_1:hover { background: #115293 !important; }

.bordercolor2v3 { border-left: 10px solid #ff9000 !important; }
.theme_tile_2:hover { background: #ff9000 !important; }

.bordercolor3v3 { border-left: 10px solid #4abd39 !important; }
.theme_tile_3:hover { background: #4abd39 !important; }

.bordercolor4v3 { border-left: 10px solid #12b4ea !important; }
.theme_tile_4:hover { background: #12b4ea !important; }

.bordercolor5v3 { border-left: 10px solid #963f05 !important; }
.theme_tile_5:hover { background: #963f05 !important; }

.bordercolor6v3 { border-left: 10px solid #029D74 !important; }
.theme_tile_6:hover { background: #029D74 !important; }

.bordercolor7v3 { border-left: 10px solid #f1c40f !important; }
.theme_tile_7:hover { background: #f1c40f !important; }

.bordercolor8v3 { border-left: 10px solid #e94826 !important; }
.theme_tile_8:hover { background: #e94826 !important; }

.bordercolor1v3_1px, .bordercolor2v3_1px, .bordercolor3v3_1px, .bordercolor4v3_1px,
.bordercolor5v3_1px, .bordercolor6v3_1px, .bordercolor7v3_1px, .bordercolor8v3_1px {
    border-width: 1px !important;
    border-style: solid !important;
}
.bordercolor1v3_1px { border-color: #115293 !important; }
.bordercolor2v3_1px { border-color: #ff9000 !important; }
.bordercolor3v3_1px { border-color: #4abd39 !important; }
.bordercolor4v3_1px { border-color: #12b4ea !important; }
.bordercolor5v3_1px { border-color: #963f05 !important; }
.bordercolor6v3_1px { border-color: #029D74 !important; }
.bordercolor7v3_1px { border-color: #f1c40f !important; }
.bordercolor8v3_1px { border-color: #e94826 !important; }

.bordercolor1v3_search_result, .bordercolor2v3_search_result,
.bordercolor3v3_search_result, .bordercolor4v3_search_result,
.bordercolor5v3_search_result, .bordercolor6v3_search_result,
.bordercolor7v3_search_result, .bordercolor8v3_search_result {
    border-width: 1px 1px 1px 10px;
    border-style: solid;
}

.bordercolor1v3_search_result { border-color: #115293 !important; }
.bordercolor2v3_search_result { border-color: #ff9000 !important; }
.bordercolor3v3_search_result { border-color: #4abd39 !important; }
.bordercolor4v3_search_result { border-color: #12b4ea !important; }
.bordercolor5v3_search_result { border-color: #963f05 !important; }
.bordercolor6v3_search_result { border-color: #029D74 !important; }
.bordercolor7v3_search_result { border-color: #f1c40f !important; }
.bordercolor8v3_search_result { border-color: #e94826 !important; }

.bgcolor1Degra { background: linear-gradient(to bottom, #3c5cc9, #41afff) !important; }
.bgcolor2Degra { background: linear-gradient(to bottom, #ff6300, #fcb334) !important; }
.bgcolor3Degra { background: linear-gradient(to bottom, #27ae60, #2adb75) !important; }
.bgcolor4Degra { background: linear-gradient(to bottom, #389AE5, #4fd4f8) !important; }
.bgcolor5Degra { background: linear-gradient(to bottom, #983e13, #ed6e32) !important; }
.bgcolor6Degra { background: linear-gradient(to bottom, #029D74, #16e1ac) !important; }
.bgcolor7Degra { background: linear-gradient(to bottom, #03B4C8, #2be9ff) !important; }
.bgcolor8Degra { background: linear-gradient(to bottom, #fd5135, #f88d16) !important; }

.bbcolor, .bbcolor0, .bbcolorWhite, .bbcolorOption, .bbcolorRight, .bbcolorWrong,
.bbcolorRanking1, .bbcolorRanking2, .bbcolorRanking3, .bbcolorRankingDefault {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
}
.bbcolor, .bbcolor0 { border-bottom-color: #444444 !important; }
.bbcolorWhite { border-bottom-color: #ffffff !important; }
.bbcolorOption { border-bottom-color: #e9e9e9 !important; }
.bbcolorRight { border-bottom-color: #3CB371 !important; }
.bbcolorWrong { border-bottom-color: #EE5C42 !important; }
.bbcolorRanking1 { border-bottom-color: #f7ee00 !important; }
.bbcolorRanking2 { border-bottom-color: #c5bdb6 !important; }
.bbcolorRanking3 { border-bottom-color: #d38644 !important; }
.bbcolorRankingDefault { border-bottom-color: #d9d9d9 !important; }


.borderColorNotif { border: 1px solid #1d8dd7 !important; }

.authorLink {
    font-weight: 300 !important;
    text-decoration: none;
}

.authorLink:hover {
    text-decoration: underline;
}

.linkTitle {
    font-weight: bold !important;
    text-decoration: none;
    color: #ffffff !important;
}

.linkTitle:hover {
    text-decoration: underline;
}

.underlineOnHover { text-decoration: none; }

.underlineOnHover:hover {
    text-decoration: underline;
}

/* Couleur commune #fff à tous les globalLink1-8 au hover */
.globalLink:hover td, .globalLink:hover .authorLink,
.globalLink1:hover td, .globalLink1:hover .authorLink,
.globalLink2:hover td, .globalLink2:hover .authorLink,
.globalLink3:hover td, .globalLink3:hover .authorLink,
.globalLink4:hover td, .globalLink4:hover .authorLink,
.globalLink5:hover td, .globalLink5:hover .authorLink,
.globalLink6:hover td, .globalLink6:hover .authorLink,
.globalLink7:hover td, .globalLink7:hover .authorLink,
.globalLink8:hover td, .globalLink8:hover .authorLink {
    color: #ffffff !important;
    text-shadow: none;
}

.globalLink:hover td, .globalLink:hover .authorLink { background: #444444 !important; }

.globalLinkOption:hover td, .globalLinkOption:hover .authorLink,
.globalLinkOptionWhite:hover td, .globalLinkOptionWhite:hover .authorLink {
    color: #555555 !important;
    text-shadow: none;
}
.globalLinkOption:hover td, .globalLinkOption:hover .authorLink { background: #e9e9e9 !important; }
.globalLinkOptionWhite:hover td, .globalLinkOptionWhite:hover .authorLink { background: #ffffff !important; }

.globalLink1:hover td, .globalLink1:hover .authorLink { background: #3c5cc9 !important; }
.globalLink2:hover td, .globalLink2:hover .authorLink { background: #FF7F00 !important; }
.globalLink3:hover td, .globalLink3:hover .authorLink { background: #58AA58 !important; }
.globalLink4:hover td, .globalLink4:hover .authorLink { background: #389AE5 !important; }
.globalLink5:hover td, .globalLink5:hover .authorLink { background: #A0522D !important; }
.globalLink6:hover td, .globalLink6:hover .authorLink { background: #029D74 !important; }
.globalLink7:hover td, .globalLink7:hover .authorLink { background: #03B4C8 !important; }
.globalLink8:hover td, .globalLink8:hover .authorLink { background: #FD6535 !important; }

.ui-filterable div {
    margin: 0 !important;
}

.ui-filterable input {
    font-weight: 700;
}

span.uiOption {
    padding: 4px;
}

span.selectedOption {
    border: 1px #aaaaaa solid;
    color: #888888;
    background: #e9e9e9;
}

span.unselectedOption {
    border: 1px #e9e9e9 solid;
    color: #888888;
    background: #f5f5f5;
}

.pTitle {

    font-size: 16px !important;
    font-weight: bold !important;
    color: #1d8dd7;
}

.pText {
    font-size: 16px !important;
    text-align: justify;
    padding-bottom: 15px;
}

.justify { text-align: justify; }

.tips {
    padding: 15px;
    font-size: 14px !important;
    text-align: justify;
    border: 1px dotted #1d8dd7;
}

.tipsTitle {
    font-weight: bold;
    color: #1d8dd7;
}

.explanationsTD {
    text-align: justify;
    padding-left: 10px;
    padding-bottom: 15px;
}

a.simpleLink {
    text-decoration: none;
    color: #1d8dd7;
}

.notif-link {
    text-decoration: underline !important;
    color: #0000ee !important;
}

.notif-link:hover {
    color: #00008b !important;
}

.no-hover-parent:hover, .no-hover-parent *:hover {
    background: transparent none !important;
}

.notif-btn {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--quizy_gradient);
    color: white !important;
    text-align: center;
    padding: 10px;
    border-radius: 0;
    text-decoration: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease-in-out;
}

.notif-btn:hover {
    opacity: 0.8;
    text-decoration: none;
    color: white !important;
}

.notifCount {
    border-radius: 10px;
    background: #EC594E;
    color: #ffffff;
    display: inline-block;
    padding: 5px 10px;
}

.disk, .disk1, .disk2, .disk3, .disk4, .disk5, .disk6, .disk7, .disk8 {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    border-width: 1px;
    border-style: solid;
    display: inline-block;
    margin-right: 4px;
}

.disk { border-color: #999999; }
.disk1, .disk5, .disk6, .disk8 { border-color: #bbbbbb; }
.disk2, .disk3, .disk4, .disk7 { border-color: #666666; }

.onlineDisk {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    display: inline-block;
    margin-right: 4px;
    background: #12a912;
}

.diskRecord {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    border: 1px solid #f8e40b !important;
    display: inline-block;
    margin-right: 4px;
}

.emptyDisk { background: none; }

.goldDisk { background: #f8e40b; }

.silverDisk { background: #bbbbbb; }

.bronzeDisk { background: #CD853F; }

.whiteDisk { background: #ffffff; }

.blackDisk {
    background: #000000;
    border: 1px solid #999999;
}

.waterDisk { background: #84dfe9; }

.noScore { color: #ffffff; }

.goldScore { color: #f8e40b; }

.silverScore { color: #bbbbbb; }

.bronzeScore { color: #CD853F; }

.whiteScore { color: #ffffff; }

.blackScore { color: #000000; }

.waterScore { color: #84dfe9; }

.emptyDiskv3 {
    background: #e9e9e9;
    color: #444444;
}

.goldDiskv3 {
    background: #f8e40b;
    color: #444444;
}

.silverDiskv3 {
    background: #bbbbbb;
    color: #ffffff;
}

.bronzeDiskv3 {
    background: #CD853F;
    color: #ffffff;
}

.whiteDiskv3 {
    background: #ffffff;
    color: #444444;
    border: 3px solid #444444;
}

.blackDiskv3 {
    background: #333333;
    color: #eeeeee;
}

.waterDiskv3 {
    background: #84dfe9;
    color: #000000;
}

.quizRecordv3 { border: 4px solid #f8d40b; }

.emptyDiskv3Ribbon, .goldDiskv3Ribbon, .silverDiskv3Ribbon,
.bronzeDiskv3Ribbon, .whiteDiskv3Ribbon, .waterDiskv3Ribbon { color: #444444; }
.emptyDiskv3Ribbon { background: #e9e9e9; }
.goldDiskv3Ribbon { background: #f8e40b; }
.silverDiskv3Ribbon { background: #bbbbbb; }
.bronzeDiskv3Ribbon { background: #CD853F; }
.whiteDiskv3Ribbon { background: #ffffff; }
.blackDiskv3Ribbon { background: #333333; color: #eeeeee; }
.waterDiskv3Ribbon { background: #84dfe9; }
.quizRecordv3Ribbon { color: #f8d40b !important; }

.bgcolorCell1 { background: #1d8dd7 !important; }

.bgcolorCell2 { background: #1c69ee !important; }

.bgcolorCell3 { background: #044FB1 !important; }

.bgcolorCell4 { background: #09308D !important; }

.themeResult1Row, .themeResult2Rows, .themeResult3Rows {
    position: absolute;
    line-height: 7px;
    width: 30px;
    top: 0;
    left: 2px;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.themeResult1Row { height: 22px; }
.themeResult2Rows { height: 30px; }
.themeResult3Rows { height: 43px; }

.themeTitle { padding-left: 15px; }

.messageBody, .messageBodyQuote {
    font-size: 14px !important;
    white-space: normal !important;
}

.searchNavBtn { width: 100px; }

.noRightMargin { margin-right: 0; }

.optionTable, .propTable {
    vertical-align: middle;
    height: 50px;
    width: 100%;
}

.optionTable {
    border-collapse: collapse;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.15s ease;
}
.optionTable.optionCursor:hover {
    background: #d5d8f0;
}
.optionTable.optionCursor:active {
    background: #d6dbf2;
    box-shadow: none;
}

.ranking_table {
    width: 100%;
    padding: 4px 0;
}

.ranking_table > div {
    display: grid;
    grid-template-columns: 50px 1fr minmax(0, 45%);
    align-items: center;
    min-height: 48px;
    gap: 0 8px;
}

.propTable {
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-spacing: 0;
    border-color: #999999;
    border-collapse: separate;
}

.themeTable {
    vertical-align: middle;
    height: 70px;
    width: 100%;
    border-collapse: collapse
}

.themeTDLeft {
    height: 100%;
    border-radius: 15px;
}

.themeTDLeftSmallPadding {
    height: 100%;
    padding: 0 0 0 10px;
}

.themeTDMiddle {
    height: 100%;
    width: 30px;
    padding: 0 !important;
}

.diag, .diagLeft, .diag2 {
    transform: skew(-15deg);
    height: 100%;
    width: 30px;
    position: relative;
    top: 0;
}
.diag { right: -14px; }
.diagLeft { left: -14px; }
.diag2 { right: -16px; }

.themeTDRight, .themeTDRightCenter {
    height: 100%;
    width: 70px;
    padding: 0 !important;
    text-align: center;
}
.themeTDRight { vertical-align: bottom; }
.themeTDRightCenter { vertical-align: center; }

.optionTDRight, .optionTDRightCenter {
    height: 100%;
    width: 50px;
    padding: 0 !important;
    vertical-align: center;
    text-align: center;
}

.cardSelDiv {
    padding: 12px 0;
    border-bottom: 1px solid #cccccc;
}

.cardEditorName {
    font-style: italic;

    padding-top: 10px;
    padding-bottom: 10px;
    text-align: right;
    padding-right: 5px;
    color: #389ae5;
}

.defaultCursor { cursor: default; }

.optionCursor { cursor: pointer; }

.resultTD { border-radius: 10px; }

.noMobileBorderSpacing { border-spacing: 0; }
/* Fix Chromium: percentage min-width unreliable on <td>; width is honored consistently */
table.noMobileBorderSpacing td.desktop { width: 35%; }

.fb-like {
    height: 20px;
    overflow: hidden;
}

.opacityLink {
    text-decoration: none;
    color: inherit !important;
    font-weight: inherit !important;
}

.opacityLink:hover {
    color: #000 !important;
}

.opacityLight { opacity: 0.8; }

.themeRowTitle {
    padding: 10px;
    text-align: center;
}

.themeRowLeft, .themeRowMiddle, .themeRowRight { height: 34px; }
.themeRowLeft {
    text-align: left;
    font-size: 14px;
    width: 120px;
    padding: 0 0 5px 15px;
}
.themeRowMiddle {
    text-align: center;
    padding-bottom: 5px;
}
.themeRowRight {
    text-align: right;
    width: 120px;
    padding: 0 15px 5px 0;
}

.imgTitle {
    width: 100%;
    height: 50px;
    opacity: 0.7;
}

.linkOpacity { opacity: 1; }

.linkOpacity:hover {
    opacity: 0.8;
}

.linkOpacityOff { opacity: 0.6; }

.linkOpacityOff:hover {
    opacity: 1;
}

.bgcolorGrey0 { background: #888888 !important; }
.bgcolorGrey1 { background: #999999 !important; }
.bgcolorGrey2 { background: #aaaaaa !important; }
.bgcolorGrey3 { background: #bbbbbb !important; }
.bgcolorCancel { background: #9e9e9e !important; }

.box { position: relative; }

.ribbon {
    position: absolute;
    left: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.ribbon span {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(-45deg);

    width: 100px;
    display: block;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    left: -21px;
}

.ribbon span::before, .ribbon span::after {
    content: "";
    position: absolute;
    top: 100%;
    z-index: -1;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #777777;
}
.ribbon span::before {
    left: 0;
    border-left: 3px solid #777777;
    border-right: 3px solid transparent;
}
.ribbon span::after {
    right: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid #777777;
}

@media (max-width: 320px) {
    .hiddenSmallMobile {
        display: none;
    }
}

@media (min-width: 321px) {
    .hiddenSmallMobile {
        display: block;
    }
}

.resultContainer {
    width: 80%;
    padding-top: 20px;
    border-radius: 25px;
    margin: 0 auto 10px auto;
    text-align: center;
}

.resultH1 {
    padding: 20px;
    color: #fff;
}

.noResult .resultContainer {
    background: #666666;
}

.noResult .resultH1 {
    background: #90c9ed;
}

.noResult .arrowLeft, .noResult .arrowRight {
    border-top: 10px solid #67a7dd;
}

.resultDraw .resultContainer {
    background: #22396F;
}

.resultLoss .resultContainer {
    background: #D53737;
}

.resultDraw .resultH1, .resultLoss .resultH1 {
    background: #e9e9e9;
}

.resultDraw .arrowLeft, .resultDraw .arrowRight,
.resultLoss .arrowLeft, .resultLoss .arrowRight {
    border-top: 10px solid #aaaaaa;
}

.cardTitle {
    border-radius: 5px 5px 0 0;
    padding: 10px 5px;
}

.qpButton {
    border-radius: 5px;
    border: none !important;
}

.qpButton-disabled, .qpButton-disabled:hover {
    opacity: 0.2 !important;
    cursor: default;
}

.leftContent { text-align: left; }

.menuItem { padding: 15px; }

.hidden { display: none !important; }

.index_header {
    line-height: 1.4em;
    display: inline;
    font-weight: bold;
    font-size: 1.2em;
    color: #2B4D87;
    text-shadow: none;
}

.tile_container {
    text-align: center;
    font-size: 0;
}

.tile_container a {
    text-decoration: none;
}

.notif_count {
    background: #f08f28;
    border-radius: 10px;
    color: #ffffff;
    display: inline-block;
    padding: 5px 10px;
}

.tile {
    color: #fff;
    background: #1d7eb3;
    padding: 0 10px;
    display: inline-block;
    width: 300px;
    height: 160px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    margin: 5px;
}

.tile_title {
    font-size: 26px;
    text-align: left;
    margin-bottom: 10px;
    font-family: var(--title-font), sans-serif;
}

.tile_subtitle {
    font-size: 14px;
    text-align: right;
    margin-top: 20px;
    font-family: var(--text-font), sans-serif;
}

.tile_icon {
    font-size: 56px;
    text-align: center;
}

.no_background { background: none !important; }

.tile_2 {
    color: #fff;

    background: var(--quizy_gradient);
    display: inline-block;
    width: 310px;
    height: 80px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    margin: 5px;
    font-size: 0;
    text-align: left;
    vertical-align: top;
    border-radius: 15px;
}

.tile_title_2 {
    font-size: 20px;
    text-align: left;
    padding: 10px 0 5px 0;
    font-weight: bold;
    font-family: var(--title-font), sans-serif;
}

.tile_subtitle_2 {
    font-size: 14px;
    text-align: left;
    opacity: 0.8;
    font-family: var(--text-font), sans-serif;
}

.tile_icon_2 {
    font-size: 56px;
    text-align: center;
    display: inline-block;
    width: 70px;
    padding-top: 0;
}

.tile_icon_2bis {
    font-size: 48px;
    text-align: center;
    display: inline-block;
    width: 70px;
    padding-top: 5px;
}

.tile_text_2 {
    display: inline-block;
    width: 230px;
    vertical-align: top;
    padding-left: 10px;
}

.tile_3 {
    color: #fff;
    background: var(--quizy_gradient);
    display: inline-block;
    width: 310px;
    height: 100px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    margin: 5px;
    font-size: 0;
    text-align: left;
    vertical-align: top;
    border-radius: 15px;
    padding: 5px;
}

.tile_title_3 {
    font-size: 16px;
    text-align: center;
    padding-bottom: 10px;
    font-weight: bold;
    font-family: var(--title-font), sans-serif;
}

.tile_subtitle_3 {
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
    font-family: var(--text-font), sans-serif;
}

.tile_icon_3 {
    font-size: 25px;
    text-align: center;
    display: inline-block;
    width: 40px;
    margin-top: 20px;
    border-radius: 20px;
}

.tile_icon_3bis {
    font-size: 48px;
    text-align: center;
    display: inline-block;
    width: 70px;
    padding-top: 15px;
}

.tile_text_3 {
    display: inline-block;
    width: 256px;
    vertical-align: top;
}

.theme_block_bookmark .small_cup {
    padding: 0;
}

.theme_separator {
    border: solid 1px #ddd;
    width: 90%;
}

.theme_title_link {
    color: #757171FF !important;
    text-decoration: none;
    font-weight: bold;
}

.theme_title_link:hover {
    color: #555 !important;
    text-decoration: underline;
}

.button_link { text-decoration: none; }

.card_button {
    color: #fff;
    width: 40px;
    font-size: 24px;
    border-radius: 20px;
    height: 40px;
    cursor: default;
    line-height: 40px;
    margin: 0 8px;
    display: inline-block;
}

.card_button_disabled { opacity: 0.4; }

.tab {
    text-align: center;
    font-family: var(--title-font), sans-serif;
    display: inline-block;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
}

.tab_container {
    width: 98%;
    border-bottom: 3px solid var(--quizy-intermediate-blue);
    text-align: center;
}

.tab_selected {
    background: var(--quizy-intermediate-blue);
    color: #fff;
}

.tab_unselected {
    background: #fff;
    color: var(--quizy-intermediate-blue);
}

.theme_cups {
    display: inline-block;
    border-radius: 10px;
    padding: 2px 5px;
    font-size: 20px;
    background: #777;
}

.theme_cup { border-radius: 15px; }

.small_cup {
    padding: 0 2px !important;
    display: inline-block;
    margin: 0 1px;
}

.small_cup_record { border: 2px solid #e9d600fa; }

.quiz-best-record-highlight {
    border: 3px solid #e9d600fa;;
    border-radius: 50%;
    padding: 5px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    line-height: 1;
    vertical-align: middle;
}

.empty_cup {
    color: #fff !important;;
    opacity: 0.5;
}

.gold_cup { color: #e9d600fa !important; }

.silver_cup { color: #d2d1d1 !important; }

.bronze_cup { color: #C29264 !important; }

.white_cup { color: #ffffff !important; }

.black_cup { color: #000000 !important; }

.water_cup { color: #84dfe9 !important; }

.theme_icon_container_theme_tile {
    margin-left: 5px;
    width: 60px;
    height: 60px;
    text-align: center;
    border-radius: 60px;
    vertical-align: middle;
    display: inline-block;
}

.theme_icon_container_theme_tile_bookmark {
    margin-right: 5px;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 15px;
    display: inline-block;
    font-size: 22px;
    color: #fff;
}

.theme_icon_container_small_disk {
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 20px;
    display: inline-block;
    margin-left: 10px;
}

.result_icon_container {
    width: 60px;
    height: 60px;
    text-align: center;
    border-radius: 30px;
    display: inline-block;
}

.result_icon { padding: 14px; }

.theme_icon_small_disk { padding-top: 6px; }

.theme_icon_large_disk { padding-top: 14px; }

.category_icon_container_category_tile {
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 20px;
    vertical-align: middle;
    display: inline-block;
}

.category_icon_container_small_tile {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    padding: 1px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.theme_page_title_container {
    text-align: center;
    width: 100%;
    margin: 15px 0 0 0;
    border-radius: 0;
}

.theme_page_text {
    margin-bottom: 10px;
    color: #333;
}

.icon_duel_result { margin-right: 10px; }

/* =============================================================================
   5. FOOTER
   ============================================================================= */

.qp-footer {
    background: #ffffff;
    border-top: 1px solid #ccc;
    padding: 10px 50px;
    margin-top: 50px;
    clear: both;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(20px, 8vw, 150px);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
    text-align: left;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.footer-link:hover {
    color: #3498db;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.kofi-button-container { margin-top: 10px; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* Responsiveness for footer */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-link {
        justify-content: center;
    }
}

.quizy_gradient { background: var(--quizy_gradient) !important; }

.quizy_gradient_2, .quizy_gradient_draw {
    background: linear-gradient(45deg, #aaa, #666) !important;
}

.quizy_gradient_3 { background: var(--quizy_gradient_3) !important; }
.quizy_gradient_loss { background: linear-gradient(45deg, #e18383, #b01e0f); }
.quizy_gradient_win { background: linear-gradient(45deg, #90d278, #358a1d); }

.bookmark_button {
    color: #fbc905 !important;
    border: none;
    background: #fff;
    border-radius: 16px;
    height: 35px;
    width: 35px;
    padding: 1px 4px;
}

.bookmark_button i {
    font-size: 22px;
}

.td_opponent_name {
    width: 160px;
    vertical-align: middle;
}

.td_opponent_icon { width: 30px; }

.div_opponent_name {
    width: 150px;
    height: 70px;
    border-radius: 15px;
    padding: 5px;
    display: inline-block;
}

.opacity05 { opacity: 0.5; }

.win_bg { background: #d4f7d4 !important; }

.loss_bg {
    background: #f7e1e1 !important;
    font-style: italic;
}

.opponent_tile {
    background: #fff;
    border: 2px solid #fff;
    border-radius: 15px;
    padding: 5px;
    margin: 5px;
    cursor: default;
    text-align: left;
}

.opponent_tile_selected { border: 2px solid #555; }

.opponent_tile_disabled { opacity: 0.7; }

.opponent_name {
    display: inline-block;
    margin-right: 20px;
}

.opponent_results {
    display: inline-block;
    margin-left: 5px;
}

.opponent_message {
    font-style: italic;
    font-size: 14px;
}

.opponent_status {
    font-style: italic;
    display: inline-block;
    font-size: 14px;
}

.opponent_point {
    display: inline-block;
    margin: 3px 0;
}

.opponent_point_text { font-size: 14px; }

.opponent_selection_icon {
    border-radius: 18px;
    width: 25px;
    height: 25px;
    font-size: 14px;
    line-height: 25px;
    display: inline-block;
    text-align: center;
    margin-right: 5px;
}

.bg_problem { background: #dfc4c4; }

.color_problem { color: #555; }

.problem-button-wrapper {
    margin: 20px 0;
    text-align: center;
}

.quiz_trophy {
    padding: 7px 0 0 1px;
    border-radius: 20px;
}

.quizy_border_1px { border: 1px solid var(--question_background); }

.explanations_item { font-weight: normal !important; }

.ranking_nav_button {
    color: #555;
    cursor: pointer;
}

.ranking_cell_left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking_cell_center {
    min-width: 0;
    text-align: left;
}

.ranking_cell_right {
    padding-right: 10px;
    text-align: right;
}

.ranking_name_cell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking_name_cell > a {
    opacity: 0.7;
}

.res_main_msg {
    font-weight: bold;
    padding: 15px;
    border-radius: 15px;
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
    display: inline-block;
    min-width: 290px;
}

.sub_res {
    margin: 10px 15px 0 15px;
    display: inline-block;
}

.res_icon {
    opacity: 0.5;
    padding-right: 15px;
}

.res_icon_no_padding {
    opacity: 0.5;
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.res_sub_msg {
    background: var(--quizy_gradient_3);
    display: inline-block;
    border-radius: 15px;
    font-size: 18px;
    padding: 10px;
    margin: 3px;
    color: #555;
    font-weight: bold;
    min-width: 90px;
    font-family: var(--text-font), sans-serif;
}

.header_grey { background: #ddd !important; }

.check_unknown { background: #ccc; }

.check_right_not_selected { background: var(--question_background); }

.question_proposition { display: inline-block; }

.border_wrong {
    border: var(--response-border-width) solid var(--color-wrong) !important;
    background: var(--color-other-responses) !important;
    opacity: 1 !important;
}

.border_right { border: var(--response-border-width) solid var(--color-right) !important; }

.border_invalid_proposition {
    border: var(--response-border-width) solid var(--color-other-responses);
    background: var(--color-other-responses) !important;
}

.border_unknown { border: var(--response-border-width) solid #f0f1f8; }

.bgResponse { background: #f0f1f8; }

.question_icon {
    font-size: 20px;
    line-height: 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    margin: 0;
    display: inline-block;
    flex-shrink: 0;
}

.notif_bar {
    background: var(--quizy_gradient_bottom);
    padding: 8px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.notif_bar_content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.notif_bar a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.notif_bar a:hover {
    opacity: 0.9;
}

/* MasterQuiz records grid */
.mq-records-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .mq-records-grid {
        grid-template-columns: 1fr;
    }
}

.mq-record-card {
    background: #f6f8fd;
    border: 1px solid #e4e9f5;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mq-record-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--title-font);
    font-size: 15px;
    font-weight: 700;
    color: #3a4a6a;
}

.mq-record-card__header i {
    font-size: 15px;
    color: #7a8aaa;
    width: 16px;
    text-align: center;
}

.mq-record-card__score {
    color: var(--quizy-intermediate-blue);
    font-weight: 800;
    font-size: 18px;
    font-family: var(--title-font);
}

.mq-record-card__score small {
    font-size: 13px;
    font-weight: 500;
    color: #7a8aaa;
}

.mq-record-card__user {
    font-size: 14px;
    font-weight: 500;
    color: #7a8aaa;
}

.mq-record-card--empty {
    color: #7a8aaa;
    font-style: italic;
    font-size: 13px;
}

.mq_results_details {
    font-family: var(--text-font), sans-serif;
    font-size: 15px;
    margin: 12px 0 0 0;
}

.duel-cmp-header {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 14px;
    color: #3a4a6a;
    border-bottom: 2px solid #e4e9f5;
}

.duel-cmp-header > span:first-child {
    text-align: right;
}

.duel-cmp-header > span:nth-child(2) {
    text-align: center;
    color: #8a96b0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
}

.duel-cmp-header > span:last-child {
    text-align: left;
}

.duel-cmp-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eef1f8;
}

.duel-cmp-row:last-child {
    border-bottom: none;
}

.duel-cmp-row__label {
    text-align: center;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    color: #8a96b0;
    letter-spacing: 0.5px;
}

.duel-cmp-row__val--opponent {
    text-align: right;
    font-weight: 600;
    color: #3a4a6a;
    padding-right: 8px;
}

.duel-cmp-row__val--user {
    text-align: left;
    font-weight: 600;
    color: #3a4a6a;
    padding-left: 8px;
}

.duel-cmp-row__val--better { color: var(--quizy-intermediate-blue); }

.duel-cmp-row__val--no-data { color: #b0b8cc; }

@media (max-width: 480px) {
    .duel-cmp-header,
    .duel-cmp-row {
        grid-template-columns: 1fr 60px 1fr;
        padding: 6px 8px;
        font-size: 13px;
    }

    .duel-cmp-row__label {
        font-size: 10px;
    }

    .duel-cmp-header {
        font-size: 13px;
    }
}

.mq_daily_score_container {
    margin-top: 8px;
    text-align: center;
}

.mq_daily_score, .qp-monthly-cell-sub {
    font-size: 11px;
    color: #7a8aaa;
    font-weight: 500;
}

.mq_daily_score_value {
    font-size: 13px;
    font-weight: 700;
    color: #1a2340;
    margin-top: 2px;
}

.category_filter_button {
    display: inline-block;
    width: 140px;
    text-align: left;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 15px;
    padding: 5px;
    margin: 5px;
    vertical-align: middle;
    box-shadow: 5px 5px 5px #ddd;
}

.category_button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 50, 100, 0.1);
    transition: all 0.2s ease;
    text-align: center;
}

.category_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 50, 100, 0.15);
}

.category_button_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.category_button_name {
    font-family: var(--title-font), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a2340;
    line-height: 1.2;
    margin-bottom: 2px;
    word-break: break-word;
}

.current_main_category {
    border: 2px solid var(--quizy-intermediate-blue);
    box-shadow: 0 0 0 2px rgba(17, 82, 161, 0.1);
}

/* Variante pour les boutons de sélection (radio behaviour) */
.qp-btn.current_main_category {
    background: var(--quizy-intermediate-blue) !important;
    color: #fff !important;
    border-color: var(--quizy-intermediate-blue);
    box-shadow: 0 4px 12px rgba(17, 82, 161, 0.25);
}

.category_stats {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    border: 2px solid #555;
    margin-top: 10px;
}

.quizy_right_bg { background: #072377 !important; }

.ux_step {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    font-family: var(--title-font), sans-serif;
}

.ux_block {
    padding: 5px;
    margin: 10px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--text-font), sans-serif;
}

.page_top_message {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    font-weight: bold;
    max-width: 500px;
    margin: 10px auto;
}

.current_section { color: #f0cf6d !important; }

.simpleButton {
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none !important;
    min-width: 200px;
    cursor: pointer;
}

.trophy_class {
    border-radius: 5px;
    padding: 5px;
    font-size: 20px;
    text-align: center;
    width: 30px;
}

.form_field {
    margin: 10px 0 20px 0;
    font-size: 20px;
    color: #555;
}

.form_label {
    font-size: 20px;
    color: #999;
    display: block;
}

.form_page {
    max-width: 600px !important;
    margin: auto;
    text-align: center
}

.quizy_large_button {
    border-radius: 5px;
    max-width: 400px;
    padding: 10px;
    cursor: default;
    display: inline-block;
}

.theme_row_left_cell { width: 60px; }

.theme_row_right_cell { width: 100%; }

.search_result_border_top { border-top-right-radius: 15px; }

.search_result_border_bottom { border-bottom-right-radius: 15px; }

.theme_tile_bookmark:hover {
    color: #fff !important;
}

.ranking-list {
    padding: 0;
    display: block;
}

.toggle-ranking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    max-width: 100%;
    width: auto;
    cursor: pointer;
    box-sizing: border-box;
}

.toggle-ranking:hover {
    opacity: 0.8;
}

.toggle-ranking i {
    width: 10%;
    text-align: left;
    flex-shrink: 0;
}

.toggle-ranking .myFont2Bold {
    width: 90%;
    text-align: center;
    flex-shrink: 0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: 4px;
}

.pagination-btn {
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    max-width: 40px;
    text-align: center;
    outline: none;
    color: black;
}

#user-search {
    padding: 0.4em 1em !important;
}

#user-search,
.pagination-btn:focus,
.pagination-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

#user-search:focus {
    border-color: #6c757d !important;
}

.pagination-btn:hover {
    background: #e0e0e0;
}

.highlight {
    background-color: #bbdefb;
    font-weight: bold;
}

#page-info {
    flex: 0 0 50%;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

#ranking-container {
    width: 100%;
    padding-top: 5px;
}

.search-user-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 5px;
}

.search-user-container > .ui-input-text {
    flex: 1 1 88% !important;
    margin: 0;
    outline: none !important;
    box-shadow: none !important;

    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2013.701%2013.721%22%20width%3D%2213.701%22%20height%3D%2213.721%22%3E%3Cpath%20fill%3D%22%23999%22%20d%3D%22M10.021%2C8.626C10.638%2C7.738%2C11%2C6.662%2C11%2C5.5C11%2C2.463%2C8.537%2C0%2C5.5%2C0S0%2C2.463%2C0%2C5.5S2.463%2C11%2C5.5%2C11%20c1.152%2C0%2C2.221-0.356%2C3.105-0.962l3.682%2C3.683l1.414-1.414L10.021%2C8.626z%20M5.5%2C9C3.567%2C9%2C2%2C7.433%2C2%2C5.5S3.567%2C2%2C5.5%2C2S9%2C3.567%2C9%2C5.5%20S7.433%2C9%2C5.5%2C9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: 7px center;
    background-size: 16px 16px;

    padding-left: 25px;
}

.search-user-container > button {
    flex: 1 1 12% !important;
    max-width: 40px;
}

@media (min-width: 768px) {

    .hide-on-desktop {
        display: none !important;
    }

    .toggle-ranking {
        display: none;
    }

    #mainContentNoLeft {
        display: flex;
        gap: 20px;
        flex-direction: row;
    }

    #ranking-container {
        display: block !important;
    }

    .ranking-container {
        min-width: 33%;
        border-right: 2px solid #e8edf5;
    }

    .ranking-list {
        display: block;
    }

    .content {
        flex: 1;
    }

    .ad-container {
        display: flex;
        gap: 20px;
    }

    td.desktop.nonGameUI {
        border-right: 2px solid #e8edf5;
    }

    td.desktopPaddingRight {
        padding-left: 5px;
    }
}

@media (max-width: 767px) {

    .hide-on-mobile {
        display: none !important;
    }

    #mainContentNoLeft {
        display: flex;
        flex-direction: column;
    }

    #mainContentNoLeft .content {
        order: 1;
    }

    .ranking-container {
        display: none;
    }

    .ranking-container.mobile-open {
        display: block;
        order: 2;
    }

    .ranking-list {
        display: block;
    }

    .ad-container {
        display: block;
    }
}

.videoWrapper {
    position: relative;
    padding: 25px 0 56.25% 0;
    height: 0;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#share-copy-text.show-tooltip .tooltip {
    opacity: 1;
    visibility: visible;
}

#share-copy-text .tooltip {
    display: none;
    position: absolute;
    top: -28px;
    left: -50px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#share-copy-text .tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

.qp-answers-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#answers-visual-bar {
    display: grid;
    grid-template-columns: repeat(20, 14px);
    grid-auto-rows: 14px;
    gap: 4px;
    align-items: center;
    width: max-content;
}

@media (max-width: 420px) {
    #answers-visual-bar {
        grid-template-columns: repeat(10, 14px);
    }
}

#answers-visual-bar > div {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

#answers-wrapper {
    display: grid;
    grid-template-columns: max-content auto;
    justify-content: center;
    align-items: center;
    gap: 5px 8px;
    margin: 8px 0;
}

#share-copy-text {
    position: relative;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 360px) {
    #answers-wrapper {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    #share-copy-text {
        margin-top: 6px;
    }
}

.user-search-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
}

#user-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

#user-search-suggestions .user-suggestion-item {
    padding: 6px 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#user-search-suggestions .user-suggestion-item:hover,
#user-search-suggestions .user-suggestion-item.active {
    background: #f0f0f0;
}

.ui-corner-all { border-radius: 0.3125em !important; }

.ui-shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important; }

.ui-mini { font-size: 13px !important; }

.ui-nodisc-icon::after {
    background-color: transparent !important;
}

.ui-alt-icon::after {
    filter: invert(1);
}

.ui-btn {
    display: inline-block;
    padding: 0.7em 1em;
    margin: 0.5em 2px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    text-decoration: none !important;
    background-color: #f6f6f6;
    color: #333;
    transition: background-color 0.2s;
    user-select: none;
    position: relative;
    vertical-align: middle;
}

.ui-btn:hover {
    background-color: #ededed;
}

.ui-btn:active {
    background-color: #e8e8e8;
}

.ui-btn-a {
    background-color: #f6f6f6;
    color: #333;
    border-color: #ddd;
}

.ui-btn-b {
    background-color: #333;
    color: #fff !important;
    border-color: #1f1f1f;
}

.ui-btn-b:hover {
    background-color: #444;
}

.ui-btn-inline {
    display: inline-block !important;
    vertical-align: middle;
}

.ui-btn-inline::after {
    content: none !important;
    padding: 0 !important;
}

[class^="ui-icon-"], [class*=" ui-icon-"] {
    position: relative;
}

[class^="ui-icon-"]::before, [class*=" ui-icon-"]::before {
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    display: inline-block;
}

.ui-icon-user::before {
    content: "\f007";
}

.ui-icon-star::before {
    content: "\f005";
}

.ui-icon-search::before {
    content: "\f002";
}

.ui-icon-home::before {
    content: "\f015";
}

.ui-icon-bars::before {
    content: "\f0c9";
}

.ui-icon-edit::before {
    content: "\f044";
}

.ui-icon-delete::before {
    content: "\f1f8";
}

.ui-icon-info::before {
    content: "\f129";
}

.ui-icon-arrow-r::before {
    content: "\f061";
}

.ui-icon-arrow-l::before {
    content: "\f060";
}

.ui-icon-carat-d::before {
    content: "\f078";
}

.ui-icon-carat-u::before {
    content: "\f077";
}

.ui-icon-carat-r::before {
    content: "\f054";
}

.ui-icon-check::before {
    content: "\f00c";
}

.ui-icon-mail::before {
    content: "\f0e0";
}

.ui-btn-icon-left { padding-left: 2.5em; }

.ui-btn-icon-left::before {
    position: absolute;
    left: 0.6em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

.ui-btn-icon-right { padding-right: 2.5em; }

.ui-btn-icon-right::before {
    position: absolute;
    right: 0.6em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

.ui-btn-icon-top { padding-top: 2.5em; }

.ui-btn-icon-top::before {
    position: absolute;
    top: 0.4em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3em;
}

.ui-btn-icon-notext {
    text-indent: -9999px;
    width: 2.5em;
    height: 2.5em;
    padding: 0 !important;
}

.ui-btn-icon-notext::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

.bgcolorQPBlue.ui-btn {
    background-color: #1d8dd7 !important;
    color: #fff !important;
    border-color: #1d8dd7 !important;
}

.quizy_right_bg.ui-btn {
    background-color: var(--quizy-intermediate-blue);
    color: #fff !important;
    border-color: var(--quizy-dark-blue);
}

.qp-listview {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
}

.qp-listview li {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: relative;
    display: block;
    text-align: left;
}

.qp-listview li:last-child {
    border-bottom: none;
}

.qp-listview li:has(> a) {
    cursor: pointer;
}

.qp-listview li a {
    display: block;
    padding: 0.8em 2.5em 0.8em 1em;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
    position: relative;
}

.qp-listview li a::after {
    content: "›";
    position: absolute;
    right: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: #999;
    font-weight: bold;
    font-style: normal;
}

.qp-listview li[id$="_notifCountDivMobile"] a::after {
    display: none;
}

.qp-listview li[id$="_notifCountDivMobile"] a {
    padding-right: 1em;
}

.qp-listview li a:hover {
    background-color: #f9f9f9;
}

.noBorder {
    border: none !important;
    border-radius: 0 !important;
}

.ulTop { list-style: none !important; }

.ulTop li a {
    line-height: 1.2 !important;
    display: block;
}

.qp-listview li:has(> a[href*="/messages/"]):hover {
    background-color: #f9f9f9;
}

.qp-listview li:has(> a[href*="/messages/"]) a:hover {
    background-color: transparent;
}

.qp-listview li.ui-role-divider,
.qp-listview li.ui-li-divider {
    padding: 0.5em 1.1em;
    font-size: 13px;
    font-weight: bold;
    background-color: #f6f6f6;
    color: #333;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
}

.ui-li-count {
    position: absolute;
    right: 1.1em;
    top: 50%;
    transform: translateY(-50%);
    background-color: #eee;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

input[type="text"], input[type="email"], input[type="search"], input[type="password"], textarea, select {
    display: block;
    width: 100% !important;
    padding: 0.6em 1em;
    margin: 0.5em 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1d8dd7;
    box-shadow: 0 0 5px rgba(28, 134, 238, 0.5);
}

.search_field {
    display: block !important;
    width: 100% !important;
    padding: 0 0 !important;
    margin: 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

input[data-type="search"] {
    padding-left: 2.5em !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23666' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.8em center;
    background-size: 1.1em;
    height: 40px;
    line-height: normal;
    border-radius: 5px !important;
    margin: 0 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    font-size: 15px;
}

.ui-icon-carat-r::after,
.ui-btn-icon-right.ui-icon-carat-r::after {
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    content: "\f054";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    color: #aeaeae;
}

.ui-alt-icon .ui-icon-carat-r::after {
    color: #333;
}

.ui-btn-icon-right.ui-icon-search::after {
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    content: "\f002";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    display: block;
}

#searchPanelCatBtn {
    display: none !important;
}

#searchPanelCatBtn.has-selected-category {
    display: inline-block !important;
}

#searchPanelCatBtn.ui-icon-back::after {
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    content: "\f060";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    display: block;
}

#searchPanelCatBtn.ui-btn-icon-left.ui-icon-back {
    padding-left: 1em !important;
    padding-right: 2.5em !important;
}

.search-category-block, .search-subcategory-block {
    display: block;
    width: 95%;
    margin: 0 4px;
}

.searchButton.ui-btn {
    width: 100% !important;
    margin: 4px 0 !important;
    text-align: left !important;
    padding-left: 15px !important;
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
}

#search-panel .ui-btn::after,
#search-panel .searchButton::after,
#search-panel .qpButton::after {
    display: none !important;
}

#searchPanelList li a {
    padding: 0;
}

.theme_tile_bookmark {
    padding: 8px !important;
    margin: 4px 5px !important;
    border-radius: 10px !important;
}

.bookmark_button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    vertical-align: middle;
    color: inherit;
}

.bookmark_button:focus {
    outline: none !important;
}

@media (max-width: 490px) {
    #userBtn {
        display: inline-block !important;
    }

    #userBtn2 {
        display: none !important;
    }

    #userBtn3 {
        display: inline-flex !important;
    }
}

@media (min-width: 490px) {
    #userBtn {
        display: none !important;
    }

    #userBtn2, #userBtn3 {
        display: inline-flex !important;
    }
}

.ui-controlgroup {
    display: block;
    margin: 0.5em 0;
    border: none;
    padding: 0;
}

.ui-controlgroup-controls {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.ui-controlgroup-horizontal .ui-controlgroup-controls {
    flex-direction: row;
}

.ui-controlgroup-controls .ui-btn,
.ui-controlgroup-controls label {
    margin: 0 !important;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0 !important;
}

.ui-controlgroup-controls .ui-btn:last-child,
.ui-controlgroup-controls label:last-of-type {
    border-bottom: none;
}

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

.ui-controlgroup input[type="radio"] + label {
    display: block;
    padding: 0.8em 1em 0.8em 3em;
    background-color: #f6f6f6;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: #333;
    transition: background 0.2s;
}

.ui-controlgroup input[type="radio"] + label:hover {
    background-color: #ededed;
}

.ui-controlgroup input[type="radio"] + label::before {
    content: "";
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ui-controlgroup input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    width: 0.6em;
    height: 0.6em;
    background: #1d8dd7;
    border-radius: 50%;
    left: 1.3em;
    top: 50%;
    transform: translateY(-50%);
}

/* =============================================================================
   13. COMPOSANTS — Panneaux, Popups, Formulaires
   ============================================================================= */

.qp-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
}

.qp-panel.qp-panel-open {
    display: block;
}

.qp-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
}

.qp-panel-overlay.qp-panel-open {
    background: rgba(0, 0, 0, 0.5);
}

.qp-panel-overlay.qp-panel-open, .qp-panel-overlay.loading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qp-panel-overlay.loading::after {
    content: "";
    width: 40px;
    height: 40px;

    border: 4px solid rgba(120, 120, 120, 0.25);
    border-top: 4px solid #666;
    border-radius: 50%;

    animation: qp-spin 0.8s linear infinite;
}

@keyframes qp-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.qp-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    z-index: 2100;
    width: fit-content;
    max-width: 99%;
    max-height: 99%;
    overflow: auto;
    border-radius: 12px;
    color: #333;
}

@media (max-width: 668px) {
    .qp-popup {
        min-width: 90%;
    }
}

/* Same as qp-popup, but without display: none as default since display is managed at overlay level */
.overlay_content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    z-index: 2100;
    max-width: 92%;
    max-height: 99%;
    overflow: auto;
    border-radius: 12px;
    color: #333;
}

.qp-popup.open {
    display: block !important;
}

.qp-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.qp-content {
    flex: 1;
    padding: 1em;
    box-sizing: border-box;
    width: 100%;
}

#new_duel_ui .ux_block {
    margin: 10px 0 !important;
}

input[id$="_searchInput"],
input[id="searchPanelInput"],
input[id$="_searchOpponentInput"],
input[id$="_searchNewTopicInput"],
input[id$="_searchCreateInput"],
input.searchDuelTopicInput {
    width: 100% !important;
    box-sizing: border-box !important;
}

#user-panel {
    text-align: left !important;
}

#dailyContestTrainingPage_searchList.qp-listview, #user-panel .qp-listview {
    border-radius: 0 !important;
}

#user-panel .menuItem {
    display: block;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;

    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

#user-panel .menuItem:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

#user-panel .menuItem .notif_count {
    float: right;
    margin-top: -2px;
}

#user-panel h3 {
    padding-left: 10px;
}

#user-panel .ui-role-divider {
    padding-left: 10px;
}

/* =============================================================================
   10. COMPOSANTS — Duel
   ============================================================================= */

.duel-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin: 16px auto;
    width: 100%;
    max-width: 760px;
    padding: 0 8px;
    box-sizing: border-box;
}

/* Base card */
.player-card {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border-radius: 18px;
    border: 2px solid #e4e9f5;
    box-shadow: 0 4px 16px rgba(30, 50, 100, 0.08);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
}

/* Current user's card */
.player-card.me {
    border-color: var(--quizy-intermediate-blue);
    box-shadow: 0 6px 24px rgba(29, 141, 215, 0.18);
}

/* Victoire du joueur connecté → glow vert, bordure bleue conservée */
.player-card.me.winner {
    box-shadow: 0 4px 16px rgba(30, 50, 100, 0.08);;
}

/* Carte perdante → légèrement atténuée */
.player-card.loser {
    opacity: 0.8;
}

/* Card header */
.player-card-header {
    padding: 12px 14px 10px;
    font-size: 17px;
}

/* Opponent header — slate dark */
.duel-header-opponent { background: linear-gradient(135deg, #334155, #0f172a); }

.player-card-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.player-card-username {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.player-card-you-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 1px 7px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.player-card-crown {
    color: #ffd700;
    font-size: 16px;
    flex-shrink: 0;
}

/* Card body */
.player-card-body { padding: 18px 12px 16px; }

/* Big score number */
.player-score-hero {
    font-family: var(--title-font);
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    color: #1a2340;
}

.player-score-denom {
    font-size: 22px;
    font-weight: 600;
    color: #7a8aaa;
}

/* Pending placeholder */
.player-score-pending { color: #c8d3e8; }

/* Time row */
.player-score-time {
    margin-top: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #7a8aaa;
}

/* Couleurs partagées entre score hero et score time */
.player-score-hero.color6, .player-score-time.color6 { color: #27ae60; }
.player-score-hero.color8, .player-score-time.color8 { color: #e74c3c; }
.player-score-hero.colorQPBlue, .player-score-time.colorQPBlue { color: var(--quizy-intermediate-blue); }

.player-score-time i {
    margin-right: 4px;
}

/* VS separator */
.duel-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 900;
    color: #b8c6dc;
    letter-spacing: 0.08em;
    min-width: 32px;
    flex-shrink: 0;
}

/* --- Result status block --- */
#duel_gameTopComment {
    width: 95%;
    max-width: 900px;
    margin: 10px auto;
    box-sizing: border-box;
}

.qp-duel-status-fused {
    border-radius: 18px;
    margin: 12px auto;
    padding: 20px 24px;
    max-width: 560px;
    box-shadow: 0 6px 20px rgba(30, 50, 100, 0.14);
    text-align: center;
}

.qp-duel-status-fused.resultWin,
.qp-duel-status-fused.resultLoss,
.qp-duel-status-fused.resultDraw { color: #fff; }

.qp-duel-status-fused.resultWin { background: linear-gradient(135deg, #2ecc71, #1a9650); }
.qp-duel-status-fused.resultLoss { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.qp-duel-status-fused.resultDraw { background: linear-gradient(135deg, #5d6d7e, #4a5568); }

.qp-duel-status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qp-duel-status-title {
    font-family: var(--title-font);
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
}

.qp-duel-status-title i {
    font-size: 26px;
}

.qp-duel-status-message {
    font-size: 15px;
    opacity: 0.92;
    line-height: 1.4;
}

.qp-points-value {
    font-weight: 700;
    font-size: 16px;
}

/* --- Info messages (pending / declined / expired) --- */
.qp-duel-info-msg {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 12px;
    background: #f4f7ff;
    border: 1.5px solid #dce6fa;
    border-radius: 14px;
    padding: 13px 18px;
    margin: 10px auto;
    max-width: 95%;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    text-align: left;
    box-sizing: border-box;
}

.qp-duel-info-msg > i {
    font-size: 22px;
    color: var(--quizy-intermediate-blue);
    margin-top: 2px;
}

.qp-duel-info-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a2340;
    margin-bottom: 2px;
}

.qp-duel-restriction {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #dce6fa;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
}

.qp-duel-restriction i {
    font-size: 16px;
    color: #c0392b;
    flex-shrink: 0;
}

.nonGameUI { padding: 0 10px; }

@media (max-width: 600px) {
    .duel-cards-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .player-card {
        flex: none;
    }

    .duel-vs {
        min-height: 24px;
    }

    .player-score-hero {
        font-size: 38px;
    }

    .player-score-denom {
        font-size: 18px;
    }
}

#messageListPage .qp-listview {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#messageListPage .qp-listview li {
    padding: 1em 1.2em;
    background: #fff;
    margin: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

#messageListPage .qp-listview li:hover {
    background: #f0f4f8;
}

#messageListPage .qp-listview li a {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0;
}

#messageListPage .qp-listview li a::before {
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 400;
    content: "\f0e0";
    color: #aaa;
    font-size: 1.1em;
}

#messageListPage .qp-listview li:has(.myFontBold) {
    border-left-color: #1d8dd7;
    background: #fafcff;
}

#messageListPage .qp-listview li:has(.myFontBold) a::before {
    font-weight: 900;
    color: #1d8dd7;
}

#messageListPage .qp-listview li.ui-role-divider {
    padding: 0.8em 1.2em;
    font-size: 14px;
    text-transform: none;
}

#messageList {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1em;
    margin: 1em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#messageList li {
    background: transparent;
    border: none;
    padding: 0.3em 0;
    margin-bottom: 0.2em;
}

#messageList li:last-child {
    margin-bottom: 0;
}

#messageList li > div:last-child {
    background: #fff;
    border-radius: 12px;
    padding: 0.8em 1em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    word-break: normal;
    overflow-wrap: break-word;
    max-width: 85%;
    margin-top: 0.3em;
}

#messageList li:has(.colorQPBlue) > div:last-child {
    margin-right: auto;
    margin-left: 0;
    border-left: 3px solid #1d8dd7;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

#messageList li:has(.color8) > div:last-child {
    margin-left: auto;
    margin-right: 0;
    border-right: 3px solid #FD6535;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    text-align: left;
}

#messageList li .myFont2Bold {
    font-size: 0.85em;
    padding: 0 0.5em;
    opacity: 0.9;
}

#messageList li div:has(.myFont2Bold):not(:first-child) {
    font-weight: 600;
}

#messageList li:has(div.myFont2Bold) {
    animation: messageHighlight 0.5s ease-out;
}

@keyframes messageHighlight {
    0% {
        background: rgba(28, 134, 238, 0.1);
    }
    100% {
        background: transparent;
    }
}

.messageDiv {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 10px;
    padding: 1.5em !important;
    margin: 0.5em 0;
    border-left: 4px solid #1d8dd7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    line-height: 1.6;
    white-space: normal !important;
}

.messageDiv p {
    margin: 0 0 0.8em 0;
}

.messageDiv p:last-child {
    margin-bottom: 0;
}

.filter-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-category-list li {
    display: inline-block;
    vertical-align: top;
    margin-right: 5px;
    margin-bottom: 5px;
}

.filter-category-list li a {
    font-weight: bold;
    color: #3388cc !important;
}

.filter-category-list li a:hover {
    color: #005599 !important;
}

input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    transition: border 0.1s ease;

    position: relative !important;
    opacity: 1 !important;
    z-index: 1 !important;
    left: auto !important;
    display: inline-block !important;
    margin: 0 10px 0 0;
}

input[type="radio"]:checked {
    border: 6px solid #1d8dd7;
    background-color: #fff;
}

input[type="radio"]:hover {
    border-color: #aaa;
}

input[type="radio"]:checked:hover {
    border-color: #1771c9;
}

.ui-radio .ui-btn,
.ui-checkbox .ui-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: inherit !important;
    font-weight: normal !important;
    padding: 0 !important;
    margin: 5px 0 !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    white-space: normal !important;
}

.ui-radio .ui-btn-icon-left:after,
.ui-radio .ui-btn-icon-right:after,
.ui-radio-on:after,
.ui-radio-off:after,
.ui-checkbox .ui-btn-icon-left:after,
.ui-checkbox .ui-btn-icon-right:after,
.ui-checkbox-on:after,
.ui-checkbox-off:after {
    display: none !important;
}

.toggle-yes-no-container div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-yes-no-container label {
    margin-right: 10px;
    cursor: pointer;
    font-weight: normal;
}

.topic-list-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.topic-row {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.topic-row:last-child {
    border-bottom: none;
}

.topic-row:hover {
    background-color: #eee;
}

.topic-row input[type="radio"] {
    margin-left: 15px;
    margin-right: 0;
    flex-shrink: 0;
}

.topic-row label {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 10px;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.footer-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
}

.footer-simple-link {
    color: #0055cc !important;
    text-decoration: underline !important;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    padding: 5px;
}

.footer-simple-link:hover {
    color: #003399 !important;
}

.local-summary-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 12px;
    margin-bottom: 20px;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
}

.local-summary-link {
    color: #0055cc !important;
    text-decoration: underline !important;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    line-height: 1.4;
}

.local-summary-link:hover {
    color: #003399 !important;
}

.qpBlueTitle {
    color: #2B4D87;
    margin-top: 0;
    margin-bottom: 5px;
}

.modern-page-banner {
    background: #2B4D87;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-bottom: 0;
}

.modern-page-content {
    padding: 20px;
    background: #ffffff;
    border-top: none;
}

.options-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 10px;
}

.options-header {
    padding: 14px 20px;
    border-radius: 8px 8px 0 0;
}

.options-content { padding: 20px; }

.option-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.option-row:last-child {
    border-bottom: none;
}

.option-block {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.option-block:last-child {
    border-bottom: none;
}

.block-title {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-size: 14px;
}

.options-note {
    font-style: italic;
    color: #666;
    font-size: 14px;
    padding: 12px 0;
    margin: 0;
    line-height: 1.5;
}

.options-note a {
    color: #1d8dd7;
    text-decoration: underline;
}

.options-note a:hover {
    color: #0d5fb8;
}

.examples-text {
    font-size: 13px;
    color: #666;
    margin-top: 12px;
    text-align: left;
}

.examples-list {
    margin: 8px 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.examples-list li {
    margin: 4px 0;
    line-height: 1.4;
}

.duel-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 20px;
}

.duel-types-grid > div {
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .userOptionsPage {
        padding: 5px;
    }

    .options-content {
        padding: 15px;
    }

    .question_theme_title {
        justify-content: flex-start;
    }

    .timer-container {
        margin: 0;
    }

    .duel-types-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .nonGameUI {
        padding: 0 5px;
    }
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    position: relative !important;
    opacity: 1 !important;
    z-index: 1 !important;
    display: inline-block !important;
    margin: 0 10px 0 0;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background-color: #1d8dd7;
    border-color: #1d8dd7;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* =============================================================================
   11. COMPOSANTS — Classements (Rankings)
   ============================================================================= */

/* DDJ Rankings Modern UI - Simplified */
.rankings-summary-container {
    background: #ffffff;
    text-align: center;
    margin-bottom: 4px;
}

.rankingsTitle {
    color: #2B4D87;
    font-size: 16px !important;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
}

#rankings-overview {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rankingsPlayersCount, .rankingsStatTitle {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    color: #2B4D87;
    font-size: 13px !important;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rankingsPlayersCount::before {
    content: "\f007";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #2B4D87;
    font-size: 12px;
}

input[type="checkbox"]:hover {
    border-color: #0d5fb8;
}

input[type="checkbox"]:checked:hover {
    border-color: #0d5fb8;
    background-color: #0d5fb8;
}

/* .ui-checkbox .ui-btn et ses after — fusionnés avec .ui-radio ci-dessus */

input[type="checkbox"] + label,
input[type="checkbox"] + .checkbox-label {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}

.header-user-badge {
    display: inline-flex !important;
    align-items: center;
    height: 32px;
    padding: 0 10px !important;
    gap: 8px;
    text-decoration: none !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    vertical-align: middle;
    border: 1px solid #fff;
    border-radius: 6px;
    margin-left: 5px;
    margin-right: 5px;
    transition: background-color 0.2s ease !important;
}

.header-user-badge:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.header-user-badge .notif_count {
    padding: 3px 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    border-radius: 10px !important;
    margin: 0 !important;
}

.colorOrange, .colorOrange i {
    color: #f08f28 !important;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.message-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-bubble {
    align-self: flex-start;
    background-color: #f8f9fa;
    border: 1px solid #edf2f7;
    border-bottom-left-radius: 4px;
    color: #2d3748;
}

.admin-bubble {
    align-self: flex-end;
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-bottom-right-radius: 4px;
    color: #2c5282;
}

.bubble-author {
    font-weight: 700;
    font-size: 0.75rem;
    display: block;
    opacity: 0.8;
    letter-spacing: 1px;
}

.thread-status {
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    font-size: 0.9rem;
    display: inline-block;
    align-self: center;
}

.status-processed {
    background-color: #c6f6d5;
    color: #2e7d32;
    padding-left: 20px;
    padding-right: 20px;
}

.reply-section {
    max-width: 800px;
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reply-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.modern-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s;
    outline: none;
}

.modern-textarea:focus {
    border-color: #4299e1;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

.modern-btn {
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.modern-btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #1A73E8;
    color: white;
    box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    background-color: #1557b0;
    color: white;
}

.btn-secondary {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

a.modern-btn {
    text-shadow: none !important;
}

.creation-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

.creation-section { margin-bottom: 30px; }

.section-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.creation-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.creation-tile {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

.creation-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tile-icon {
    font-size: 2.5em;
    margin-right: 20px;
    width: 60px;
    text-align: center;
    background: var(--quizy_gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tile-content { flex: 1; }

.tile-title {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 5px;
}

.tile-subtitle {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.theme-list-container {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-top: 10px;
}

.theme-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none !important;
    transition: background 0.2s;
}

.theme-item:last-child {
    border-bottom: none;
}

.theme-item:hover {
    background: #f9f9f9;
}

.theme-name {
    font-weight: 600;
    color: #333;
}

.theme-status {
    font-size: 0.8em;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eee;
    color: #666;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.status-modify {
    background: #f8d7da;
    color: #721c24;
}

[id*="searchCreateInput"] {
    margin: 0 auto;
    display: block;
    width: 100%;
    font-size: 1em;
    padding: 1px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[id*="searchCreateInput"]:focus {
    border-color: var(--quizy-intermediate-blue);
    box-shadow: 0 0 0 3px rgba(17, 82, 161, 0.1);
}

[id*="searchCreateList"] {
    margin: 15px auto 0 !important;
}

[id*="searchCreateList"] li {
    list-style: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

[id*="searchCreateList"] li:hover {
    background-color: #f5fafd;
}

[id*="searchCreateList"] li a {
    display: block;
    padding: 15px 20px !important;
    text-decoration: none !important;
    color: inherit;
    font-weight: 600;
}

[id*="searchCreateList"] li:last-child {
    border-bottom: none;
}

.filter-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.filter-btn {
    padding: 6px 12px !important;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none !important;
    text-shadow: none !important;
    transition: all 0.2s;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    display: inline-block;
}

.filter-btn::after {
    display: none !important;
}

.filter-btn.active {
    color: #fff !important;
    border-color: transparent;
}

.filter-btn.active.btn-all {
    background-color: #2B4D87;
}

.filter-btn.active.btn-draft {
    background-color: #6c757d;
}

.filter-btn.active.btn-modify {
    background-color: #d9534f;
}

.filter-btn.active.btn-review {
    background-color: #0275d8;
}

.filter-btn.active.btn-validated {
    background-color: #5cb85c;
}

.qp-fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: default;
}

.qp-fullscreen-image {
    margin: auto;
    display: block;
    width: 98%;
    height: 98%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.qp-fullscreen-close-btn {
    position: absolute;
    top: 0;
    right: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10001;
}

.qp-fullscreen-close-btn:hover,
.qp-fullscreen-close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.qp-image-wrapper {
    position: relative;
    display: inline-block;
}

.qp-image-wrapper img {
    cursor: zoom-in;
}

.qp-loupe-icon {
    position: absolute;
    bottom: 8px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 3px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.qp-loupe-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.sub-nav-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 10px 10px 10px;
    background: transparent;
    max-width: 100%;
    margin: 0;
}

.sub-nav-item {
    color: #ffffff !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
}

.sub-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.sub-nav-item.active {
    color: #f0cf6d !important;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {

    .infoDiv {
        width: 90%;
    }

    .ux_block {
        margin: 0;
    }

    .sub-nav-grid {
        justify-content: center;
        gap: 5px;
        padding: 0 0 4px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sub-nav-item {
        flex: 0 1 auto;
        white-space: normal;
        text-align: center;
        padding: 5px 10px;
    }
}

.large_button:focus-visible,
.large_button:focus,
.quizy_large_button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #777676;
}

.themeBlock:focus-visible,
.themeBlock a:focus-visible {
    outline: none;
    box-shadow: none;
}

.themeBlock:focus-visible .themeRow2,
.themeBlock a:focus-visible .themeRow2,
.themeBlock:focus-visible .large_button,
.themeBlock a:focus-visible .large_button,
.themeBlock:focus-visible .themeRow,
.themeBlock a:focus-visible .themeRow {
    outline: none;
    box-shadow: 0 0 0 3px #777676;
}

/* Réduction de l'espace entre la question et les réponses */
.responsesTable {
    width: 100%;
    margin-top: 0 !important;
}

/* ─── Jeu : Blocs latéraux Score / Question ─── */
.qp-game-sidebar {
    background: #f6f8fd;
    border: 1px solid #e4e9f5;
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 80px;
    box-sizing: border-box;
}
.qp-game-sidebar__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #7a8aaa;
}
.qp-game-sidebar__value {
    font-family: var(--title-font), sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--quizy-intermediate-blue);
    line-height: 1.1;
}
.qp-game-sidebar__suffix {
    font-size: 13px;
    font-weight: 600;
    color: #99a8c8;
}
.qp-game-sidebar__row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* ─── Jeu : espacement des éléments sous les réponses ─── */

/* Joker : séparation visuelle d'avec les boutons de réponse */
#wildcardTable { padding-top: 8px; }

/* "Question suivante" : espace au-dessus et en dessous */
#next_question_btn { padding: 8px 0 4px; }

/* Barre de points : respiration interne */
#points { padding: 8px 0 4px; }

/* Bouton "Arrêter" : séparation d'avec la barre de points */
#end_game_btn { margin-top: 6px; }

/* Layout Grid pour l'en-tête de la question */
.question-header-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px; /* Espace pour le timer sur desktop */
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}

.question_theme_title {
    grid-column: 2;
    display: block;
    text-align: center;
    width: 100%;
    padding: 2px;
    box-sizing: border-box;
    font-weight: bold;
}

.question_theme_title .question_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex: none;
    margin: 0 5px 0 0;
}

.question_theme_title span {
    display: inline;
    vertical-align: middle;
    white-space: normal;
}


@media (max-width: 410px) {
    .sub-nav-item {
        padding: 5px 2px;
    }
}

@media (min-width: 410px) and (max-width: 480px) {
    .sub-nav-item {
        padding: 5px 5px;
    }
}

@media (max-width: 480px) {

    .sub-nav-grid {
        gap:3px;
    }


    .question-header-row {
        gap: 10px;
        grid-template-columns: auto 1fr; /* Timer auto, Titre prend le reste */
    }

    .question_theme_title {
        grid-column: 2;
        text-align: center;
        margin: 0;
    }
}

/* SANS CHRONO (Global) */
.question-header-row.no-timer {
    grid-template-columns: 1fr !important;
}

.question-header-row.no-timer .timer-container {
    display: none !important;
}

.question-header-row.no-timer .question_theme_title {
    grid-column: 1 !important;
    text-align: center !important;
}

.question-header-row .question_icon {
    position: static;
    transform: none;
}

.timer-container {
    grid-column: 1;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 4px;
    z-index: 100;
    pointer-events: none;
    flex-shrink: 0;
}

.modern-timer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 2px 4px;
    min-width: 70px;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--title-font), sans-serif;
    font-weight: 700;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    color: #2B4D87;
    transition: all 0.3s ease;
}

.modern-timer.timer-warning {
    background: rgba(234, 124, 104, 0.95);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#chrono_div, #countdown_div {
    display: none !important;
}

#dailyContestArchivesPage .day-btn::after {
    content: none !important;
}

#dailyContestArchivesPage .day-btn {
    padding-right: 15px !important;
    padding-left: 15px !important;
}

#search_bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    padding: 2px 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    min-height: 35px;
    margin: 0 auto;
}

#search_bar_icons_container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#search_bar_info_button {
    opacity: 0.4;
}

#search_bar_clear_button {
    display: none;
    cursor: pointer;
}

.search_bar_icon {
    color: var(--search-field-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

#search_field_top {
    font-family: var(--text-font);
    color: var(--search-field-color);
    font-size: 16px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    border-width: 0;
}

#search_field_top:focus {
    outline: none !important;
}

#search_field_top::placeholder {
    color: #888;
}

#search_results_container {
    position: relative;
    max-width: var(--contents-max-width);
    margin: auto;
}

#search_results {
    z-index: 3;
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    box-sizing: border-box;
    margin: 3px;
    border: 1px solid #eee;
    display: none;
}

.btn_icon_only {
    background: inherit;
    color: #fff;
    padding: 10px;
    border-width: 0;
}

.btn_icon_only:hover {
    opacity: 0.8;
}


.font_bold { font-weight: bold; }

.search_highlight {
    background: #ffbf00;
    padding: 0 1px;
    border-radius: 2px
}

.grid-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--header-padding-y) var(--header-padding-x);
    gap: var(--header-gap);
    max-width: var(--contents-max-width);
    margin: 0 auto;
}

.div1 {
    flex: 0 0 auto;
    z-index: 2;
}

.div2 {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.div3 {
    text-align: right;
    padding: 0;
    flex: 0 0 auto;
    z-index: 2;
}

@media (max-width: 768px) {
    .grid-container {
        flex-wrap: wrap;
        padding: 3px 10px;
        gap: 0;
    }

    .div1 {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
    }

    #titreQuizypedia {
        font-size: 1.3rem;
        white-space: nowrap;
    }

    .div3 {
        order: 2;
        flex: 0 0 auto;
    }

    .div2 {
        order: 3;
        flex: 0 0 100%;
        display: none; /* Managed by toggle_element */
        padding: 5px 0;
    }

    #search_bar {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .div2 {
        display: flex !important;
    }
}

#overlay_layer {
    position: fixed;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: none;
}

.qp-ranking-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 5px 10px; /* Reduced from 10px */
}

/* Toggle Switch for Rankings */
.qp-ranking-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.qp-ranking-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.qp-ranking-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.qp-ranking-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.qp-ranking-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .qp-ranking-slider {
    background: var(--quizy_gradient);
}

input:checked + .qp-ranking-slider:before {
    transform: translateX(22px);
}

.qp-ranking-toggle-label {
    font-size: 11px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
}

/* Logic for switching stats display */
[data-stats-mode="global"] .qp-stat-recent {
    display: none;
}

[data-stats-mode="recent"] .qp-stat-global {
    display: none;
}

.qp-ranking-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 5px 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s ease;
    display: block;
    border: 1px solid #eee;
}

.qp-ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    border-color: #ddd;
}

.qp-ranking-item:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SECTION HEADERS - Refonte V2 (Flexbox)
   ============================================ */

.qp-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: left;
    padding: 0 10px !important;
}

.qp-section-title__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--quizy_gradient);
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
}

.qp-section-title__content {
    display: flex;
    flex-direction: column;
}

.qp-section-title__heading {
    margin: 0;
    font-family: var(--title-font);
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.qp-section-title__sub {
    margin: 4px 0 0;
    font-family: var(--text-font);
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Mobile responsive for title */
@media (max-width: 480px) {
    .qp-section-title {
        flex-direction: row; /* Keep icon on the left */
        justify-content: flex-start;
        text-align: center;
        gap: 15px;
    }

    .qp-section-title__icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 22px;
        flex-shrink: 0;
    }

    .qp-section-title__heading {
        font-size: 22px;
    }
}

.qp-ranking-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.qp-ranking-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.qp-ranking-title-block { flex-grow: 1; }

.qp-ranking-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 15px;
    margin: 0;
}

.qp-ranking-rank {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: #666;
}

.qp-ranking-points {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 15px;
    background: #f0f0f0;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: auto;
}

.qp-ranking-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    border-top: 1px solid #f5f5f5;
    padding-top: 4px;
}

.qp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qp-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.qp-stat-label {
    color: #888;
    font-size: 8px;
    text-transform: uppercase;
}

.qp-last200-tag {
    font-size: 9px;
    color: #2196F3;
    font-weight: bold;
}

.qp-divider-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 15px;
    padding: 5px 0;
    color: #444;
}

img.kofiimg {
    animation: none !important;
}

/* =============================================================================
   9. COMPOSANTS — Résultats & Scores
   ============================================================================= */

/* Score icon inside score-display (result mode) */
.qp-score-icon {
    font-size: 40px;
    color: var(--quizy-intermediate-blue);
    margin-right: 8px;
    text-shadow: 0 1px 0 rgba(43,40,40,0.35);
    animation: qpPopIn 0.55s 0.2s cubic-bezier(0.34, 1.5, 0.64, 1) both;
}

/* Trophy Level Colors on score icon */
.qp-fav-icon {
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.9em;
    vertical-align: middle;
}

/* Trophy name label under score */
.qp-score-trophy {
    font-family: var(--title-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
    animation: qpPopIn 0.55s 0.2s cubic-bezier(0.34, 1.5, 0.64, 1) both;
}

/* --- Details Row (monthly card, evolutions) --- */
.qp-result-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 0 16px;
}

/* Evolutions container: full width and better layout */
.qp-evolutions-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.qp-detail-item {
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    background: #f6f8fd;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #e4e9f5;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.qp-detail-item i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

/* Result actions (buttons after result) */
.qp-result-actions {
    padding: 14px 16px 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .qp-result-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.qp-result-actions:empty {
    display: none;
}

/* --- Monthly Card --- */
.qp-monthly-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    color: #444 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.qp-monthly-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--quizy-intermediate-blue);
}

.qp-monthly-title {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 18px;
    color: var(--quizy-dark-blue);
    margin-bottom: 5px;
}

.qp-monthly-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    padding: 6px 0;
}

.qp-monthly-stats .sub_res {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    margin: 5px 0;
    gap: 0;
}

.qp-monthly-stats .res_icon {
    font-size: 18px;
    color: var(--quizy-intermediate-blue);
}

.qp-monthly-footer {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qp-monthly-card:hover .qp-monthly-footer {
    color: var(--quizy-intermediate-blue);
}

/* --- Responsive --- */
@media (max-width: 480px) {

    .footer-grid {
        gap: clamp(0px, 1vw, 140px);
        padding: 0 15px;
    }

    .footer-title {
        margin-bottom: 15px;
    }

    .footer-link {
        margin-bottom: 10px;
    }

    #resultats .qp-score-num {
        font-size: 60px;
    }

    #resultats .qp-score-denom {
        font-size: 28px;
    }

    .qp-detail-item {
        font-size: 14px;
        padding: 8px 15px;
    }

    .qp-monthly-card {
        padding: 15px;
    }

    .qp-monthly-title {
        font-size: 16px;
    }

    .qp-monthly-stats {
        gap: 15px;
    }

    .qp-monthly-stats .sub_res {
        font-size: 14px;
    }
}

/* --- Evolution / Rankings --- */
.qp-evolution-section {
    padding-top: 10px;
    text-align: left;
}

.qp-evolution-title {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    margin-left: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qp-evolution-points {
    color: var(--color-right);
    font-size: 13px;
    font-weight: 700;
}

.qp-evolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 12px;
}

@media (min-width: 768px) {
    .qp-evolutions-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start;
    }

    .nonGameUI--desktop-no-padding {
        padding-left: 0 !important;
    }
}

.qp-evolution-item {
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
}

.qp-evolution-item:hover {
    border-color: var(--quizy-intermediate-blue);
    transform: translateY(-2px);
}

.qp-evolution-cat-name {
    flex-grow: 1;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qp-evolution-rank-value {
    font-weight: 800;
    color: var(--quizy-dark-blue);
    font-size: 18px;
}

.qp-evolution-rank-value sup {
    font-size: 10px;
    font-weight: 600;
}

.qp-evolution-rank-up {
    color: var(--color-right);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f0fff0;
    padding: 2px 8px;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .qp-evolution-item {
        flex: 1 1 100%;
    }
}

/* =============================================================================
   12. COMPOSANTS — Cartes & Boutons (qp-card / qp-btn)
   ============================================================================= */

/* ── V2 CARD LAYOUT — Score cards, monthly stats, actions ── */

/* --- Card wrapper --- */
.qp-card {
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.qp-card *,
.qp-card *::before,
.qp-card *::after {
    box-sizing: border-box;
}

/* --- Score bloc (top gradient area + sub-stats) --- */
.qp-score-bloc {
    margin: 10px 10px 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #bfcff8;
    box-shadow: 0 1px 4px rgba(30, 50, 100, 0.07);
    background: linear-gradient(160deg, #dce8ff 0%, #eef2ff 100%);
}


.qp-score-top {
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.qp-score-top::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(29, 141, 215, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.qp-score-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 8px;
}

.qp-score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    line-height: 1;
}

.qp-score-num {
    font-family: var(--title-font);
    font-size: 69px;
    font-weight: 900;
    color: var(--quizy-intermediate-blue);
    letter-spacing: -0.02em;
    animation: qpPopIn 0.55s 0.2s cubic-bezier(0.34, 1.5, 0.64, 1) both;
}

@keyframes qpPopIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qp-score-denom {
    font-family: var(--title-font);
    font-size: 38px;
    font-weight: 700;
    color: #b5b9c1;
    padding-bottom: 8px;
}

/* Sub-stats row (classement + temps) */
.qp-sub-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-top: 1px solid #bfcff8;
}

.qp-sub-stat {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
    cursor: default;
    text-decoration: none !important;
    color: inherit !important;
}

.qp-sub-stat:first-child {
    border-right: 1px solid #e4e9f5;
}

.qp-sub-stat:hover {
    background: #f6f8fd;
}

.qp-sub-stat-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.qp-sub-stat-icon.blue {
    background: #eef2ff;
}

.qp-sub-stat-icon.green {
    background: #edfaf3;
}

.qp-sub-stat-icon.orange {
    background: #fff5e8;
}

.qp-sub-stat-icon[class*="bgcolor"] {
    color: #fff;
}

.qp-sub-stat-value {
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 800;
    color: #1a2340;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.qp-sub-stat-label {
    font-size: 12px;
    color: #7a8aaa;
    font-weight: 500;
    margin-top: 1px;
}

.qp-sub-stat.clickable {
    cursor: pointer;
}

.qp-sub-stat.clickable:hover .qp-sub-stat-value {
    color: var(--quizy-intermediate-blue);
}

.qp-rank-arrow {
    margin-left: auto;
    font-size: 14px;
    color: #7a8aaa;
    transition: transform 0.2s, color 0.2s;
}

.qp-sub-stat.clickable:hover .qp-rank-arrow {
    color: var(--quizy-intermediate-blue);
    transform: translateX(3px);
}

/* --- Monthly stats bloc --- */
.qp-monthly-bloc {
    margin: 12px 10px 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d4daf0;
    box-shadow: 0 1px 4px rgba(30, 50, 100, 0.07);
}

.qp-monthly-head {
    background: #f6f8fd;
    border-bottom: 1px solid #e4e9f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qp-monthly-head-icon { font-size: 18px; }

.qp-monthly-head h3 {
    font-family: var(--title-font);
    font-size: 13px;
    font-weight: 700;
    color: #1a2340;
    letter-spacing: -0.01em;
    flex: 1;
    margin: 0;
}

.qp-month-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c4dff;
    background: #f3eeff;
    border: 1px solid #cdb8ff;
    border-radius: 20px;
    padding: 3px 9px;
}

.qp-monthly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}

.qp-monthly-cell {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qp-monthly-cell:first-child {
    border-right: 1px solid #e4e9f5;
}

.qp-monthly-cell-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a8aaa;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.qp-monthly-cell-value {
    font-family: var(--title-font);
    font-size: 32px;
    font-weight: 900;
    color: #1a2340;
    letter-spacing: -0.01em;
    line-height: 1;
}

.qp-monthly-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    padding: 3px 8px;
    margin-top: 4px;
    align-self: flex-start;
}

.qp-delta-up {
    color: #16a760;
    background: #edfaf3;
    border: 1px solid #a8e6c8;
}

.qp-delta-down {
    color: #f4830a;
    background: #fff5e8;
    border: 1px solid #fad0a0;
}

.qp-monthly-foot {
    background: #f6f8fd;
    border-top: 1px solid #e4e9f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qp-monthly-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--quizy-intermediate-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    transition: gap 0.2s, opacity 0.2s;
}

.qp-monthly-link:hover {
    gap: 8px;
    opacity: 0.75;
}

.qp-streak-pill {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #d4920a;
    background: #fff8e6;
    border: 1px solid #f0d080;
    border-radius: 20px;
    padding: 3px 10px;
}

/* --- Card divider --- */
.qp-card-divider {
    height: 1px;
    background: #e4e9f5;
    margin: 16px 16px 0;
}

/* --- Answers visual bar (V2) --- */
.qp-answers-bar-wrapper { padding: 14px 16px 0; }

.qp-answers-visual-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.qp-answers-visual-bar > div {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.qp-answers-visual-bar > div:hover {
    transform: scale(1.3);
}

.qp-share-copy {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    color: #7a8aaa;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s ease;
    position: relative;
}

.qp-share-copy:hover {
    color: var(--quizy-intermediate-blue);
    background: #eef2ff;
}

.qp-share-copy .tooltip {
    display: none;
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2340;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* --- Card actions (modern buttons) --- */
.qp-card-actions {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .qp-card-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .qp-card-actions > :only-child {
        grid-column: 1 / -1;
    }
}

.qp-card-actions:empty {
    display: none;
}

/* quiz_items_div spans the full card width when placed inside card-actions or result-actions.
   The calc() compensates the horizontal padding on each side. */
.qp-card-actions > #quiz_items_div {
    grid-column: 1 / -1;
    width: calc(100% + 20px);  /* 2 × 10px padding */
    margin-left: -10px;
}

.qp-result-actions > #quiz_items_div {
    grid-column: 1 / -1;
    width: calc(100% + 32px);  /* 2 × 16px padding */
    margin-left: -16px;
}

/* Ensure stacked labels inside action buttons (card-actions & quiz-modes) */
.qp-card-actions .qp-btn i, .qp-quiz-modes-grid .qp-btn i { font-size: 22px; }
.qp-quiz-modes-grid .qp-btn i { margin-bottom: 2px; }

.qp-card-actions .qp-btn span, .qp-quiz-modes-grid .qp-btn span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qp-card-actions .qp-btn strong, .qp-quiz-modes-grid .qp-btn strong {
    font-size: 15px;
    font-weight: 700;
}

.qp-card-actions .qp-btn small, .qp-quiz-modes-grid .qp-btn small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.3;
}

.qp-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: var(--title-font);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-sizing: border-box;
    min-height: 48px;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

.qp-btn i,
.qp-btn .fa,
.qp-btn .fas,
.qp-btn .far,
.qp-btn .fab {
    flex-shrink: 0;
}

.qp-btn:hover {
    transform: scale(1.02);
}

.qp-btn:active {
    transform: scale(0.98);
}

.qp-btn-primary {
    background: var(--quizy_gradient);
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(29, 141, 215, 0.35);
}

.qp-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
    border-radius: 14px 14px 0 0;
}

.qp-btn-primary:hover {
    box-shadow: 0 6px 28px rgba(29, 141, 215, 0.45);
    color: #fff !important;
}

.qp-btn-secondary {
    background: #f6f8fd;
    color: #3a4a6a !important;
    border: 1px solid #d4daf0;
    box-shadow: 0 1px 4px rgba(30, 50, 100, 0.07);
}

.qp-btn-secondary:hover {
    background: #fff;
    border-color: #334781;
}

.qp-btn-secondary.bgcolorQPBlue { color: #fff !important; }

/* Warning button (Signaler un problème) */
.qp-btn-warning {
    background: #fff5f5;
    color: #c53030 !important;
    border: 1px solid #feb2b2;
    box-shadow: 0 1px 4px rgba(197, 48, 48, 0.07);
}

.qp-btn-warning:hover {
    background: #fff;
    border-color: #fc8181;
    color: #9b2c2c !important;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.15);
}

/* Small variant for inline buttons */
.qp-btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 10px;
    min-height: auto;
}

/* Danger variant */
.qp-btn-danger {
    background: #991010;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(153, 16, 16, 0.25);
}

.qp-btn-danger:hover {
    background: #7a0d0d;
    box-shadow: 0 4px 16px rgba(153, 16, 16, 0.35);
    color: #fff !important;
}

/* Success variant */
.qp-btn-success {
    background: #066406;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(6, 100, 6, 0.25);
}

.qp-btn-success:hover {
    background: #054e05;
    box-shadow: 0 4px 16px rgba(6, 100, 6, 0.35);
    color: #fff !important;
}

/* Ghost variant */
.qp-btn-ghost {
    background: transparent;
    color: #3a4a6a !important;
    border: 1px solid #b0bbd8;
}

.qp-btn-ghost:hover {
    background: #f0f3fb;
    border-color: #334781;
}

/* Layout utilities */
.qp-btn-auto { width: auto; }

.qp-btn.qp-btn-compact {
    width: fit-content;
    margin: 0 auto;
    white-space: nowrap;
}

.qp-btn-block {
    width: 100%;
    display: flex;
}

.qp-btn-grow { flex-grow: 1; }

/* Remark form actions (Envoyer / Annuler on same line) */
.remark-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Disabled state */
.qp-btn:disabled, .qp-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Gradient override: when qp-btn has quizy_gradient_2, style as gradient button */
.qp-btn.quizy_gradient_2 {
    background: var(--quizy_gradient2);
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(30, 50, 100, 0.15);
}

.qp-btn.quizy_gradient_2:hover {
    box-shadow: 0 4px 16px rgba(30, 50, 100, 0.25);
    color: #fff !important;
}

.qp-btn.quizy_gradient {
    background: var(--quizy_gradient);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 18px rgba(29, 141, 215, 0.35);
}

.qp-btn.quizy_gradient:hover {
    box-shadow: 0 6px 28px rgba(29, 141, 215, 0.45);
    color: #fff !important;
}

/* qp-btn layout "item" (icône + titre + sous-titre) */
.qp-btn-item { justify-content: flex-start; text-align: left; min-height: 60px; gap: 12px; width: 100%; }
.qp-btn-item-icon { width: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.qp-btn-item-content { flex: 1; min-width: 0; }
.qp-btn-item-content > :first-child { line-height: 1.3; }
.qp-btn-item-content > :last-child { margin-top: 2px; line-height: 1.4; }
.themeBlock > a { text-decoration: none; }

/* --- Composants utilitaires qp-  --- */

/* Icône colorée ronde inline (usage: <span class="bgcolor{N}v3 qp-cicon colorWhite"><i class="fas ..."></i></span>) */
.qp-cicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 30%;
    font-size: 11px;
    flex-shrink: 0;
    align-self: center;
}

/* Groupe de boutons filtre - grille responsive */
.qp-filter-group {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.qp-filter-group--3col { grid-template-columns: repeat(3, 1fr); }

.qp-filter-group--2col { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 480px) {
    .qp-filter-group--3col { grid-template-columns: repeat(2, 1fr); }
}

/* Boutons dans les groupes filtre : taille homogène + alignement gauche */
.qp-filter-group .qp-btn {
    height: 48px;
    justify-content: flex-start;
    padding: 0 7px;
    gap: 10px;
    overflow: hidden;
}

.qp-filter-group .qp-btn:hover {
    transform: none;
}

.qp-filter-group .qp-btn:active {
    transform: none;
}

.qp-filter-group .qp-btn > span:not(.qp-cicon) {
    text-align: left;
    flex: 1;
    line-height: 1.2;
    font-size: 13px;
}

.qp-quiz-trophy-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 18px;
    font-weight: 600;
}

.qp-quiz-trophy-prefix { color: #3a4a6a; }

.qp-quiz-trophy-row i {
    font-size: 30px;
}

.qp-quiz-trophy-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
}

.qp-quiz-trophy-label {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(43,40,40,0.35);
    margin-bottom: 2px;
}

#quiz_best_result_icon {
    text-shadow: 0 1px 0 rgba(43,40,40,0.35);
}

.qp-quiz-best-time {
    margin-top: 8px;
    font-size: 14px;
    color: #3a4a6a;
    font-weight: 600;
}

.qp-quiz-best-time i {
    margin-right: 4px;
}

.qp-quiz-best-result {
    background: linear-gradient(160deg, #dce8ff 0%, #eef2ff 100%);
    border-radius: 16px;
    padding: 16px;
    margin: 10px;
    text-align: center;
}

.qp-quiz-modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qp-quiz-modes-grid .qp-btn {
    flex-direction: column;
    text-align: center;
    padding: 18px 14px;
    gap: 6px;
}

@media (max-width: 480px) {
    .qp-quiz-modes-grid {
        grid-template-columns: 1fr;
    }
}

/* --- V2 large_button modernization --- */
.large_button {
    width: 100%;
    height: auto;
    min-height: 70px;
    border-radius: 14px;
    margin-bottom: 8px;
    color: #ffffff;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 50, 100, 0.08);
    transition: all 0.18s ease;
    box-sizing: border-box;
}

.large_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 50, 100, 0.14);
}

/* --- Status message v2 --- */
.qp-status-message {
    background: linear-gradient(160deg, #dce8ff 0%, #eef2ff 100%);
    border: 1px solid #bfcff8;
    border-radius: 14px;
    padding: 20px;
    font-weight: 600;
    margin: 12px auto;
    text-align: center;
    color: #1a2340;
    font-size: 15px;
}

/* --- Card header (icon + title) --- */
.qp-card-header {
    padding: 10px 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eef0f5;
    margin-bottom: 4px;
}

.qp-card-header .qp-card-icon {
    align-self: flex-start;
    margin-top: 2px;
}

.qp-card-icon {
    width: 50px;
    height: 50px;
    background: var(--quizy_gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 141, 215, 0.3);
    flex-shrink: 0;
}

/* When card-icon uses a category color class, adapt shadow */
.qp-card-icon[class*="bgcolor"] {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.qp-card-meta h2 a {
    color: inherit;
    text-decoration: none;
}

.qp-card-meta h2 a:hover {
    color: var(--quizy-intermediate-blue);
}

.qp-card-meta h2 {
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 700;
    color: #1a2340;
    letter-spacing: -0.02em;
    margin: 0;
}

.qp-card-meta h3 {
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 700;
    color: #1a2340;
    letter-spacing: -0.02em;
    margin: 0;
}

.qp-card-meta p {
    font-size: 14px;
    color: #7a8aaa;
    margin-top: 2px;
}

/* Generic padded body section inside a card */
.qp-card-body { padding: 10px 15px; }

/* Compact card header variant */
.qp-card-header--compact {
    padding: 12px 16px 10px;
    gap: 10px;
}

.qp-card-icon--sm {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 14px;
}

/* Inline toggle inside card header */
.qp-ranking-toggle-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* ============================================
   HOME PAGE - Modern Grid
   ============================================ */
.qp-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .qp-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.qp-home-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e4e9f5;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(30, 50, 100, 0.08);
}

.qp-home-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 50, 100, 0.12);
    border-color: var(--quizy-intermediate-blue);
}

.qp-home-tile-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qp-home-tile-title {
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 700;
    color: #1a2340;
}

.qp-home-tile-subtitle {
    font-size: 13px;
    color: #7a8aaa;
    line-height: 1.3;
}

/* --- Responsive adjustments for V2 cards --- */
@media (max-width: 480px) {
    .qp-score-bloc, .qp-monthly-bloc {
        margin: 12px 10px 0;
        border-radius: 14px;
    }

    .qp-score-num {
        font-size: 64px;
    }

    .qp-score-denom {
        font-size: 30px;
    }

    .qp-card-actions {
        padding: 10px 10px 16px;
    }

    .qp-card-divider {
        margin: 12px 10px 0;
    }

    .qp-card-header {
        padding: 14px 14px 0;
    }

    .qp-card-header.qp-card-header--standalone {
      padding-bottom: 10px;
    }

    .qp-card-header--compact {
        padding: 14px 14px 6px;
    }

    .qp-monthly-cell-value {
        font-size: 26px;
    }

    .qp-answers-bar-wrapper {
        padding: 10px 10px 0;
    }

    .qp-answers-visual-bar > div {
        width: 14px;
        height: 14px;
    }
}

/* === MQ Categories responsive grid === */
.mq-category-grid {
    display: grid;
    gap: 8px;
}

/* Desktop large → 4 colonnes max (donc 2 lignes si 8 items) */
@media (min-width: 769px) {
    .mq-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile → 4 colonnes compactes (2 lignes pour 8 items) */
@media (max-width: 768px) {
    .mq-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .mq-category-grid .category_button {
        padding: 8px 4px;
        border-radius: 12px;
    }

    .mq-category-grid .qp-card-icon {
        width: 33px;
        height: 33px;
        border-radius: 8px;
        font-size: 13px;
    }

    .mq-category-grid .category_icon {
        font-size: 16px !important;
    }

    .mq-category-grid .category_button_content {
        margin-top: 5px;
    }

    .mq-category-grid .category_button_name {
        font-size: 12px;
    }

}

.mq-category-grid .category_button {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.mq-category-grid .category_icon {
    font-size: 24px;
}

/* Ensure action buttons render nicely as equal height on grid */
.qp-card-actions .qp-btn,
.qp-result-actions .qp-btn {
    height: 100%;
}

.qp-card-actions > div,
.qp-result-actions > div {
    display: flex;
    width: 100%;
}

.qp-card-actions > div > .qp-btn,
.qp-result-actions > div > .qp-btn,
.qp-result-actions > div > a > .qp-btn {
    width: 100%;
}

.qp-result-actions > div > a {
    display: flex;
    width: 100%;
    text-decoration: none;
}

/* Toggle questions buttons (haut et bas) */
#toggle_questions_btn,
#toggle_questions_btn_bottom {
    white-space: nowrap;
}

#toggle_questions_btn i,
#toggle_questions_btn_bottom i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#toggle_questions_btn:hover i,
#toggle_questions_btn_bottom:hover i {
    transform: scale(1.2);
}

#toggle_questions_btn #toggle_questions_label {
    overflow: hidden;
    text-overflow: ellipsis;
}

#all_quiz_div { width: 100%; }

/* Bottom "Masquer" button — inside all_quiz_div, hidden with it automatically */
.qp-toggle-bottom {
    text-align: center;
    padding: 8px 0 4px;
    border-top: 1px solid #eeeeee;
    margin-top: 8px;
}

/* =============================================================================
   REFONTE UI PARTIE — Carte question + réponses
   ============================================================================= */

/* ── Carte question : barre thème (gradient) + corps blanc seamless ────────── */

/* La barre thème (questionTopDiv) hérite sa bordure du questionDiv */
.questionTopDiv {
    border: 1px solid var(--question_background);
    border-bottom: none;
}

/* Corps de la carte : retirer la bordure haute pour un raccord propre */
.questionDiv {
    border-top: none !important;
}

/* Texte de la question dans le corps blanc */
.qp-question-text {
    text-align: center !important;
    color: var(--quizy-intermediate-blue);
    line-height: 1.5;
    padding-bottom: 1px;
}

/* ── Barre de progression (Q en cours / total) ───────────────────────────────*/
.qp-game-progress {
    height: 5px;
    background: rgba(17, 82, 161, 0.12);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 0 6px;
}
.qp-game-progress__fill {
    height: 100%;
    background: var(--quizy-intermediate-blue);
    border-radius: 3px;
    transition: width 0.5s ease;
    min-width: 2%;
}

/* ── Barre meta mobile (Q# / Score) — masquée sur grand écran ──────────────── */
.qp-game-meta-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 5px;
    background: #f0f4fb;
    border: 1px solid #dce6f5;
    border-radius: 8px;
}
.qp-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--quizy-intermediate-blue);
}
.qp-meta-item .fas {
    font-size: 12px;
    opacity: 0.65;
}
.qp-meta-suffix {
    font-size: 14px;
    font-weight: 500;
    color: #8899bb;
}
@media (max-width: 1134px) {
    .qp-game-meta-mobile { display: flex; }
}

/* ── Badge lettre à gauche des réponses ─────────────────────────────────────── */
.qp-answer-badge-cell {
    width: 1px;          /* shrink to badge width */
    white-space: nowrap;
}
.qp-answer-badge-cell .question_check {
    margin-left: 10px;
    margin-right: 8px;
}

/* Lettre badge couleur neutre : bleu Quizy (remplace le gris #ccc) */
#quizDiv .check_unknown {
    background: var(--quizy-intermediate-blue);
    font-family: var(--title-font);
    font-weight: 800;
}

/* ── État bonne réponse : léger fond vert en plus de la bordure verte ────────── */
.optionTable.border_right {
    background: rgba(101, 206, 63, 0.1) !important;
}

/* ── État invalide : badge gris (réponses non sélectionnées et fausses) ─────────── */
.border_invalid_proposition .question_check,
#quizDiv .border_invalid_proposition .question_check {
    background: #bbb !important;
}

/* ── Mobile : hauteur de touche légèrement augmentée ───────────────────────── */
@media (max-width: 480px) {
    .responseLeftTD { height: 56px !important; }
    .dcQuestionHintSize { font-size: 17px; }
}

/* ── Grand écran : responsesTable alignée sur la colonne centrale du questionTable ── */
/*
 *  Layout questionTable sur ≥1135px (border-spacing: 7px 0) :
 *    7px | sidebar 200px | 7px | centre | 7px | sidebar 200px | 7px
 *    Décalage total = 4×7 + 2×200 = 428px  →  centre = calc(100% - 428px)
 *  La responsesTable prend exactement cette largeur, centrée par margin: auto.
 *
 *  Scope : #quizDiv uniquement (partie active).
 *  Les résultats sont rendus dans #resultats/#resultatsMain → non affectés.
 */
@media (min-width: 1135px) {
    #quizDiv .responsesTable {
        width: calc(100% - 428px);
    }
}