/* =============================================================================
   AMPHYX MYSTERY — habillage « mystère » (19/11/2026)
   Nuit profonde, lueurs cyan et or, étoiles animées, textes qui se déchiffrent.
   Chargé seulement sur les pages Mystery (includes/mx_assets.html).
   Les pages existantes sont enveloppées dans .mx-skin : les règles « Partie B »
   recolorent leurs cartes, tableaux et textes clairs sans toucher au HTML.
   ============================================================================= */
.mx-skin {
    --mx-bg: #0b1020;
    --mx-bg-2: #0a1530;
    --mx-panel: rgba(255, 255, 255, 0.045);
    --mx-panel-2: rgba(255, 255, 255, 0.08);
    --mx-line: rgba(148, 178, 255, 0.16);
    --mx-text: #e8edf8;
    --mx-muted: #93a0bd;
    --mx-cyan: #4de3ff;
    --mx-violet: #8b5cf6;
    --mx-gold: #f9b700;
    --mx-fire: #ee390f;
    --mx-green: #34d399;
    position: relative;
    background: #0b1020;
    color: var(--mx-text);
}
body.mx-page {
    background: #050b18;
}

/* ---------- Partie A : composants propres à Mystery ---------- */
.mx-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.mx-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mx-fire, #ee390f);
    box-shadow: 0 0 0 0 rgba(238, 57, 15, 0.7);
    animation: mxPulse 1.6s infinite;
    vertical-align: middle;
}
i.mx-live-dot {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--mx-fire, #ee390f);
    box-shadow: none;
    animation: mxBlink 1.6s infinite;
}
@keyframes mxPulse {
    0% { box-shadow: 0 0 0 0 rgba(238, 57, 15, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(238, 57, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(238, 57, 15, 0); }
}
@keyframes mxBlink {
    50% { opacity: 0.35; }
}

/* En-tête immersif */
.mx-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background: #0b1020;
    border-bottom: 1px solid var(--mx-line);
}
.mx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}
.mx-fog {
    position: absolute;
    inset: -20%;
    background: none;
    background-size: 60% 60%, 50% 50%;
    background-position: 10% 30%, 80% 70%;
    background-repeat: no-repeat;
    filter: blur(30px);
    animation: mxFog 18s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes mxFog {
    to { background-position: 40% 60%, 50% 20%; }
}
.mx-hero .container {
    position: relative;
    z-index: 1;
}
.mx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}
.mx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid rgba(77, 227, 255, 0.35);
    border-radius: 999px;
    background: rgba(77, 227, 255, 0.06);
    color: var(--mx-cyan);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.mx-hero-title {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(40px, 5.6vw, 72px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
}
.mx-hero-title em {
    color: var(--mx-cyan);
    font-style: normal;
}
.mx-hero-lead {
    max-width: 560px;
    margin: 0 0 26px;
    color: var(--mx-muted);
    font-size: 17px;
    line-height: 1.7;
}
.mx-hero-facts {
    display: flex;
    gap: 12px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}
.mx-hero-facts li {
    padding: 12px 18px;
    border: 1px solid var(--mx-line);
    border-radius: 14px;
    background: var(--mx-panel);
    backdrop-filter: blur(6px);
}
.mx-hero-facts b {
    display: block;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}
.mx-hero-facts span {
    color: var(--mx-muted);
    font-size: 12.5px;
}
.mx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Boutons */
.mx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.mx-btn:hover {
    transform: translateY(-2px);
}
.mx-btn--primary {
    background: #0891b2;
    box-shadow: 0 10px 28px rgba(77, 227, 255, 0.25);
    color: #ffffff !important;
}
.mx-btn--primary:hover {
    box-shadow: 0 14px 36px rgba(124, 92, 240, 0.4);
}
.mx-btn--fire {
    background: #ee390f;
    box-shadow: 0 10px 28px rgba(238, 57, 15, 0.35);
    color: #ffffff !important;
}
.mx-btn--ghost {
    border-color: var(--mx-line);
    background: var(--mx-panel);
    color: var(--mx-text) !important;
}
.mx-btn--ghost:hover {
    border-color: rgba(77, 227, 255, 0.5);
    color: #ffffff !important;
}

/* Orbe « ? » */
.mx-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}
.mx-orb {
    position: relative;
    width: 230px;
    height: 230px;
}
.mx-orb-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(77, 227, 255, 0.35);
    border-radius: 50%;
    animation: mxSpin 18s linear infinite;
}
.mx-orb-ring::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mx-cyan);
    box-shadow: 0 0 14px var(--mx-cyan);
}
.mx-orb-ring--2 {
    inset: 26px;
    border-color: rgba(167, 139, 250, 0.4);
    animation-duration: 12s;
    animation-direction: reverse;
}
.mx-orb-ring--2::before {
    background: #a78bfa;
    box-shadow: 0 0 14px #a78bfa;
}
.mx-orb-ring--3 {
    inset: 52px;
    border-style: dashed;
    border-color: rgba(249, 183, 0, 0.35);
    animation-duration: 26s;
}
.mx-orb-ring--3::before {
    background: var(--mx-gold);
    box-shadow: 0 0 14px var(--mx-gold);
}
@keyframes mxSpin {
    to { transform: rotate(360deg); }
}
.mx-orb-core {
    position: absolute;
    inset: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1b2a5e;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.55), inset 0 0 24px rgba(77, 227, 255, 0.35);
    color: #ffffff;
    font-size: 46px;
    font-weight: 800;
    text-shadow: 0 0 18px rgba(77, 227, 255, 0.9);
    animation: mxFloat 4s ease-in-out infinite;
}
@keyframes mxFloat {
    50% { transform: translateY(-6px) scale(1.04); }
}

