/* ===============================
   CONTENEUR GLOBAL
================================ */
.excursion {
    background: radial-gradient(circle at top, #1a0c63, #06011e);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #47379c;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .7);
    color: #ffffff;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

/* ===============================
   BARRE DES NIVEAUX
================================ */
.levels-track {
	 display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
	padding: 15px;    padding-bottom: 16px;
    margin-bottom: 20px;
}


.levels-track::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}


.level {
min-width: 76px;
    height: 76px;
    position: relative;
    border-radius: 5px;
    border: 2px solid #47379c;
    background: radial-gradient(circle at top, #583fd8, #000000);
    cursor: pointer;
    transition: all .25s ease;
}

.level img {
width: 45px;
    margin: 0px auto 0;    margin-top: -16px;
    display: block;
	    border: 1px solid #4a38af;
    filter: drop-shadow(0 0 3px #000);
}

.level span {
    position: absolute;
    bottom: 4px;
    right: 13px;
    font-size: 15px;
    font-weight: bold;
    background: rgba(0, 0, 0, .8);
    padding: 1px 0;
    width: 47px;
    text-align: center;
    border-radius: 0px 0px 5px 5px;
    color: #ffffff;
}

/* ACTIF */
.level.active {
border-color: #ffff99;
    box-shadow: 0 0 7px rgb(255 179 0 / 80%), inset 0 0 12px rgb(255 222 144 / 40%);
    transform: scale(1.08);
}

/* ===============================
   BONUS GRID
================================ */
.bonus-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.bonus-grid.active {
    display: grid;
}

/* ===============================
   BONUS BOX
================================ */
.bonus-box {
display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(180deg, #241a59, #0f0932);
    border: 1px solid #443788;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .6), 0 4px 10px rgba(0, 0, 0, .5);
}

/* BONUS UNIQUE → CENTRÉ */
.bonus-box:only-child {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
}

/* ICÔNE */
.bonus-box img.bonus {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 6px #000);
    margin-top: 18px;
	border-radius: 25px;
    border: 2px solid #4b39b0;
}

/* TEXTE */
.bonus-text strong.titre {
display: block;
    font-size: 17px;

    text-shadow: 0px 1px 1px black;
    color: #ffff99;
    text-transform: uppercase;
}

.bonus-text p {
    margin: 6px 0 0;
    font-size: 14px;
color: #ffffff;
    line-height: 1.2;
	    text-align: left;
}

/* CENTRAGE TEXTE SI BONUS UNIQUE */
.bonus-box:only-child .bonus-text {
    align-items: center;
}

/* ===============================
   NAVIGATION NIVEAUX
================================ */
.levels-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.levels-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
	    margin-top: -26px;
   border: 2px solid #47379c;
    background: radial-gradient(circle at top, #583fd8, #000000);
    color: #f2f292;
    font-size: 26px;
    cursor: pointer;
    box-shadow:
        inset 0 0 6px rgba(0,0,0,.7),
        0 4px 10px rgba(0,0,0,.6);
    transition: transform .2s, box-shadow .2s;
}

.levels-nav:hover {
    transform: scale(1.1);
}

.levels-nav:active {
    transform: scale(.95);
}

.levels-nav.prev { margin-right: 10px; }
.levels-nav.next { margin-left: 10px; }

/* ===============================
   ANIMATION BONUS
================================ */
@keyframes bonusFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bonus-grid.active .bonus-box {
    animation: bonusFade .35s ease forwards;
}

/* delay progressif */
.bonus-box:nth-child(1) { animation-delay: .05s; }
.bonus-box:nth-child(2) { animation-delay: .1s; }
.bonus-box:nth-child(3) { animation-delay: .15s; }
.bonus-box:nth-child(4) { animation-delay: .2s; }

/* ===============================
   ANIMATION NIVEAU ACTIF
================================ */
@keyframes glowPulse {
    0% { box-shadow: 0 0 8px rgba(242,193,78,.6); }
    50% { box-shadow: 0 0 16px rgba(242,193,78,1); }
    100% { box-shadow: 0 0 8px rgba(242,193,78,.6); }
}

.level.active {
    animation: glowPulse 1.6s infinite;
}

/* ===============================
   MASQUER SCROLLBAR
================================ */
