@font-face {
    font-family: 'MedievalSharp';
    src: url('MedievalSharp-Regular.ttf') format('truetype');
}

body {
    background-image: url('Fondsalle.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'MedievalSharp', serif;
    overflow: hidden;
}

#game-zone {
    width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 95vh;
    justify-content: flex-end;
}

#card-container {
    width: 400px;
    height: 620px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    position: absolute;
    /* REDESCENDU ICI (était 180px) */
    bottom: 140px; 
}

#character-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
    /* On cache l'image par défaut pour l'animation */
    opacity: 0; 
}

/* --- CLASSE POUR L'ANIMATION D'APPARITION --- */
.fade-in {
    animation: fadeInSlide 0.6s ease-out forwards;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Part d'un peu plus bas */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Arrive à sa position normale */
    }
}

.parchment {
    background-color: #f3e5ab;
    border: 2px solid #8d6e63;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.6), inset 0 0 25px rgba(139, 69, 19, 0.2);
}

.text-box {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    min-height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 15px; 
    z-index: 10;
    position: relative;
}

#dialogue {
    margin: 0;
    font-size: 1.2em;
    color: #3e2723;
    line-height: 1.3;
}

#controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 20;
    position: relative;
    padding-bottom: 20px; 
}

.btn-choix {
    width: 190px;
    height: 80px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    transition: transform 0.2s, background-color 0.2s;
    padding: 10px;
}

.btn-choix:hover {
    transform: translateY(-5px);
    background-color: #fbe9a7;
}

.btn-text {
    font-size: 1em;
    font-weight: bold;
    color: #3e2723; 
    text-align: center;
}

/* ... garde ton CSS d'avant et ajoute ça à la fin ... */

#game-over-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: black; /* Fond noir total */
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.death-content {
    text-align: center;
    color: #ff0000; /* Rouge vif */
    font-family: 'MedievalSharp', serif;
}

.death-content h1 { font-size: 3em; margin-bottom: 20px; }
.death-content p { font-size: 1.5em; margin-bottom: 40px; }

.btn-retry {
    background: none;
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    font-family: 'MedievalSharp', serif;
}

.btn-retry:hover {
    background-color: #ff0000;
    color: black;
}