/* Carte « prochaine édition » */
.mx-next {
    position: relative;
    display: block;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid var(--mx-line);
    border-radius: 18px;
    background: rgba(10, 21, 48, 0.75);
    backdrop-filter: blur(8px);
    color: var(--mx-text) !important;
    text-decoration: none !important;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.mx-next:hover {
    border-color: rgba(77, 227, 255, 0.5);
    transform: translateY(-3px);
}
.mx-next-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mx-cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.mx-next strong {
    display: block;
    margin: 6px 0 12px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
}
.mx-next-cta {
    color: var(--mx-fire);
    font-weight: 700;
}
.mx-countdown--blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.mx-countdown--blocks span {
    padding: 8px 0;
    border: 1px solid var(--mx-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}
.mx-countdown--blocks b {
    display: block;
    color: #ffffff;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.1;
}
.mx-countdown--blocks small {
    color: var(--mx-muted);
    font-size: 10.5px;
    text-transform: uppercase;
}

/* Halo qui suit la souris */
.mx-glow::before,
.mx-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mx-glow:hover::before,
.mx-card:hover::before {
    opacity: 1;
}
.mx-glow > *,
.mx-card > * {
    position: relative;
    z-index: 1;
}

/* Sous-navigation (ordinateur) */
.mx-subnav {
    position: sticky;
    top: 72px;
    z-index: 20;
    border-bottom: 1px solid var(--mx-line);
    background: rgba(5, 11, 24, 0.82);
    backdrop-filter: blur(10px);
}
.mx-subnav .container {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mx-subnav a {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    color: var(--mx-muted) !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.mx-subnav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--mx-cyan);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.mx-subnav a:hover,
.mx-subnav a.is-active {
    color: #ffffff !important;
}
.mx-subnav a:hover::after,
.mx-subnav a.is-active::after {
    transform: scaleX(1);
}
.mx-subnav .mx-subnav-aside {
    margin-left: auto;
    color: var(--mx-cyan) !important;
}

/* Barre fixe en bas d'écran (mobile) */
.mx-dock {
    display: none;
}
@media (max-width: 767.98px) {
    .mx-subnav {
        display: none;
    }
    .mx-dock {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 1035;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        padding: 6px;
        border: 1px solid rgba(148, 178, 255, 0.22);
        border-radius: 20px;
        background: rgba(7, 15, 34, 0.92);
        backdrop-filter: blur(14px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    }
    .mx-dock a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 7px 2px 6px;
        border-radius: 14px;
        color: #93a0bd !important;
        font-size: 10.5px;
        font-weight: 600;
        text-decoration: none !important;
    }
    .mx-dock a i {
        font-size: 18px;
    }
    .mx-dock a.is-active {
        background: rgba(77, 227, 255, 0.1);
        color: #ffffff !important;
    }
    .mx-dock a.is-active i {
        color: #4de3ff;
    }
    .mx-dock .mx-dock-main i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-top: -24px;
        border: 3px solid #070f22;
        border-radius: 50%;
        background: #0891b2;
        box-shadow: 0 8px 22px rgba(124, 92, 240, 0.55);
        color: #ffffff !important;
        font-size: 20px;
    }
    /* Laisser la place à la barre et remonter l'assistant flottant */
    body.mx-page {
        padding-bottom: 96px !important;
    }
    body.mx-page .campusx-ai-trigger,
    body.mx-page #campusxAiTriggerBtn {
        bottom: 104px !important;
    }
}

/* Section, barre d'outils, puces */
.mx-section {
    position: relative;
    padding: 40px 0 80px;
}
.mx-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.mx-search {
    display: flex;
    flex: 1 1 320px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 16px;
    height: 50px;
    border: 1px solid var(--mx-line);
    border-radius: 14px;
    background: var(--mx-panel);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mx-search:focus-within {
    border-color: rgba(77, 227, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(77, 227, 255, 0.12);
}
.mx-search i {
    color: var(--mx-muted);
}
.mx-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
}
.mx-search input::placeholder {
    color: #6c7896;
}
.mx-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mx-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--mx-line);
    border-radius: 999px;
    background: var(--mx-panel);
    color: var(--mx-muted) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.mx-chip span:not(.mx-live-dot) {
    padding: 0 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}
.mx-chip:hover {
    border-color: rgba(77, 227, 255, 0.45);
    color: #ffffff !important;
}
.mx-chip.is-active {
    border-color: transparent;
    background: rgba(8, 145, 178, 0.92);
    color: #ffffff !important;
}
.mx-chip--clear {
    color: #ff9b7f !important;
}
.mx-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid var(--mx-line);
    border-radius: 12px;
    background: var(--mx-panel-2);
    color: var(--mx-text);
}
.mx-alert--error {
    border-color: rgba(238, 57, 15, 0.5);
}
.mx-alert--success {
    border-color: rgba(52, 211, 153, 0.5);
}

