/* Variables de couleurs pour changer le thème facilement */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --danger: #ef4444;
    --success: #22c55e;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container principal du test */
#app-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

/* En-tête (Nom du candidat / Timer) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg);
}

#timer {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    color: var(--danger);
    background: #fef2f2;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Zone de la question */
.question-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Liste des réponses (boutons radio déguisés) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: var(--primary);
    background-color: #f0f7ff;
}

.option-item.selected {
    border-color: var(--primary);
    background-color: #dbeafe;
}

/* Bouton de validation */
button#next-btn {
    margin-top: 2rem;
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button#next-btn:disabled {
    background-color: var(--border);
    cursor: not-allowed;
}

button#next-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

/* Barre de progression */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%; /* Sera géré en JS */
    transition: width 0.3s ease;
}

#burger-menu {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
}
.hidden {
    display: none;
}