@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css");

:root {
    --color-bg: #160029;
    --color-text: #FAFAFA;
    --color-primary: #A155E3;
    --color-border: #1600294C;
}

html {
    scrollbar-gutter: stable;
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

/*# sourceMappingURL=pointClickSection.css.map */


/* --- Point & Click Scene --- */
#pointClickSection {
    position: fixed;
    inset: 0;
    z-index: 900;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.scene {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}

.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.95) contrast(1.05);
    z-index: 0;
}

/* Hotspots invisibles (zones cliquables) */
.hotspot {
    position: absolute;
    background: rgba(255, 255, 255, 0.0);
    border: 2px solid rgba(255, 255, 255, 0.0);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    z-index: 1;
}

.hotspot:focus-visible,
.hotspot:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Hotspot avec image */
.hotspot-img {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1;
}

.hotspot-img img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
    transition: transform .15s ease;
}

.hotspot-img:hover img,
.hotspot-img:focus-visible img {
    transform: scale(1.08);
}

/* Positionnement des 3 objets dans la scène */
.hotspot-stele {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.hotspot-stele img {
    width: clamp(80px, 15vw, 200px);
}

.hotspot-amulette {
    left: 5%;
    bottom: 10%;
}

.hotspot-amulette img {
    width: 280px;
    height: 280px;
}

.hotspot-bague {
    right: 5%;
    top: 20%;
}

.hotspot-bague img {
    width: clamp(100px, 22vw, 300px);
}

/* État ramassé (on masque la zone originale) */
.hotspot--collected,
.hotspot-img--collected {
    display: none !important;
}

/* --- HUD P&C (compteur + bouton continuer) --- */
#pcHud {
    position: fixed;
    top: 80px;
    left: 12px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 20, 25, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: "Plus Jakarta Sans", sans-serif;
}

#pcHud #pcCounter {
    font-size: 1rem;
    opacity: 0.95;
}

#pcHud #pcContinueBtn {
    padding: 8px 14px;
}

/* --- Toasts de feedback --- */
#toastContainer {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: rgba(30, 30, 35, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateY(-10px);
}

/* --- Animation pulse de l'inventaire --- */
@keyframes invPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(161, 85, 227, 0);
    }
    40% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(161, 85, 227, 0.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(161, 85, 227, 0);
    }
}

.inventory.pulse {
    animation: invPulse .6s ease;
}