/* --- Police d'écriture pour un côté plus fun --- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');

body {
    background-color: #fefcf1; /* Fond crème très clair */
    color: #555; /* Texte gris doux */
    font-family: 'Fredoka', cursive; /* Police arrondie et fun */
    margin: 0; padding: 0;
}

header {
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: 3px dashed #bdd4e7; /* Bordure discrète */
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1)); 
}

/* --- Le nouveau titre "Les œufs Voyageurs" --- */
header h1 {
    color: #e6b26d; /* Couleur œuf/dorée */
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 0 #fff; /* Effet relief */
}

/* --- Cartes des Thèmes --- */
.theme-card {
    background: #ffffff; /* Fond blanc pur */
    border: 2px solid #bdd4e7; /* Bordure bleu pastel */
    border-radius: 20px; /* Coins très arrondis */
    margin: 2rem auto;
    padding: 2rem;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Ombre douce */
}

/* --- Titres des Thèmes --- */
.theme-card h3 {
    color: #e6b26d;
    font-size: 1.8rem;
    margin-top: 0;
}

/* --- Boîtes d'indices --- */
.hint-box {
    background: #fdf6e6; /* Jaune œuf très clair */
    color: #777;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 5px solid #f9da9b;
}

/* --- Boutons Pastels --- */
button {
    font-family: 'Fredoka', cursive;
    background-color: #bdd4e7; /* Bleu pastel pour "Je connais la réponse" */
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px); /* Petit effet de survol */
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

button.btn-hint {
    background-color: #f9da9b; /* Jaune pastel pour "J'ai besoin d'un autre indice" */
}

/* --- Section Admin --- */
#admin-section .theme-card {
    border-color: #f9da9b; /* Plus de jaune en admin */
}

#admin-section select, #admin-section textarea, .modal-content input, #login-section input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #ffffff;
    color: #555;
    border: 2px solid #bdd4e7;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: 'Fredoka', cursive;
}

#login-section {
    text-align: center;
}

/* --- Modal & Formulaire (Aussi en pastel) --- */
.modal-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    border: 3px solid #f9da9b;
}

.modal-content h2 {
    color: #e6b26d;
    text-align: center;
}

.rgpd-label {
    font-size: 0.9rem;
    color: #777;
    display: block; /* Force les boutons à passer en dessous */
    margin-bottom: 20px; /* Ajoute un bel espace sous le texte */
    line-height: 1.4;
    text-align: left; /* Aligne le texte à gauche (par défaut) */
}


/* --- Masquer les éléments --- */
.hidden {
    display: none !important;
}

/* --- Le conteneur de la pop-up (Modal) manquant --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Un fond crème semi-transparent pour assombrir un peu l'arrière-plan */
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* S'assure que la pop-up passe par-dessus tout le reste */
}

/* La classe hidden qu'on avait ajoutée tout à l'heure reste indispensable */
.modal.hidden {
    display: none !important;
}
/* --- Images des Énigmes --- */
.theme-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #bdd4e7; /* Reprend ton bleu pastel */
    display: block;
    box-sizing: border-box;
}
/* --- Message d'attente (quand il n'y a pas d'énigme) --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem; /* Donne un peu plus de hauteur à la carte */
}

.empty-state h2 {
    color: #e6b26d; /* Ta jolie couleur dorée */
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.2rem;
    color: #777;
}
