@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

body {
    margin: 0; padding: 0; font-family: 'Nunito', sans-serif;
    background-color: #f0f4f8; color: #333;
    display: flex; flex-direction: column; align-items: center; min-height: 100vh;
}

.screen-container {
    width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; margin-top: 50px;
}

.hidden { display: none !important; }

h1 { font-size: 4rem; color: #4361ee; margin-bottom: 10px; text-shadow: 2px 2px 0px #bde0fe; text-align: center; }
h2 { margin-top: 0; }
h3 { color: #333; width: 100%; }

.subtitle { font-size: 1.2rem; color: #555; margin-top: 0; margin-bottom: 40px; font-weight: 700; text-align: center; }
.text-primary { color: #4361ee; margin: 0; }
.text-muted { color: #7a7a9a; font-size: 0.95rem; }

.card-container { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }

.card {
    background: white; border-radius: 24px; padding: 40px 30px; width: 320px; text-align: center;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.1); border-bottom: 8px solid #e2eafc; 
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-5px); border-bottom-color: #4361ee; }

.btn {
    border: none; padding: 15px 30px; font-size: 1.2rem; font-weight: 900;
    border-radius: 16px; cursor: pointer; transition: all 0.1s;
    text-align: center; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px;
}

.btn:active { transform: translateY(6px); box-shadow: 0 0px 0px transparent !important; }

.btn-primary { background-color: #4361ee; color: white; width: 100%; box-shadow: 0 6px 0px #3f37c9; }
.btn-action { background-color: #f72585; color: white; box-shadow: 0 6px 0px #b5179e; }
.btn-success { background-color: #06d6a0; color: white; box-shadow: 0 6px 0px #04a57b; }
.btn-secondary { background-color: #cbd5e1; color: #333; box-shadow: 0 6px 0px #94a3b8; }
.btn-warning { background-color: #ffd166; color: #333; box-shadow: 0 6px 0px #e0aa00; }

.btn-google { background-color: white; color: #555; width: 100%; border: 2px solid #e2eafc; box-shadow: 0 6px 0px #e2eafc; }

.input-code, .input-question {
    width: 100%; padding: 15px; margin: 20px 0; border-radius: 16px; border: 3px solid #e2eafc;
    background: #f8f9fa; color: #333; font-size: 1.5rem; font-weight: 900; text-align: center; outline: none; transition: border-color 0.3s; box-sizing: border-box;
}

.input-code:focus, .input-question:focus { border-color: #4361ee; background: white; }

.dashboard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #e2eafc; padding-bottom: 20px; margin-bottom: 20px; width: 100%; }

.kit-list { list-style: none; padding: 0; width: 100%; }
.kit-item { display: flex; justify-content: space-between; background: white; padding: 20px; border-radius: 16px; margin-bottom: 15px; align-items: center; border: 3px solid #e2eafc; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }

.kit-title { font-size: 1.3rem; color: #4361ee; }
.kit-actions { display: flex; gap: 10px; }
.kit-builder-card { width: 100%; border: 4px solid #e2eafc; }

.answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.answer-box { display: flex; align-items: center; border-radius: 16px; padding: 15px; border: 4px solid; }
.radio-answer { transform: scale(1.8); margin-right: 15px; cursor: pointer; }
.input-answer { border: none; background: transparent; font-size: 1.2rem; width: 100%; outline: none; font-weight: 900; }

.answer-green { background: #e6fffa; border-color: #06d6a0; } .text-green { color: #04a57b; }
.answer-red { background: #ffe5ec; border-color: #ef476f; } .text-red { color: #c9184a; }
.answer-blue { background: #e2eafc; border-color: #4361ee; } .text-blue { color: #3f37c9; }
.answer-yellow { background: #fff9c4; border-color: #ffd166; } .text-yellow { color: #e0aa00; }

.players-list { list-style: none; padding: 0; font-size: 1.5rem; font-weight: 900; color: #333; display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }

/* NOUVEAU : Sidebar Editeur */
.builder-layout { display: flex; width: 100%; gap: 20px; align-items: flex-start; }
.builder-sidebar { width: 250px; background: white; border-radius: 16px; padding: 20px; border: 3px solid #e2eafc; box-shadow: 0 4px 10px rgba(0,0,0,0.02); flex-shrink: 0; }
.question-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.q-list-item { padding: 12px; background: #f8f9fa; border-radius: 8px; border: 2px solid #e2eafc; cursor: pointer; font-weight: bold; color: #555; transition: all 0.2s; text-align: left; }
.q-list-item:hover { background: #e2eafc; color: #4361ee; }
.q-list-item.active { background: #4361ee; color: white; border-color: #3f37c9; }