/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
  letter-spacing: 2px;
}

/* ===== BASE ===== */
html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: radial-gradient(circle, #0F2027 0%, #203A43 50%, #2C5364 100%);
  min-height: 100vh;
}

h6 {
  font-weight: bold;
  color: black;
}

/* ===== CONTENEUR CENTRAL 75% ===== */
.site-wrapper {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  width: 100%;
  color: white;
  letter-spacing: 3px;
  font-size: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 30px;
}

header h1 {
  margin-top: 16px;
  font-size: 1.5rem;
  letter-spacing: 6px;
  text-align: center;
}

@media (min-width: 768px) {
  header { font-size: 18px; }
}

@media (min-width: 1024px) {
  header { font-size: 20px; }
}

/* ===== NAVIGATION ===== */
#buttonAccueil {
  margin-left: 3rem;
}

#buttonMom {
  display: flex;
}

.listeAcc {
  color: white;
  list-style-position: inside;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* ===== PAGE ACCUEIL ===== */
#presentation {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 30px;
  text-align: center;
}

#presentation p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

#regles {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 20px 24px;
  text-align: left;
}

#regles h1 {
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-align: left;
}

#img {
  display: flex;
  justify-content: center;
}

#img img {
  max-width: 70%;
  border-radius: 10px;
  opacity: 0.85;
}

/* ===== PAGE PROFIL (choix du thème) ===== */
#choixTheme {
  color: black;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 40px;
  margin-right: 10px;
}

#validerTheme {
  color: black;
  border-radius: 6px;
  background: white;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

#validerTheme:hover {
  background: #ddd;
}

#listeTheme {
  color: black;
}

#themes {
  margin: 40px auto;
  padding: 20px;
  width: 300px;
  background: white;
  color: #6186aa;
  border-radius: 8px;
}

#themes p {
  margin-top: 10px;
  padding: 10px 20px;
  border: solid 1px #6186aa;
  background: white;
  color: #6186aa;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

#themes p:hover {
  background: #6186aa;
  color: white;
}

/* ===== PAGE JEU — GRILLE ===== */
.main {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  justify-items: center;
}

/* ===== CARDS ===== */
.box {
  background: #6186aa;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
}

.box.jeu:hover {
  cursor: pointer;
  opacity: 0.7;
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.box img.hidden {
  display: none;
}

.box .outlined {
  border: solid 2px #1abc9c;
  background: #1abc9c;
  opacity: 0.7;
}

/* ===== BARRE INFO (score + victoire) ===== */
#infoBar {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 4px;
}

#state {
  background: transparent;
  font-size: 1rem;
  line-height: 1.6;
}

#score, #time {
  font-size: 1.1rem;
}

#score::after { content: " points"; }
#time::after  { content: " sec"; }

#victoire.hidden { display: none; }

#gagner {
  background: transparent;
  font-size: 1rem;
  opacity: 0.9;
}

/* ===== MODAL POST ===== */
#post {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}

#post > div {
  width: 300px;
  padding: 20px 0 40px;
  background: white;
  color: #6186aa;
  border-radius: 10px;
}

#post #again {
  color: #6186aa;
  text-decoration: none;
  margin: auto;
  padding: 10px 20px;
  width: 160px;
  border: solid 1px;
  display: block;
}

/* ===== FORMULAIRES (inscription / connexion) ===== */
#titreInscription {
  color: black;
}

.listeSid {
  color: black;
  text-align: left;
}

#password-strength {
  margin-top: 10px;
  width: 100%;
}

#strength-meter {
  height: 5px;
  width: 0%;
  background-color: transparent;
  transition: width 0.3s, background-color 0.3s;
}

#strength-text {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

/* ===== FOOTER ===== */
footer {
  margin-top: auto;
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
  color: white;
  padding: 5px;
  font-size: 13px;
  letter-spacing: 1px;
}

footer p a {
  color: #ddd;
  text-decoration: none;
}

footer p a:hover {
  color: white;
  text-decoration: underline;
}