* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    height: 100vh;
    font-family: 'Jersey 10', Arial, sans-serif;
}

.app-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Image de fond */
.background-image {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-image: url('/img/jardindessenteurs-min.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Personnage et bulle */
.character-container {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.character-img {
    width: 120vw;
    max-width: 120vw;
    height: auto;
    user-select: none;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(.4,2,.6,1);
}

/* Bulle collée à la tête du perso */
.speech-bubble {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    margin-bottom: -38px;
    min-width: 60vw;
    max-width: 90vw;
    background: #fff;
    color: #222;
    border-radius: 32px;
    padding: 18px 10px;
    font-size: 2em;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-align: center;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
    transition: opacity 0.2s;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 14px 16px 0 16px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.1));
}

/* Lumière découverte */
.light-discovery {
    display: none;
    position: absolute;
    top: 50%;
    right: 3vw; /* Collée à droite, ajustable */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%, #fffde4 0%, #ffe066 60%, #ffd700 90%, rgba(255,215,0,0.2) 100%);
    box-shadow:
        0 0 20px 10px #ffe066,
        0 0 40px 20px #ffd70088,
        0 0 60px 30px #fffde488;
    z-index: 30;
    cursor: pointer;
    animation: lightPulse 1.6s infinite alternate;
    transition: box-shadow 0.2s;
    touch-action: manipulation;
}
.light-discovery:active {
    box-shadow:
        0 0 10px 5px #ffe066,
        0 0 20px 10px #ffd70088,
        0 0 30px 15px #fffde488;
}

@keyframes lightPulse {
    0% { box-shadow: 0 0 20px 10px #ffe066, 0 0 40px 20px #ffd70088, 0 0 60px 30px #fffde488; }
    100% { box-shadow: 0 0 40px 20px #ffe066, 0 0 80px 40px #ffd70088, 0 0 90px 45px #fffde488; }
}


/* Bouton Back */
.back-button {
    position: absolute;
    top: 70px;
    left: 20px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    text-decoration: none;
    color: #000;
    font-size: 1.2em;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}