/* === Variables de style === */
:root {
  --couleur-fond: #f9f9f9;
  --couleur-principale: #3366cc;
  --texte-principal: #222;
  --fond-carte: #fff;
  --bordure-carte: #ccc;
}

body {
  font-family: sans-serif;
  background: #f7f9fc;
  color: #222;
  margin: 0;
  padding: 0;
  text-align: center;
}
header {
  background: #3366cc;
  color: white;
  padding: 1rem;
}
main {
  padding: 1rem;
  max-width: 600px;
  margin: auto;
}
select, button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}
.carte {
  border: 1px solid #ccc;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem auto;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}
#chrono {
  font-size: 2rem;
  font-weight: bold;
  color: #d32f2f;
  margin: 1rem 0;
}
#choix button {
  margin: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-size: 1.2rem;
}
#score, #score-final {
  margin-top: 1rem;
  font-weight: bold;
}
#reponse {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  font-weight: bold;
  background-color: #e0f0ff;     /* bleu très clair */
  color: #002244;                /* bleu foncé lisible */
  border: 1px solid #66aaff;     /* bord bleu doux */
  transition: all 0.3s ease;
}
.menu-fixe {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--couleur-principale);
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  z-index: 10;
}
.menu-fixe a {
  color: white;
  text-decoration: none;
}
.menu-fixe a.active {
  font-weight: bold;
  text-decoration: underline;
}
.choix a.actif {
  border: 2px solid white;
  box-shadow: 0 0 10px #fff;
}


body.nuit {
  background-color: #121212;
  color: #f0f0f0;
}
body.nuit header,
body.nuit footer,
body.nuit .menu-fixe {
  background-color: #222;
  color: #f0f0f0;
}

body.nuit .choix.vertical a,
body.nuit .actions button {
  background: linear-gradient(135deg, #555, #333);
  color: white;
}
/* Fond de carte */
body.nuit .carte {
  background-color: #2a2a3c;
  color: #ffffff;
  border: 1px solid #444;
}

body.nuit #reponse {
  background-color: #1c2a3d;     /* bleu nuit adouci */
  color: #d0e7ff;                /* bleu clair presque blanc */
  border: 1px solid #3f6ea5;
}

body.nuit #resume-choix {
  background-color: #1e1e1e;
  color: #ffffff;
  border-bottom: 1px solid #444;
}

body.nuit .etiquette-face {
  background-color: #1e1e1ecc;
  color: #87cefa;
}
/* Boutons */
body.nuit button {
  background-color: #444c66;
  color: #fff;
  border: 1px solid #666;
}

body.nuit button:hover {
  background-color: #556;
}

body.nuit select {
  background-color: #2a2f45;
  color: #f0f8ff;
  border: 1px solid #555;
}

body.nuit option {
  background-color: #2a2f45;
  color: #f0f8ff;
}

#credits {
padding: 1rem; background-color: #e6f2ff; border-left: 5px solid #3399ff; margin: 1rem; font-weight: bold; font-size: 1rem; border-radius: 8px; color: #003366;}

body.nuit #credits {
  background-color: #1e1e2e;
  border-left: 5px solid #87cefa;
  color: #d0e7ff;
}
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000; /* très au-dessus */
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-contenu {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  max-width: 90%;
  width: 400px;
  position: relative;
  color: #000;
}

.fermer {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mode nuit */
body.nuit .popup-contenu {
  background-color: #1e1e2e;
  color: #d0e7ff;
}
