@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; 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: #06d6a0; border-color: #04a57b; } .text-green { color: #04a57b; }
.answer-red { background: #ef476f; border-color: #c9184a; } .text-red { color: #c9184a; }
.answer-blue { background: #4361ee; border-color: #3f37c9; } .text-blue { color: #3f37c9; }
.answer-yellow { background: #ffd166; border-color: #e0aa00; } .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; align-items: center; }

.btn-game-answer {
    width: 100%; height: 150px; font-size: 2rem; font-weight: 900; color: white; border: none; border-radius: 20px;
    cursor: pointer; transition: transform 0.1s, opacity 0.3s; box-shadow: 0 8px 0px rgba(0,0,0,0.2); white-space: pre-line; 
}
.btn-game-answer:active { transform: scale(0.95) translateY(8px); box-shadow: 0 0px 0px transparent; }

.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; }

.error-message { color: #ef476f; font-weight: 900; margin-top: -10px; margin-bottom: 15px; font-size: 0.95rem; animation: shake 0.3s ease-in-out; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

.kick-btn { margin-left: 10px; cursor: pointer; font-size: 1.2rem; transition: transform 0.2s; display: inline-block; }
.kick-btn:hover { transform: scale(1.3); }

/* ... (garde ton CSS précédent et ajoute ça à la fin) ... */

.settings-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.settings-icon:hover { transform: rotate(90deg); }

.q-nav-btns { display: flex; gap: 5px; margin-top: 5px; }
.btn-mini { padding: 5px; font-size: 0.7rem; background: #eee; border-radius: 4px; border: none; cursor: pointer; }

hr { border: 0; border-top: 2px solid #f0f4f8; margin: 20px 0; }