/* Cartes d'édition */
.mx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 22px;
}
.mx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mx-line);
    border-radius: 20px;
    background: #141b2e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.mx-card:hover {
    transform: translateY(-6px);
    border-color: rgba(77, 227, 255, 0.45);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(77, 227, 255, 0.15);
}
.mx-card.is-live {
    border-color: rgba(238, 57, 15, 0.55);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 40px rgba(238, 57, 15, 0.18);
}
.mx-card.is-ended {
    opacity: 0.88;
}
.mx-card-media {
    position: relative;
    display: block;
    height: 170px;
    overflow: hidden;
    background: #1b2a5e;
}
.mx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.65) hue-rotate(-10deg);
    transition: transform 0.6s ease, filter 0.6s ease;
}
.mx-card:hover .mx-card-media img {
    transform: scale(1.06);
    filter: saturate(1) brightness(0.75);
}
.mx-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 32, 0.35);
}
.mx-card-glyph {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: -18px;
    color: rgba(77, 227, 255, 0.18);
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.6s ease, color 0.6s ease;
}
.mx-card:hover .mx-card-glyph {
    transform: rotate(-12deg) scale(1.08);
    color: rgba(167, 139, 250, 0.35);
}
.mx-card-status {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}
.mx-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.mx-pill--live {
    background: rgba(238, 57, 15, 0.9);
    color: #ffffff;
}
.mx-pill--live .mx-live-dot {
    background: #ffffff;
}
.mx-pill--open {
    background: rgba(52, 211, 153, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #8af0c9;
}
.mx-pill--soon {
    background: rgba(77, 227, 255, 0.12);
    border: 1px solid rgba(77, 227, 255, 0.45);
    color: #9beeff;
}
.mx-pill--ended {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd3e6;
}
.mx-card-body {
    flex: 1;
    padding: 4px 22px 16px;
}
.mx-card-theme {
    color: var(--mx-cyan);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.mx-card h3 {
    margin: 8px 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}
.mx-card h3 a {
    color: #ffffff !important;
    text-decoration: none !important;
}
.mx-card-body > p {
    margin: 0 0 14px;
    color: var(--mx-muted);
    font-size: 14px;
    line-height: 1.6;
}
.mx-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    color: #c3cbe0;
    font-size: 13px;
}
.mx-card-meta i {
    margin-right: 4px;
    color: var(--mx-cyan);
}
.mx-card-countdown {
    margin: 0 0 12px;
    color: var(--mx-muted);
    font-size: 13.5px;
}
.mx-card-countdown b {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.mx-card-countdown i {
    margin-right: 4px;
    color: var(--mx-gold);
}
.mx-card-prize {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(249, 183, 0, 0.25);
    border-radius: 12px;
    background: rgba(249, 183, 0, 0.06);
    color: #ffe39a;
    font-size: 13.5px;
    font-weight: 600;
}
.mx-medal {
    display: inline-flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f5b800;
    box-shadow: 0 0 14px rgba(249, 183, 0, 0.5);
    color: #3d2a05;
    font-size: 13px;
    font-weight: 800;
}
.mx-card-seats small {
    color: var(--mx-muted);
    font-size: 12.5px;
}
.mx-bar {
    height: 6px;
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}
.mx-bar span {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: 6px;
    background: var(--mx-cyan);
}
.mx-card-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    padding: 0 22px 22px;
}
.mx-card-actions .mx-btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
}

