/* ============================================
   FOND + RESPONSIVE
   ============================================ */

.discover-background {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.background-img {
    width: 100%;
    height: auto;
    display: block;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================
   PARTICULES (poussière flottante)
   ============================================ */

.dust-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image: url("../assets/dust.png");
    background-size: 250%;
    background-repeat: repeat;
    opacity: 0.12;                     /* plus doux */
    filter: blur(2px);                /* adoucit les particules */
    animation: dustFloat 14s infinite ease-in-out;
    mix-blend-mode: screen;            /* intègre mieux au décor */
}

/* MOUVEMENT CIRCULAIRE DOUX */
@keyframes dustFloat {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(12px, -8px) rotate(1deg);
    }
    50% {
        transform: translate(20px, 4px) rotate(-1deg);
    }
    75% {
        transform: translate(-8px, -6px) rotate(1deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}



/* ============================================
   PERSONNAGE (mieux placé + responsive)
   ============================================ */

.character {
    position: absolute;
    bottom: 18%;
    left: 12%;       /* Déplacement horizontal */
    width: 260px;
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* Responsive : centre sur mobile */
@media (max-width: 800px) {
    .character {
        left: 50%;
        transform: translateX(-50%);
        bottom: 12%;
        width: 42%;
    }
}

/* ============================================
   BOITE DE DIALOGUE (style RPG bois + responsive)
   ============================================ */

.dialogue-box {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 950px;

    background: rgba(50, 30, 10, 0.80);
    border: 3px solid #b89563;
    border-radius: 20px;
    padding: 18px 22px;
    color: #f8e7c4;
    font-size: 1.2em;
    line-height: 1.5em;

    box-shadow: 0 0 16px rgba(0,0,0,0.45);

    opacity: 0;
    transform: translate(-50%, 30px);
    transition: opacity .5s ease, transform .5s ease;
}

.dialogue-box.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Mobile : adaptée */
@media (max-width: 700px) {
    .dialogue-box {
        font-size: 1em;
        padding: 14px 18px;
    }
}

/* ============================================
   EFFET MACHINE À ÉCRIRE
   ============================================ */

.typewriter {
    border-right: 3px solid #f8e7c4;
    animation: caret 0.7s steps(1) infinite;
}

@keyframes caret {
    50% { border-color: transparent; }
}

/* ============================================
   BOUTON SUIVANT
   ============================================ */

#nextButton {
    margin-top: 12px;
    padding: 8px 18px;
    font-size: 1em;
    background: #d4b483;
    color: #3a2a15;
    border: 2px solid #b38d56;
    border-radius: 10px;
    cursor: pointer;
}

#nextButton:hover {
    background: #c5a068;
}

/* ============================================
   CHOIX (optionnels)
   ============================================ */

.choices {
    margin-top: 10px;
}

.choice {
    margin: 5px;
    padding: 8px 14px;
    border-radius: 10px;

    background: #cfa66c;
    color: #3a2a15;

    border: 2px solid #b38d56;
    cursor: pointer;
}

.choice:hover {
    background: #b98d56;
}

.hidden {
    display: none !important;
}
.fire-glow {
    position: absolute;
    left: 5%;     /* Ajustable selon la position de ta cheminée */
    bottom: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
    rgba(255,140,50,0.45),
    rgba(200,80,20,0.10),
    transparent 70%
    );
    border-radius: 50%;
    filter: blur(25px);
    animation: firePulse 2.5s ease-in-out infinite alternate;
}

@keyframes firePulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.55; transform: scale(1.15); }
}

body.fadeout {
    animation: fadeToBlack 1.2s forwards;
}

@keyframes fadeToBlack {
    to { opacity: 0; }
}

