/* Variables pour garder des couleurs cohérentes */
:root {
    --couleur-fond: #f4f7f6;
    --couleur-texte: #333333;
    --couleur-primaire: #0056b3;
    --couleur-primaire-hover: #004494;
    --couleur-neutre: #e2e8f0;
    --couleur-alerte: #e53e3e;
    --rayon-bordure: 8px;
}

/* Reset de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
    line-height: 1.6;
    padding: 20px;
}

/* Conteneur principal centré */
.conteneur {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: var(--rayon-bordure);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Classe magique pour cacher des éléments via JS */
.cache {
    display: none !important;
}

/* --- Styles de l'Accueil --- */
h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.avertissement {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: var(--rayon-bordure);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.groupe-champ {
    margin-bottom: 15px;
}

.groupe-champ label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.groupe-champ input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--rayon-bordure);
    font-size: 1rem;
}

/* --- Styles des Boutons --- */
.btn-principal, .btn-reponse, .btn-je-ne-sais-pas {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: var(--rayon-bordure);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-principal {
    background-color: var(--couleur-primaire);
    color: white;
    margin-top: 20px;
}

.btn-principal:hover {
    background-color: var(--couleur-primaire-hover);
}

/* --- Styles du Test --- */
.en-tete-test {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--couleur-neutre);
}

.badge-theme {
    background-color: var(--couleur-neutre);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.chrono {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--couleur-alerte);
}

.zone-question h2 {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.grille-reponses {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espace entre les boutons */
}

.btn-reponse {
    background-color: white;
    border: 2px solid var(--couleur-primaire);
    color: var(--couleur-primaire);
}

.btn-reponse:hover {
    background-color: var(--couleur-primaire);
    color: white;
}

.btn-je-ne-sais-pas {
    background-color: #f8f9fa;
    border: 2px dashed #adb5bd;
    color: #6c757d;
    margin-top: 10px; /* Un peu plus séparé des autres réponses */
}