/* Apparition au défilement */
.mx-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.mx-reveal.is-in {
    opacity: 1;
    transform: none;
}
.mx-card.mx-reveal.is-in:hover {
    transform: translateY(-6px);
}

/* État vide */
.mx-empty {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 20px auto;
    padding: 46px 28px;
    border: 1px dashed var(--mx-line);
    border-radius: 22px;
    background: var(--mx-panel);
    text-align: center;
}
.mx-empty-glyph {
    display: inline-block;
    color: var(--mx-cyan);
    font-size: 64px;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(77, 227, 255, 0.6);
    animation: mxFloat 4s ease-in-out infinite;
}
.mx-empty h3 {
    margin: 8px 0;
    color: #ffffff;
    font-size: 21px;
}
.mx-empty p {
    margin: 0 0 22px;
    color: var(--mx-muted);
}
.mx-empty .mx-hero-actions {
    justify-content: center;
}

/* ---------- Partie B : habillage des pages existantes (détail, classement…) ---------- */
html body .mx-skin section.breadcrumb.breadcrumb_bg {
    position: relative;
    overflow: hidden;
    padding: 60px 0 54px !important;
    border-bottom: 1px solid var(--mx-line) !important;
    background: #0b1020 !important;
}
html body .mx-skin section.breadcrumb.breadcrumb_bg .container {
    position: relative;
    z-index: 1;
}
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item .breadcrumb_tag {
    padding: 6px 14px !important;
    border: 1px solid rgba(77, 227, 255, 0.35) !important;
    border-radius: 999px !important;
    background: rgba(77, 227, 255, 0.06) !important;
    color: var(--mx-cyan) !important;
    letter-spacing: 1.4px !important;
}
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item h2,
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item h1 {
    color: #ffffff !important;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
}
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item p,
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item p span {
    color: var(--mx-muted) !important;
}
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb-header-cta {
    border: none !important;
    border-radius: 12px !important;
    background: #0891b2 !important;
    box-shadow: 0 10px 28px rgba(77, 227, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Fonds clairs -> verre sombre */
html body .mx-skin .section_padding,
html body .mx-skin section[style*="background: #f8fafc"],
html body .mx-skin section.bg-light {
    background: transparent !important;
}
html body .mx-skin .card,
html body .mx-skin .bg-white,
html body .mx-skin .bg-light,
html body .mx-skin [style*="background: #ffffff"],
html body .mx-skin [style*="background:#ffffff"],
html body .mx-skin [style*="background: #fff;"],
html body .mx-skin [style*="background: #f8fafc"],
html body .mx-skin [style*="background: #f1f5f9"],
html body .mx-skin [style*="background: #fafafa"],
html body .mx-skin [style*="background: #eff6ff"],
html body .mx-skin [style*="background: #f0fdf4"],
html body .mx-skin [style*="background: #fffbeb"],
html body .mx-skin [style*="background: linear-gradient(135deg, #fff"],
html body .mx-skin [style*="background: linear-gradient(180deg, #fff"] {
    border-color: var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    color: var(--mx-text);
}
html body .mx-skin .card {
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(4px);
}
html body .mx-skin .border,
html body .mx-skin .border-top,
html body .mx-skin .border-bottom,
html body .mx-skin hr {
    border-color: var(--mx-line) !important;
}
/* Textes sombres -> clairs */
html body .mx-skin .text-dark,
html body .mx-skin h1,
html body .mx-skin h2,
html body .mx-skin h3,
html body .mx-skin h4,
html body .mx-skin h5,
html body .mx-skin h6,
html body .mx-skin strong,
html body .mx-skin b,
html body .mx-skin [style*="color: #0c2e60"],
html body .mx-skin [style*="color: #0f172a"],
html body .mx-skin [style*="color: #1e293b"],
html body .mx-skin [style*="color: #334155"] {
    color: #f1f4fb !important;
}
html body .mx-skin .text-muted,
html body .mx-skin small,
html body .mx-skin p,
html body .mx-skin [style*="color: #64748b"],
html body .mx-skin [style*="color: #475569"] {
    color: var(--mx-muted) !important;
}
html body .mx-skin a.text-dark:hover,
html body .mx-skin .hover-orange:hover {
    color: var(--mx-cyan) !important;
}
html body .mx-skin .text-primary {
    color: var(--mx-cyan) !important;
}
html body .mx-skin .text-success {
    color: var(--mx-green) !important;
}
html body .mx-skin .text-warning {
    color: var(--mx-gold) !important;
}
/* Badges */
html body .mx-skin .badge-light,
html body .mx-skin .badge.border {
    border-color: var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #d6dcec !important;
}
/* Boutons Bootstrap */
html body .mx-skin .btn {
    border-radius: 12px !important;
}
html body .mx-skin .btn-primary,
html body .mx-skin .btn[style*="background: #0c2e60"] {
    border: none !important;
    background: #0891b2 !important;
    box-shadow: 0 8px 22px rgba(77, 227, 255, 0.2);
    color: #ffffff !important;
}
html body .mx-skin .btn-light,
html body .mx-skin .btn-outline-primary,
html body .mx-skin .btn-outline-secondary,
html body .mx-skin .btn-outline-dark,
html body .mx-skin .btn[style*="background: #f1f5f9"] {
    border: 1px solid var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--mx-text) !important;
}
/* Tableaux */
html body .mx-skin table,
html body .mx-skin .table {
    color: var(--mx-text) !important;
}
html body .mx-skin .table thead th,
html body .mx-skin table thead th {
    border-color: var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--mx-muted) !important;
}
html body .mx-skin .table td,
html body .mx-skin .table th {
    border-color: var(--mx-line) !important;
}
html body .mx-skin .table tbody tr:hover {
    background: rgba(77, 227, 255, 0.05) !important;
}
html body .mx-skin .table-striped tbody tr:nth-of-type(odd),
html body .mx-skin tr.bg-light,
html body .mx-skin tr[style*="background"] {
    background: rgba(255, 255, 255, 0.025) !important;
}
/* Champs de formulaire */
html body .mx-skin .form-control,
html body .mx-skin input[type="text"],
html body .mx-skin input[type="search"],
html body .mx-skin input[type="tel"],
html body .mx-skin select {
    border-color: var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}
