/* Style général - Dark Mode */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #121212;
    color: #e0e0e0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Conteneur pour les boutons */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* En-tête */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

header h1 {
    color: #64b5f6;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Cartes */
.card {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    color: #64b5f6;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* Formulaires */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #bbdefb;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1rem;
    color: #e0e0e0;
}

input[type="text"]:focus {
    outline: none;
    border-color: #64b5f6;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
}

.btn-secondary {
    background-color: #2e7d32;
    color: white;
}

.btn-secondary:hover {
    background-color: #1b5e20;
}

.btn-danger {
    background-color: #c62828;
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* Page de jeu */
.flag-container {
    text-align: center;
    margin: 20px 0;
}

.flag-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #444;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.option-btn {
    padding: 15px;
    font-size: 1rem;
    text-align: center;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.option-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.timer {
    text-align: center;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #ffab40;
}

.round-info {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #9e9e9e;
}

.question-type {
    color: #64b5f6;
    font-weight: 500;
    font-size: 0.9em;
}

/* Tableau des scores */
.leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.leaderboard th, .leaderboard td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.leaderboard th {
    background-color: #2c2c2c;
    font-weight: bold;
    color: #bbdefb;
}

.leaderboard tr:nth-child(even) {
    background-color: #262626;
}

.leaderboard tr:hover {
    background-color: #333;
}

.current-player {
    background-color: rgba(25, 118, 210, 0.2) !important;
}

/* Pied de page */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    color: #9e9e9e;
    font-size: 0.9rem;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .options-container {
        grid-template-columns: 1fr;
    }
}

/* Notification */
.notification {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.notification.success {
    background-color: rgba(46, 125, 50, 0.2);
    color: #81c784;
    border: 1px solid #2e7d32;
}

.notification.error {
    background-color: rgba(198, 40, 40, 0.2);
    color: #e57373;
    border: 1px solid #c62828;
}

/* Animation pour la réponse correcte */
@keyframes correct-answer {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.correct-answer {
    animation: correct-answer 0.5s ease;
    background-color: #2e7d32 !important;
    color: white !important;
}

/* Animation pour la réponse incorrecte */
@keyframes wrong-answer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.wrong-answer {
    animation: wrong-answer 0.5s ease;
    background-color: #c62828 !important;
    color: white !important;
}

/* Pour afficher le lien à partager */
.share-link {
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

.share-link input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
}

.share-info {
    font-size: 0.9em;
    color: #64b5f6;
    margin-top: 5px;
    font-style: italic;
}

/* Attente de joueurs */
.waiting-players {
    text-align: center;
    margin: 20px 0;
}

.player-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 4px;
}

.player-list li {
    padding: 8px;
    margin: 5px 0;
    background-color: #2c2c2c;
    border-radius: 4px;
}

#start-game-btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Statut du jeu */
.game-status {
    text-align: center;
    padding: 10px;
    background-color: #2c2c2c;
    border-radius: 4px;
    margin: 10px 0;
}

/* Pour le compte à rebours */
#countdown, #start-countdown {
    color: #ffab40;
    font-weight: bold;
}

/* Bouton info */
.btn-info {
    background-color: #0288d1;
    color: white;
}

.btn-info:hover {
    background-color: #0277bd;
}

/* Effet de focus pour l'accessibilité */
a:focus, button:focus, input:focus {
    outline: 2px solid #64b5f6;
    outline-offset: 2px;
}

/* Styles pour la sélection du mode joueur */
.player-mode-selection {
    margin: 25px 0;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
}

.player-mode-selection h4 {
    color: #64b5f6;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
}

/* Styles pour la sélection du mode de jeu */
.game-mode-selection {
    margin: 25px 0;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
}

.game-mode-selection h4 {
    color: #64b5f6;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    background-color: #1e1e1e;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    position: relative;
    box-sizing: border-box;
}

.mode-option:hover {
    border-color: #64b5f6;
    background-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.mode-option input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    accent-color: #64b5f6;
    transform: scale(1.2);
}

.mode-option input[type="radio"]:checked + .mode-info {
    color: #64b5f6;
}

.mode-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
}

