/*  
   RESET — supprime les marges/paddings par défaut  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*  
   PAGE — fond sombre avec image de fond  */
body {
    font-family: Arial, sans-serif;
    background: #111 url('../img/Image_acceuil.png');
    background-size: cover;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*  
   TITRES  */
h1 {
    color: white;
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

h2 {
    color: #2c3e50;
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
}

/* 
   FORMULAIRE — carte blanche centrée  */
#formulaire {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
}

form {
    display: block;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

/* champs texte, listes déroulantes et boutons partagent le même style de base */
input,
select,
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3498db;
}

/* bouton soumettre du formulaire */
#formulaire button[type="submit"] {
    background: #3498db;
    color: white;
    border: none;
    margin-top: 15px;
    cursor: pointer;
}


/*  
   SÉLECTION D'AVATAR  */
.avatar-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.avatar-btn {
    width: 120px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
}

/* avatar sélectionné — fond bleu */
.avatar-btn.selected {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.avatar-btn img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center top;
}

.avatar-btn span {
    margin-top: 8px;
    display: block;
}

/*  
   SCÈNES — couvrent tout l'écran  */
.scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* image de fond de la scène */
.scene-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* couche sombre par-dessus le fond, contient les boutons et textes */
.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 
   INFOS HÉROS — coin bas-droite
 */
.hero-info {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1000; /* Ajoute cette ligne ! */
}

.hero-avatar {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center top;
}

/* 
   BOÎTES D'INFO EN SCÈNE — conseil et monstre */
.champion-advice,
.monster-info {
    width: 100%;
    max-width: 550px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.champion-advice {
    background: rgba(255, 217, 2, 0.616);
    color: #333;
    text-align: center;
}

.monster-info {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
}

/* 
   BOUTONS DE CHOIX — chemins et fioles
   */
.paths-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.path-btn {
    min-width: 140px;
    width: auto;
    background: #1e64a0;
}

.path-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.path-description {
    font-size: 0.85em;
    color: #ddd;
    margin-top: 6px;
}

.vial-btn {
    width: auto;
    background: #1e64a0;
}

/*
   BOUTONS FIXES — coin bas-gauche
 */
.btn-restart {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: auto;
    background: #b81e1e;
    z-index: 999;
}

.btn-inventaire {
    position: fixed;
    bottom: 15px;
    left: 150px;
    width: auto;
    background: #1e64a0;
    z-index: 999;
}