:root {
            --space-black: #05070a;
            --space-dark: #0d1117;
            --space-card: #161b22;
            --space-border: #30363d;
            --astro-blue: #58a6ff;
        }

        body {
            background-color: var(--space-black);
            /* On mélange un dégradé de nébuleuse et un motif d'étoiles fixes */
            background-image:
                radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
                url('https://www.transparenttextures.com/patterns/stardust.png');
            background-attachment: fixed;
            color: #c9d1d9;
        }

        /* Barre de navigation plus moderne (floutée) */
        .navbar {
            background-color: rgba(22, 27, 34, 0.8) !important;
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--space-border);
        }

        /* CARTES : On ajoute un "glow" interne pour l'effet vitre */
        .card {
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background-color: rgba(22, 27, 34, 0.6) !important;
            backdrop-filter: blur(8px);
            border: 1px solid var(--space-border) !important;
            box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
        }

        .card:hover {
            transform: translateY(-8px);
            border-color: var(--astro-blue) !important;
            box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2) !important;
        }

        /* BARRE DE PROGRESSION : On enlève le "striped" qui fait vieux Windows */
        .progress {
            background-color: #000 !important;
            border: 1px solid #444c56 !important;
            overflow: visible; /* Pour laisser déborder la lueur */
        }

        .shadow-glow {
            box-shadow: 0 0 20px rgba(13, 202, 240, 0.6);
            position: relative;
        }
        .footer {
            border-top: 1px solid var(--space-border);
            padding: 30px 0;
            margin-top: 60px;
            background: rgba(13, 17, 23, 0.5);
            text-align: center !important; /* Force le centrage */
            width: 100%;
        }

        .glow-icon {
            display: inline-block !important;
            color: #ffca28 !important;
            font-size: 1.2rem;
            filter: drop-shadow(0 0 8px #ffca28); /* Lueur statique */
            animation: scintillement 2s infinite alternate !important;
        }

        @keyframes scintillement {
            from {
                filter: drop-shadow(0 0 2px #ffca28);
                transform: scale(1);
                }
            to {
                filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 25px #ffca28);
                transform: scale(1.3);
                }
        }

         /* Effet scanneur laser sur l'image */
    .img-scanner-container {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        border: 1px solid #444;
    }
    .img-scanner-container img {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
        display: block;
    }
    .scanner-line {
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        height: 4px;
        background: rgba(88, 166, 255, 0.7);
        box-shadow: 0 0 15px #58a6ff, 0 0 25px #58a6ff;
        animation: scan-move 4s infinite linear;
    }
    @keyframes scan-move {
        0% { top: 0%; }
        50% { top: 100%; }
        100% { top: 0%; }
    }

    /* Style Mission Complète */
    .mission-complete {
        background: rgba(40, 167, 69, 0.1);
        border: 1px solid #28a745;
        border-radius: 15px;
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.2);
    }

    /* Boutons et interactions */
    .btn-back-hover {
        transition: transform 0.3s ease, color 0.3s ease;
    }
    .btn-back-hover:hover {
        transform: translateX(-5px);
        color: #fff !important;
    }

    .comment-card {
        background-color: rgba(13, 17, 23, 0.6);
        border-left: 4px solid #f0ad4e;
        border-radius: 0 12px 12px 0;
        transition: background 0.3s;
    }
    .comment-card:hover {
        background-color: rgba(22, 27, 34, 1);
    }

    /* Custom Form Space Style */
    .custom-form p label {
        display: block;
        color: #58a6ff;
        margin-bottom: 8px;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    .custom-form input, .custom-form textarea {
        width: 100%;
        padding: 12px;
        background-color: #0d1117 !important;
        border: 1px solid #30363d !important;
        color: white !important;
        border-radius: 10px;
    }

    /* Scrollbar stylisée */
    .scroll-comments::-webkit-scrollbar { width: 4px; }
    .scroll-comments::-webkit-scrollbar-thumb { background: #30363d; border-radius: 10px; }

 /* Effet au survol des tuiles d'astres */
    .btn-explore {
        background-color: #0d1117;
        color: #58a6ff;
        transition: all 0.3s ease;
    }
    .btn-explore:hover {
        background-color: #58a6ff;
        color: #0d1117;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(88, 166, 255, 0.3);
    }

    /* On force les textes secondaires à être plus clairs */
    .text-secondary {
        color: #adb5bd !important;
    }

    /* Cartes Galactiques */
    .astro-card {
        background: rgba(22, 27, 34, 0.7) !important;
        backdrop-filter: blur(8px);
        border: 1px solid #30363d !important;
        border-radius: 20px;
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }
    .astro-card:hover {
        transform: translateY(-10px);
        border-color: #58a6ff !important;
        box-shadow: 0 15px 35px rgba(88, 166, 255, 0.15) !important;
    }

    .astro-img-wrapper {
        position: relative;
        overflow: hidden;
    }
    .astro-img-wrapper img {
        height: 220px;
        width: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    .astro-card:hover .astro-img-wrapper img {
        transform: scale(1.1);
    }

    /* Badges & Favoris */
    .category-badge {
        position: absolute;
        bottom: 12px;
        left: 12px;
        background: rgba(13, 17, 23, 0.8);
        color: #58a6ff;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: bold;
        text-transform: uppercase;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(88, 166, 255, 0.3);
    }
    .fav-icon {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 1.4rem;
        transition: transform 0.2s ease;
    }
    .fav-icon:hover { transform: scale(1.2); }

    /* Boutons de navigation */
    .btn-nav-space {
        background: rgba(22, 27, 34, 0.6);
        border: 1px solid #30363d;
        color: #8b949e;
        border-radius: 20px;
        padding: 6px 16px;
        transition: all 0.3s;
    }
    .btn-nav-space:hover, .btn-nav-space.active {
        background: #58a6ff;
        color: #0d1117;
        border-color: #58a6ff;
        box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
    }

    /* Bannière Mission */
    .mission-banner {
        background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
        border: 1px solid #58a6ff;
        position: relative;
    }
    .mission-banner::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(88, 166, 255, 0.05) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Design des cartes du lexique */
    .lex-card {
        background: rgba(22, 27, 34, 0.6) !important;
        backdrop-filter: blur(10px);
        border: 1px solid #30363d !important;
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .lex-card:hover {
        transform: translateY(-5px);
        border-color: #58a6ff !important;
        box-shadow: 0 10px 30px rgba(88, 166, 255, 0.15) !important;
        background: rgba(22, 27, 34, 0.9) !important;
    }

    /* Boîtes d'icônes colorées */
    .icon-box {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    .bg-info-soft { background: rgba(13, 202, 240, 0.1); }
    .bg-warning-soft { background: rgba(255, 193, 7, 0.1); }
    .bg-primary-soft { background: rgba(13, 110, 253, 0.1); }
    .bg-purple-soft { background: rgba(163, 113, 247, 0.1); }
    .text-purple { color: #a371f7; }

    /* Custom Input Search */
    #lexiconSearch {
        border-radius: 0 12px 12px 0;
    }
    .input-group-text {
        border-radius: 12px 0 0 12px;
    }

    .bg-success-soft { background: rgba(25, 135, 84, 0.1); }
    .bg-danger-soft { background: rgba(220, 53, 69, 0.1); }
    .bg-secondary-soft { background: rgba(255, 255, 255, 0.1); }

    /* Global Quiz Style */
    .quiz-page {
        background: radial-gradient(circle at top, #1b2735 0%, #090a0f 100%);
        min-height: 100vh;
        padding-top: 50px;
    }

    /* Barre de progression Orbitale */
    .progress-mission {
        height: 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid #30363d;
    }
    .progress-bar-glow {
        background: linear-gradient(90deg, #0dcaf0, #00ffcc);
        box-shadow: 0 0 15px rgba(13, 202, 240, 0.7);
        transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Carte de Question Holographique */
    .question-card {
        background: rgba(22, 27, 34, 0.8) !important;
        border: 1px solid #30363d !important;
        border-radius: 25px !important;
        position: relative;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    /* Coins technologiques */
    .question-card::before {
        content: "";
        position: absolute;
        top: -1px; left: -1px; width: 30px; height: 30px;
        border-top: 3px solid #0dcaf0; border-left: 3px solid #0dcaf0;
        border-radius: 25px 0 0 0;
    }

    /* Boutons de réponses stylisés */
    .btn-quiz {
        border: 1px solid #30363d !important;
        background: rgba(13, 17, 23, 0.6) !important;
        color: #c9d1d9 !important;
        padding: 15px 20px !important;
        border-radius: 15px !important;
        text-align: left !important;
        transition: all 0.2s ease !important;
        position: relative;
        overflow: hidden;
    }
    .btn-quiz:hover:not(:disabled) {
        border-color: #0dcaf0 !important;
        background: rgba(13, 202, 240, 0.1) !important;
        transform: translateX(8px);
        color: #fff !important;
    }
    .btn-quiz:disabled { opacity: 0.8; cursor: not-allowed; }

    /* Animations de Feedback */
    .shake { animation: shakeAnim 0.4s; }
    @keyframes shakeAnim {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
    }

    .flash-success { animation: successGlow 0.6s; }
    @keyframes successGlow {
        0% { box-shadow: 0 0 0px #198754; }
        50% { box-shadow: 0 0 30px #198754; }
        100% { box-shadow: 0 0 0px #198754; }
    }

    /* Zone Score Final */
    #final-score-zone {
        background: linear-gradient(145deg, #0d1117, #161b22);
        border: 2px solid #0dcaf0 !important;
        position: relative;
    }
    .hover-glow:hover {
        box-shadow: 0 0 25px rgba(13, 202, 240, 0.5);
        transform: scale(1.02);
    }
    .status-dot {
    animation: blink 1.5s infinite;
    margin-right: 4px;
    }

    @keyframes blink {
        0% { opacity: 1; }
        50% { opacity: 0.3; }
        100% { opacity: 1; }
    }

    /* On utilise tes variables CSS pour la cohérence */
    .astro-card {
        background: var(--space-card) !important;
        border: 1px solid var(--space-border) !important;
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }

    .shadow-glow {
        box-shadow: 0 0 20px var(--astro-blue);
    }

    .hover-glow:hover {
        background: rgba(13, 202, 240, 0.15) !important;
        border-color: var(--astro-blue) !important;
        transform: translateY(-3px);
        transition: all 0.3s ease;
    }

    /* Rendre les textes de placeholder bien visibles sur fond noir */
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.75) !important; /* Blanc semi-transparent très lisible */
        opacity: 1 !important;
    }