.mode-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.mode-info p {
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.mode-option:has(input:checked) {
    border-color: #64b5f6;
    background-color: rgba(100, 181, 246, 0.15);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.mode-option:has(input:checked) .mode-info strong {
    color: #64b5f6;
}

.mode-option:has(input:checked) .mode-info p {
    color: #e0e0e0;
}

/* Styles pour le mode joueur */
.player-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.player-mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    background-color: #1e1e1e;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    position: relative;
    box-sizing: border-box;
}

.player-mode-option:hover {
    border-color: #64b5f6;
    background-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.player-mode-option input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    accent-color: #64b5f6;
    transform: scale(1.2);
}

.player-mode-option input[type="radio"]:checked + .player-mode-info {
    color: #64b5f6;
}

.player-mode-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
}

.player-mode-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.player-mode-info p {
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.player-mode-option:has(input:checked) {
    border-color: #64b5f6;
    background-color: rgba(100, 181, 246, 0.15);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.player-mode-option:has(input:checked) .player-mode-info strong {
    color: #64b5f6;
}

.player-mode-option:has(input:checked) .player-mode-info p {
    color: #e0e0e0;
}

.mode-option.mode-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #333;
    background-color: #1a1a1a;
}

.mode-option.mode-disabled .mode-info strong {
    color: #888;
}

.mode-option.mode-disabled .mode-info p {
    color: #666;
    font-style: italic;
}

.mode-option.mode-disabled input[type="radio"] {
    cursor: not-allowed;
}

/* Styles pour les paramètres de jeu */
.game-settings {
    margin: 25px 0;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
}

.game-settings h4 {
    color: #64b5f6;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
}

/* Sélection de difficulté */
.difficulty-selection {
    margin: 25px 0;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
}

.difficulty-selection h4 {
    color: #64b5f6;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.difficulty-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    background-color: #1e1e1e;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    position: relative;
    box-sizing: border-box;
}

.difficulty-option:hover {
    border-color: #64b5f6;
    background-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.difficulty-option input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    accent-color: #64b5f6;
    transform: scale(1.2);
}

.difficulty-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
}

