* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: white;
  padding: 25px;
  border-radius: 16px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h1 {
  margin-bottom: 15px;
}

/* ===== CARTE ===== */
#card {
  margin-bottom: 20px;
}

#photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: block;
}

#name {
  font-weight: bold;
}

/* ===== BOUTONS ===== */
.buttons {
  display: flex;
  gap: 10px;
}

button {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

button img {
  width: 22px;
}

.yes { background: #4CAF50; color: white; }
.no { background: #F44336; color: white; }

.restart {
  margin-top: 15px;
  width: 100%;
  background: #2196F3;
  color: white;
}

/* ===== TRANSITION NIVEAU ===== */
#levelTransition {
  display: none;
  padding: 40px 0;
  animation: fadeScale 0.8s ease;
}

#levelTransition p {
  font-size: 20px;
  font-weight: bold;
}

/* ===== RESULTATS ===== */
#results {
  display: none;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}