html body .mx-skin .form-control::placeholder {
    color: #6c7896 !important;
}
html body .mx-skin .alert {
    border-color: var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--mx-text) !important;
}
html body .mx-skin .progress {
    background: rgba(255, 255, 255, 0.08) !important;
}
/* Barre de recherche du thème */
html body .mx-skin .campusx-search-ribbon-bar {
    border-color: var(--mx-line) !important;
    background: rgba(5, 11, 24, 0.6) !important;
    box-shadow: none !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
    .mx-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .mx-hero-side {
        flex-direction: row;
        align-items: center;
    }
    .mx-orb {
        flex: 0 0 150px;
        width: 150px;
        height: 150px;
    }
    .mx-orb-ring--2 { inset: 18px; }
    .mx-orb-ring--3 { inset: 36px; }
    .mx-orb-core {
        inset: 50px;
        font-size: 30px;
    }
}
@media (max-width: 575.98px) {
    .mx-hero {
        padding: 40px 0 36px;
    }
    .mx-hero-lead {
        font-size: 15.5px;
    }
    .mx-hero-facts {
        gap: 8px;
    }
    .mx-hero-facts li {
        flex: 1;
        padding: 10px 10px;
        text-align: center;
    }
    .mx-hero-facts b {
        font-size: 18px;
    }
    .mx-hero-actions .mx-btn {
        flex: 1 1 auto;
    }
    .mx-hero-side {
        flex-direction: column;
    }
    .mx-orb {
        display: none;
    }
    .mx-next {
        max-width: none;
    }
    .mx-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .mx-toolbar {
        gap: 10px;
    }
    .mx-chips {
        width: 100%;
    }
    html body .mx-skin section.breadcrumb.breadcrumb_bg {
        padding: 36px 0 30px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mx-skin *,
    .mx-skin *::before,
    .mx-skin *::after {
        animation: none !important;
        transition: none !important;
    }
    .mx-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Partie C : composants clairs propres aux pages Mystery ---------- */
html body .mx-skin .list-group-item {
    background: transparent !important;
    color: var(--mx-text) !important;
}
/* Classement */
html body .mx-skin .cx-leaderboard-card,
html body .mx-skin .cx-participant-mobile-card {
    border: 1px solid var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3) !important;
}
html body .mx-skin .cx-leaderboard-card .card-header {
    background: transparent !important;
}
html body .mx-skin .cx-table-nowrap thead th {
    background: rgba(255, 255, 255, 0.04) !important;
}
html body .mx-skin .cx-is-user-highlight,
html body .mx-skin .cx-is-user-mobile-card {
    background: rgba(77, 227, 255, 0.08) !important;
}
html body .mx-skin .cx-leaderboard-table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}
html body .mx-skin .cx-leaderboard-table-responsive::-webkit-scrollbar-thumb {
    background: rgba(148, 178, 255, 0.3);
}
/* Palmarès : cartes des gagnants en verre sombre, liseré de la couleur du rang */
html body .mx-skin .cx-winner-card {
    border: 1px solid var(--mx-line) !important;
    background: #141b2e !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35) !important;
}
html body .mx-skin .cx-card-rank-1 {
    border-color: rgba(249, 183, 0, 0.45) !important;
    background: #1d1b17 !important;
}
html body .mx-skin .cx-card-rank-2 {
    border-color: rgba(203, 213, 225, 0.4) !important;
    background: #171c26 !important;
}
html body .mx-skin .cx-card-rank-3 {
    border-color: rgba(234, 88, 12, 0.45) !important;
    background: #1d1712 !important;
}
html body .mx-skin .cx-winner-card:hover {
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(77, 227, 255, 0.12) !important;
}
html body .mx-skin .cx-winner-edition-box,
html body .mx-skin .cx-metric-box,
html body .mx-skin .cx-metric-cash,
html body .mx-skin .cx-metric-sp,
html body .mx-skin .cx-winner-pill,
html body .mx-skin .cx-mystery-tag,
html body .mx-skin .cx-edition-badge-gold,
html body .mx-skin .cx-edition-badge-blue,
html body .mx-skin .cx-edition-badge-bronze,
html body .mx-skin .cx-podium-pill {
    border-color: var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--mx-text) !important;
}
html body .mx-skin .cx-mystery-tag-gold,
html body .mx-skin .cx-edition-badge-gold {
    color: #ffd970 !important;
}
html body .mx-skin .cx-cta-silver,
html body .mx-skin .cx-cta-bronze,
html body .mx-skin .cx-cta-default {
    border: 1px solid var(--mx-line) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--mx-text) !important;
}

