/* --- RESET SIMPLE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* --- PAGE --- */
body {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #333;
}

/* --- TITRE PRINCIPAL --- */
h1 {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    font-size: 34px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- PROGRESS BAR --- */
#progressContainer {
    width: 100%;
    max-width: 650px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#progressBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    transition: width 0.4s ease;
}

/* --- CONTENEURS --- */
#qcm, #choixMode {
    background: white;
    width: 100%;
    max-width: 650px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: fadeIn 0.5s ease;
}

/* --- TITRES SECONDAIRES --- */
h2 {
    margin-bottom: 15px;
    color: #4e54c8;
    font-size: 22px;
}

/* --- BOUTONS --- */
button {
    background: #4e54c8;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

button:hover {
    background: #3b40a4;
    transform: translateY(-2px);
}

button:active {
    transform: scale(0.97);
}

/* --- LABELS DES RÉPONSES --- */
label {
    display: block;
    background: #f7f7ff;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
    word-wrap: break-word;
}

label:hover {
    background: #ececff;
}

input[type="radio"] {
    margin-right: 10px;
}

/* --- CHRONO --- */
#chrono {
    text-align: center;
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.urgent {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { color: white; }
    50% { color: #ff4d4d; }
    100% { color: white; }
}

/* --- COULEURS DES RÉPONSES --- */
.bonne { color: #0a8a0a; font-weight: bold; }
.mauvaise { color: #d11a1a; font-weight: bold; }
.choisie { color: #1a4fd1; font-weight: bold; }

/* --- ANIMATION --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.questionFade {
    animation: fadeIn 0.4s ease;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {

    body {
        padding-top: 20px;
    }

    h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    #qcm, #choixMode {
        padding: 20px;
        border-radius: 12px;
    }

    button {
        width: 100%;
        padding: 14px;
        font-size: 18px;
    }

    label {
        font-size: 15px;
        padding: 10px;
    }

    #progressContainer {
        height: 10px;
    }
}