.difficulty-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.difficulty-info p {
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.difficulty-option:has(input:checked) {
    border-color: #64b5f6;
    background-color: rgba(100, 181, 246, 0.15);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.difficulty-option:has(input:checked) .difficulty-info strong {
    color: #64b5f6;
}

.difficulty-option:has(input:checked) .difficulty-info p {
    color: #e0e0e0;
}

/* Cacher les niveaux de difficulté non disponibles */
.difficulty-option.difficulty-hidden {
    display: none !important;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.setting-item label {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 1.1em;
    white-space: nowrap;
}

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.slider {
    width: 100%;
    height: 8px;
    background: #444;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #64b5f6 0%, #64b5f6 var(--slider-progress, 50%), #444 var(--slider-progress, 50%), #444 100%);
    border-radius: 5px;
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #64b5f6 0%, #64b5f6 var(--slider-progress, 50%), #444 var(--slider-progress, 50%), #444 100%);
    border-radius: 5px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #64b5f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    margin-top: -8px; /* Centrer le thumb sur la track */
}

.slider::-webkit-slider-thumb:hover {
    background: #90caf9;
    transform: scale(1.1);
}

.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #64b5f6 0%, #64b5f6 var(--slider-progress, 50%), #444 var(--slider-progress, 50%), #444 100%);
    border-radius: 5px;
    border: none;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #64b5f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: -8px; /* Centrer le thumb sur la track */
}

.slider-value {
    background-color: #1e1e1e;
    color: #64b5f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
    border: 1px solid #333;
    min-width: 100px;
    text-align: center;
}

/* Affichage des paramètres pour les non-hôtes */
.current-settings {
    margin: 20px 0;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.current-settings h4 {
    color: #64b5f6;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.settings-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.setting-display-item {
    text-align: center;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 6px;
    border: 1px solid #333;
}

.setting-display-item strong {
    color: #64b5f6;
    font-size: 0.9em;
}

.setting-display-item span {
    color: #e0e0e0;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

/* Responsive pour les paramètres */
@media (max-width: 768px) {
    .settings-grid,
    .settings-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .setting-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .game-settings,
    .current-settings {
        padding: 15px;
    }
    
    .setting-item label,
    .current-settings h4 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .slider-value {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    
    .setting-display-item {
        padding: 8px;
    }
}

.current-mode {
    margin: 20px 0;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.current-mode h4 {
    color: #64b5f6;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.2em;
}

.mode-display {
    text-align: center;
    padding: 10px;
}

.mode-display strong {
    display: block;
    margin-bottom: 8px;
    color: #64b5f6;
    font-size: 1.2em;
}

.mode-display p {
    color: #b0b0b0;
    font-size: 0.95em;
}

/* Affichage de la difficulté pour les non-hôtes */
.current-difficulty {
    margin: 20px 0;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.current-difficulty h4 {
    color: #64b5f6;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.difficulty-display {
    text-align: center;
    padding: 10px;
}

.difficulty-display strong {
    display: block;
    margin-bottom: 8px;
    color: #64b5f6;
    font-size: 1.2em;
}

.difficulty-display p {
    color: #b0b0b0;
    font-size: 0.95em;
}

/* Mode Dieu - Saisie libre avec auto-complétion */
.free-input-container {
    text-align: center;
    margin: 20px 0;
    max-width: 400px;
    margin: 20px auto;
    position: relative;
}

.free-input-container label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #64b5f6;
    font-weight: 600;
}

.country-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    background-color: #2c2c2c;
    border: 2px solid #444;
    border-radius: 8px;
    color: #e0e0e0;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.country-input:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.country-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

.suggestions.show {
    display: block;
}

.suggestions li {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease;
    text-align: left;
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions li:hover,
.suggestions li.highlighted {
    background-color: #64b5f6;
    color: white;
}

.submit-answer-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1em;
    min-width: 120px;
}

.country-shape-wrapper {
    width: 400px;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto; /* Center horizontally */
}
.country-shape-inner {
    text-align: center;
    width: 100%;
}
.country-shape-img {
    max-width: 320px;
    max-height: 220px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Responsive design pour les modes */
@media (max-width: 768px) {
    .mode-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mode-option {
        padding: 12px 8px;
        min-height: 90px;
    }
    
    .player-mode-options {
        gap: 10px;
    }
    
    .player-mode-option {
        padding: 12px 8px;
        min-height: 90px;
    }
    
    .mode-info strong {
        font-size: 0.9em;
    }
    
    .mode-info p {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .mode-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .mode-option {
        padding: 10px 6px;
        min-height: 80px;
    }
    
    .mode-info strong {
        font-size: 0.8em;
    }
    
    .mode-info p {
        font-size: 0.7em;
        line-height: 1.2;
    }
}

/* Responsive design pour la sélection de difficulté */
@media (max-width: 768px) {
    .difficulty-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .difficulty-option {
        padding: 12px 8px;
        min-height: 90px;
    }
    
    .difficulty-info strong {
        font-size: 0.9em;
    }
    
    .difficulty-info p {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .difficulty-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .difficulty-option {
        padding: 10px 6px;
        min-height: 80px;
    }
    
    .difficulty-info strong {
        font-size: 0.8em;
    }
    
    .difficulty-info p {
        font-size: 0.7em;
        line-height: 1.2;
    }
}

/* Styles pour le mode pays -> drapeau */
.country-container {
    text-align: center;
    margin: 20px 0;
    padding: 30px;
}

.country-name {
    font-size: 2em;
    font-weight: bold;
    color: #64b5f6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.flags-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.flag-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #2a2a2a;
    border: 2px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
}

.flag-option:hover {
    border-color: #64b5f6;
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.flag-option:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.flag-option-img {
    width: 80px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.flag-option.correct-answer {
    border-color: #4caf50;
    background-color: rgba(76, 175, 80, 0.2);
}

.flag-option.wrong-answer {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.2);
}

/* Responsive pour les options de drapeaux */
@media (max-width: 768px) {
    .flags-options {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .flag-option {
        padding: 12px;
        min-height: 100px;
    }
    
    .flag-option-img {
        width: 60px;
    }
    
    .country-name {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .flags-options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .flag-option {
        padding: 10px;
        min-height: 90px;
    }
    
    .flag-option-img {
        width: 50px;
    }
    
    .country-container {
        padding: 20px;
    }
    
    .country-name {
        font-size: 1.3em;
    }
}

/* Styles pour les résultats du round (mode multijoueur) - Affichage plein écran */
.round-results-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #121212;
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-out;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #333;
}

.results-header h2 {
    color: #64b5f6;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.results-header .round-number {
    color: #ffb74d;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.correct-answer-display {
    background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.correct-answer-display h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.correct-answer-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.correct-flag {
    max-width: 100px;
    max-height: 75px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.correct-country-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.players-answers {
    flex: 1;
    margin-bottom: 30px;
}

.players-answers h3 {
    color: #bbdefb;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.player-answer-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.player-answer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #333;
    transition: background 0.3s ease;
}

.player-answer-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.player-answer-card.correct::before {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.player-answer-card.correct {
    border-color: rgba(76, 175, 80, 0.3);
    background: linear-gradient(145deg, #1e1e1e, #1b5e20);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.player-answer-card.wrong::before {
    background: linear-gradient(90deg, #f44336, #ef5350);
}

.player-answer-card.wrong {
    border-color: rgba(244, 67, 54, 0.3);
    background: linear-gradient(145deg, #1e1e1e, #b71c1c);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.2);
}

.player-answer-card.no-answer::before {
    background: linear-gradient(90deg, #9e9e9e, #bdbdbd);
}

.player-answer-card.no-answer {
    border-color: rgba(158, 158, 158, 0.3);
    opacity: 0.8;
}

.player-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
}

.player-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.answer-status {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.answer-status.correct {
    color: #4caf50;
}

.answer-status.wrong {
    color: #f44336;
}

.answer-status.no-answer {
    color: #9e9e9e;
}

.player-choice {
    text-align: center;
    padding-top: 20px;
}

.choice-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    min-height: 60px;
}

.choice-flag {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
}

.choice-flag:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.choice-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.choice-name.correct {
    color: #4caf50;
}

.choice-name.wrong {
    color: #f44336;
}

.choice-name.no-answer {
    color: #9e9e9e;
    font-style: italic;
    font-weight: 400;
}

.controls-section {
    text-align: center;
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid #333;
}

.controls-section .btn {
    font-size: 1.2rem;
    padding: 15px 40px;
    min-width: 250px;
    margin: 10px;
}

.waiting-message {
    color: #ffb74d;
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin: 20px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive pour l'affichage plein écran */
@media (max-width: 768px) {
    .results-container {
        padding: 20px 15px;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
    
    .correct-answer-display {
        padding: 25px 20px;
    }
    
    .correct-answer-display h3 {
        font-size: 1.4rem;
    }
    
    .correct-country-name {
        font-size: 1.8rem;
    }
    
    .correct-flag {
        max-width: 80px;
        max-height: 60px;
    }
    
    .answers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .player-answer-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .player-name {
        font-size: 1.2rem;
    }
    
    .answer-status {
        font-size: 1.6rem;
    }
    
    .choice-flag {
        max-width: 70px;
        max-height: 50px;
    }
    
    .choice-name {
        font-size: 1.1rem;
    }
    
    .choice-visual {
        gap: 15px;
        min-height: 50px;
    }
    
    .controls-section .btn {
        font-size: 1rem;
        padding: 12px 25px;
        min-width: 200px;
        margin: 8px;
    }
}