/* =============================================================================
   Alignement sur l'espace Jeux (01/12/2026) : couleurs plates, en-têtes centrés.
   ============================================================================= */
.mx-hero { padding: 48px 0 44px; }
.mx-hero::after, .mx-fog { display: none; }
.mx-hero-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
.mx-hero-text { max-width: 860px; margin: 0 auto; }
.mx-hero-lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.mx-hero-facts, .mx-hero-actions { justify-content: center; }
.mx-hero-side { order: -1; flex-direction: column-reverse; gap: 18px; }
.mx-hero-side .mx-orb { width: 120px; height: 120px; }
.mx-hero-side .mx-orb-core { font-size: 40px; }
.mx-hero-side .mx-next { max-width: 460px; text-align: left; }
.mx-hero-title { font-size: clamp(38px, 5.4vw, 66px); }

html body .mx-skin section.breadcrumb.breadcrumb_bg { padding: 44px 0 40px !important; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .row { flex-direction: column; align-items: center; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .row > [class*="col-lg"] { flex: 0 0 100%; max-width: 860px; text-align: center !important; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner,
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner_item { text-align: center !important; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner_item h2,
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner_item h1 { margin-left: auto; margin-right: auto; text-shadow: none !important; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner_item p { max-width: 680px; margin-left: auto; margin-right: auto; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .row > [class*="col-lg"] .d-flex { justify-content: center !important; flex-wrap: wrap; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb-header-cta { box-shadow: 0 5px 0 #075e72 !important; }
html body .mx-skin .btn-primary { box-shadow: none; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item h2 { text-shadow: none !important; }
html body .mx-skin [style*="background: #fef2f2"], html body .mx-skin [style*="background: #fee2e2"] { background: rgba(239, 68, 68, 0.12) !important; border-color: rgba(239, 68, 68, 0.35) !important; }
html body .mx-skin [style*="background: #fefce8"], html body .mx-skin [style*="background: #fef3c7"], html body .mx-skin [style*="background: #fff7ed"] { background: rgba(250, 204, 21, 0.1) !important; border-color: rgba(250, 204, 21, 0.3) !important; }
html body .mx-skin [style*="background: #f0f7ff"], html body .mx-skin [style*="background: #faf5ff"], html body .mx-skin [style*="background: #fbfcfe"], html body .mx-skin [style*="background:#f1f5f9"] { background: rgba(255, 255, 255, 0.045) !important; }
html body .mx-skin [style*="background: #fef2f2"] *, html body .mx-skin [style*="background: #fee2e2"] * { color: #fca5a5 !important; }
html body .mx-skin [style*="background: #fefce8"] *, html body .mx-skin [style*="background: #fef3c7"] * { color: #fde047 !important; }
html body .mx-skin section.breadcrumb.breadcrumb_bg .row > [class*="col-lg"] + [class*="col-lg"] { margin-top: 18px !important; }
/* Palmarès : noms du podium lisibles sur fond sombre */
html body .mx-skin .cx-podium-pill { background: #1e293b !important; border: 2px solid rgba(255, 255, 255, 0.14) !important; }
html body .mx-skin .cx-step-rank-1 .cx-podium-pill { border-color: rgba(251, 191, 36, 0.7) !important; }
html body .mx-skin .cx-podium-pill .cx-podium-name { color: #ffffff !important; }
html body .mx-skin .cx-podium-pill .cx-podium-score { color: #fb923c !important; }
html body .mx-skin [style*="color: #059669"], html body .mx-skin [style*="color: #047857"] { color: #34d399 !important; }
html body .mx-skin [style*="color: #1d4ed8"] { color: #60a5fa !important; }
