/* --- FOND D'ÉCRAN (Appliqué au main) --- */
.nexus-error-page {
    background: #050505 url('../media/SetNexus/nexus-404-table.webp') no-repeat center center;
    background-size: cover;
    /* Overlay sombre sur l'image de fond */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.6); 
    z-index: 10;
}

/* --- TEXTE ET BOUTON --- */
.error-code {
    font-size: clamp(6rem, 12vw, 10rem);
    color: #fff;
    text-shadow: 0 0 15px #bc13fe, 0 0 30px #bc13fe;
    line-height: 1;
}

.nexus-btn-primary {
    padding: 12px 30px;
    border: 2px solid #bc13fe;
    color: #bc13fe;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nexus-btn-primary:hover {
    background: #bc13fe;
    color: #fff;
    box-shadow: 0 0 25px #bc13fe;
}

/* --- LE BOOSTER ANIMÉ --- */
.booster-wrapper {
    position: relative;
    width: 280px;
    height: 400px;
    cursor: pointer;
    perspective: 2000px;
    transition: transform 0.3s ease;
}

.booster-wrapper:hover {
    transform: scale(1.05) rotate(2deg);
}

.booster-front {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8); 
    transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.booster-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- LA CARTE INTÉRIEURE --- */
.hidden-card {
    position: absolute;
    inset: 15px;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: 2px solid #bc13fe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px #bc13fe;
}

.card-back span {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 15px #bc13fe, 0 0 30px #bc13fe, 0 0 50px #bc13fe;
}

/* --- ANIMATION AU CLIC --- */
.booster-wrapper.is-open .booster-front {
    transform: translateY(-130%) rotate(-15deg);
    opacity: 0;
    pointer-events: none;
}

.booster-wrapper.is-open .hidden-card {
    opacity: 1;
    transform: scale(1.15) translateZ(50px);
}

.instruction {
    color: #bc13fe;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* =========================================
   VARIANTE 403 (THÈME DANGER / ROUGE)
   ========================================= */
.error-code-danger {
    text-shadow: 0 0 15px #dc3545, 0 0 30px #dc3545 !important;
}

.card-inner-danger {
    box-shadow: 0 0 30px #dc3545 !important;
    border-color: #dc3545 !important;
}

.card-back-danger span {
    text-shadow: 0 0 15px #dc3545, 0 0 30px #dc3545, 0 0 50px #dc3545 !important;
}