/* Style de base et fond */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; 
    color: #333;
}

/* En-tête */
header {
    background-color: #3d8bff; /* Bleu vif */
    color: white;
    padding: 20px 0;
    display: flex;
    /* text-align: center;*/
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    text-align: center;
    flex-grow: 1;
    margin: 0;
}

/* Conteneur principal */
main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

#info {
    display: flex;
    justify-content: space-between;  /* espace entre les deux */
    align-items: center;             /* alignement vertical */
    margin-bottom: 20px;   
}

/* Style générique pour les zones de contenu (card) */
.card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Section Question */
.question {
    border-left: 5px solid #41d31c; /* Orange pour la question */
}

/* Section Réponse (Challenge réussi) */
.reponse {
    text-align: center;
    border-left: 5px solid #28a745; /* Vert pour le succès */
}

/* Style des champs de formulaire */
label {
    display: block; 
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"] {
    width: 100%; 
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    font-size: 1em;
}

#submit-button, #reset-button {
    background-color: #41d31c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#submit-button:hover, #reset-button:hover {
    background-color: #28a745;
}

/* Affichage des états et messages */
#pc-image-container {
    text-align: center;
    margin-bottom: 20px;
}

#pc-status-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

#status-board {
    background-color: #e9f5ff; /* Fond bleu très clair pour les stats */
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
}

#money-saved {
    color: #28a745; /* Vert pour l'argent */
}

.feedback-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Couleurs de feedback */
.correct {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Utilitaire */
.hidden {
    display: none;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
    background-color: #6c757d; 
    color: white;
    font-size: 0.9em;
}

/* Style du bouton C'est Parti */
#start-button {
    background-color: #28a745; /* Vert pour le bouton de démarrage */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

#start-button:hover {
    background-color: #1e7e34;
}

/* Centre le contenu de l'écran de démarrage */
.start-screen {
    text-align: center;
}

/* Règle pour cacher les éléments, essentielle pour le jeu */
.hidden {
    display: none;
}