:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --primary-color: #1877f2;
    --secondary-color: #42b72a;
    --danger-color: #fa383e;
    --warning-color: #f7b928;
    --text-color: #1c1e21;
    --text-light: #606770;
    --border-color: #dddfe2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

#game-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hidden {
    display: none !important;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 10px;
}

ul {
    list-style: none;
    padding: 0;
}

#lobby-players-list li, #game-players-list li {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

#lobby-players-list li:last-child, #game-players-list li:last-child {
    border-bottom: none;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #166fe5;
}

#start-btn {
    background-color: var(--secondary-color);
}
#start-btn:hover {
    background-color: #36a420;
}

#word-found-btn {
    background-color: var(--warning-color);
}
#word-found-btn:hover {
    background-color: #e0a824;
}

#info-bar {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

#info-bar .card {
    flex: 1;
    padding: 15px;
}

#info-bar span, #word-display span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

#info-bar strong, #word-display strong {
    font-size: 1.5rem;
}

#role.role-Master, #role.role-Insider {
    color: var(--danger-color);
}

#timer strong {
    font-size: 2rem;
}

#word-display strong {
    font-size: 2.2rem;
    letter-spacing: 4px;
    color: var(--primary-color);
}

#end-screen h1 {
    font-size: 2.5rem;
}
#end-screen p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ... (Conservez tout le CSS précédent) ... */

/* Nouveaux styles pour le vote */
#voting-interface {
    background-color: #fffbe6; /* Jaune clair pour attirer l'attention */
    border: 1px solid var(--warning-color);
}

.vote-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.vote-option:hover {
    background-color: #f0f2f5;
}

.vote-info {
    text-align: left;
}

.vote-info .player-name {
    font-weight: 600;
}

.vote-info .vote-count {
    font-size: 0.9em;
    color: var(--text-light);
}

.vote-option button {
    width: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.vote-option button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#end-vote-btn {
    background-color: var(--danger-color);
    margin-top: 10px;
}
#end-vote-btn:hover {
    background-color: #e03035;
}
