:root {
    --primary: #4a6fa5;
    --secondary: #166088;
    --accent: #4fc3f7;
    --background: #0a192f;
    --text: #e6f1ff;
    --correct: #4caf50;
    --wrong: #f44336;
    --player1: #ff6b6b;
    --player2: #48dbfb;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background);
    color: var(--text);
    margin: 0;
    padding: 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: 
      radial-gradient(circle at 25% 25%, rgba(74, 111, 165, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 75% 75%, rgba(22, 96, 136, 0.1) 0%, transparent 50%);
  }
  
  .container {
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    position: relative;
  }
  
  .header-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }
  
  h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 3.2em;
    margin: 20px 0;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    text-align: center;
  }
  
  .btn-fullscreen {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    position: fixed;
    top: 20px;
    right: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1em;
    z-index: 1000;
  }
  
  .btn-fullscreen:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .btn-start-game {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    position: fixed;
    top: 20px;
    left: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1em;
    z-index: 1000;
  }
  
  .btn-start-game:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .game-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(10, 25, 47, 0.7);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    width: 100%;
  }
  
  .setup-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }
  
  .game-play {
    display: none;
    width: 100%;
    position: relative;
  }
  
  .control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  label {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: var(--accent);
    font-weight: bold;
  }
  
  select, input {
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: var(--text);
    min-width: 150px;
    transition: all 0.3s ease;
  }
  
  select:focus, input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.3);
  }
  
  input[type="number"] {
    width: 80px;
  }
  
  input[type="text"] {
    min-width: 120px;
  }
  
  #question {
    font-size: 5.5em;
    margin: 20px 0;
    font-weight: bold;
    color: var(--text);
    background: rgba(10, 25, 47, 0.7);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .scoreboard {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    gap: 30px;
  }
  
  .player {
    flex: 1;
    padding: 25px;
    border-radius: 12px;
    background: rgba(10, 25, 47, 0.7);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    max-width: 300px;
  }
  
  .player:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  }
  
  .player1 {
    border-top: 4px solid var(--player1);
  }
  
  .player2 {
    border-top: 4px solid var(--player2);
  }
  
  .player-name {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
  }
  
  .player-score {
    font-size: 3.5em;
    margin: 20px 0;
    font-weight: bold;
  }
  
  .player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .btn {
    font-size: 1.1em;
    padding: 12px 24px;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    color: white;
    background-color: var(--primary);
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
  }
  
  .btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .btn:active {
    transform: translateY(0);
  }
  
  .btn-next {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 12px 20px;
    font-size: 1em;
    position: absolute;
    top: 20px;
    left: 20px;
  }
  
  .btn-start {
    background: linear-gradient(135deg, var(--correct), #2e7d32);
    padding: 15px 30px;
    font-size: 1.2em;
    margin-top: 10px;
  }
  
  .btn-point {
    padding: 10px 15px;
    min-width: 60px;
  }
  
  .btn-player1 {
    background-color: var(--player1);
  }
  
  .btn-player2 {
    background-color: var(--player2);
  }
  
  .btn-replay {
    background: linear-gradient(135deg, var(--correct), #2e7d32);
    padding: 15px 30px;
    font-size: 1.2em;
    margin-top: 20px;
    display: none;
  }
  

  
  /* Style pour le mode plein écran */
  :fullscreen .container {
    max-width: 100%;
    padding: 40px;
  }
  
  :fullscreen #question {
    font-size: 7em;
    min-height: 200px;
  }
  
  :fullscreen .player-score {
    font-size: 4em;
  }
  
  :fullscreen .player-name {
    font-size: 2em;
  }
  
  :fullscreen .btn-point {
    padding: 15px 20px;
    font-size: 1.2em;
  }
  
  @media (max-width: 768px) {
    .scoreboard {
      flex-direction: column;
      align-items: center;
    }
    
    .setup-controls {
      flex-direction: column;
      align-items: center;
    }
    
    .control-group {
      align-items: center;
      width: 100%;
    }
    
    select, input {
      width: 100%;
      max-width: 250px;
    }
    
    #question {
      font-size: 3.5em;
      padding: 20px;
      min-height: 120px;
    }
  
    .btn-next {
      position: static;
      margin: 10px auto;
      display: block;
    }
  
    .btn-start-game, .btn-fullscreen {
      position: relative;
      top: auto;
      left: auto;
      right: auto;
      transform: none;
      margin: 10px;
    }
  
    .header-container {
      flex-direction: column;
    }
  
    /* Ajustements mobiles en mode plein écran */
    :fullscreen #question {
      font-size: 4em;
      min-height: 150px;
    }
  
    :fullscreen .player-score {
      font-size: 3em;
    }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }