/* 🌐 Styles globaux */
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  margin: 0;
  color: #333;
}

/* 🔝 Navigation */
.nav {
  display: flex;
  justify-content: center;
  background: white;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbutton {
  background: #0077ff;
  color: white;
  font-weight: 600;
  border: none;
  margin: 0 8px;
  padding: 10px 18px;
  border-radius: 25px;
  transition: 0.3s;
}
.navbutton a {
  color: white;
  text-decoration: none;
}
.navbutton:hover {
  background: #005fcc;
  transform: translateY(-2px);
}

/* 🛠 Section 1 - Convertisseur */
.contour1 {
  background: linear-gradient(135deg, #0077ff, #00d4ff);
  border-radius: 15px;
  padding: 25px;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.ecran1 {
  background: white;
  color: #0077ff;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  margin: 15px 0;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.contour1 input, 
.contour1 select, 
.contour1 button {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
}
.contour1 input, .contour1 select {
  width: 90%;
}
.contour1 button {
  background: white;
  color: #0077ff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.contour1 button:hover {
  background: #f0f0f0;
}

/* 🎮 Section 2 - Devinette */
.contour2 {
  background: linear-gradient(135deg, #00d4ff, #4de1ff);
  text-align: center;
  border-radius: 15px;
  padding: 25px;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.ecran2 {
  background: white;
  color: #0077ff;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  margin: 15px 0;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.contour2 input {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  width: 90%;
  font-size: 1rem;
}
.contour2 button {
  margin-top: 10px;
  background: white;
  color: #00a3cc;
  font-weight: bold;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.contour2 button:hover {
  background: #f0f0f0;
}

/* 📊 Interface jeu */
#pinterface {
  border: 3px solid #0077ff;
  border-radius: 20px;
  padding: 12px;
  text-align: left;
  background-color: #eef6ff;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 🎨 Divers */
h2 {
  color: #0077ff;
  margin: 20px 0;
}
div {
  text-align: center;
}
